var loading_image='<img src="images/M_images/ajax-loader.gif" alt="Loading..." class="ajaxLoader" />';function splitter(vars){var outvar="";var va=vars.split("_");for(var i=0;i<va.length;i++){outvar=outvar+document.getElementById(va[i]).name+"="+document.getElementById(va[i]).value+"&"}return outvar}function ajaxType(sender,receiver,endurl,vars,autostart,preload){var bulletin_req=new Request.HTML({method:'post',url:'index2.php?option='+endurl+'&no_html=1',onSuccess:function(html){$(receiver).set('text','');$(receiver).adopt(html);},onFailure:function(){$(bulletin_receiver).set('text','Failed.');}});var sendvar=splitter(vars);$(sender).addEvent('click',function(){sendvar=splitter(vars);bulletin_req.send(sendvar);if(preload==1){$(receiver).set('html',loading_image);}});if(autostart==1){bulletin_req.send(sendvar);if(preload==1){$(receiver).set('html',loading_image);}}}window.addEvent('domready',function(){var JTooltips=new Tips($$('.hasTip'),{maxTitleChars:50,fixed:false})});function emptyField(val,elm){if(elm.value==val){elm.value="";}}function fillField(val,elm){if(elm.value==""){elm.value=val;}}function tooggle(divid){document.getElementById("traindiv").style.display="none";document.getElementById("planediv").style.display="none";document.getElementById("cardiv").style.display="none";if(document.getElementById(divid).style.display=="none"){document.getElementById(divid).style.display="block"}else{document.getElementById(divid).style.display="none"}}function chkcontrol(elemt,msg){var total=0;for(var i=0;i<document.form1.length;i++){if(document.form1[i].checked){total=total+1;}if(total>3){alert(msg);elemt.checked=false;return false;}}}function menuIeShow(){document.getElementById('navig-menu').style.display="block";}var Tooltips=new Tips($$('.hasTip'),{maxTitleChars:50,fixed:false});var isIE6=false;