
function sendPassword(){if(document.getElementById){ob_post.ResetParams();ob_post.AddParam("logName",document.getElementById('UserName').value);ob_post.post(null,'doSendPassword',sendPw_cb);}};function sendPw_cb(res){document.getElementById('Msg').innerHTML='';if(res!=null){document.getElementById('Msg').innerHTML=res;}};function opPUGT(){opWindCent("public/popUpGuidedTour.aspx?lg="+ddlLanguage.getValue(),300,130);};function reg4Test(){opWindCent("public/Register4Test.aspx?lg="+ddlLanguage.getValue(),420,575);};function prepWin(){if(ddlLanguage.getValue()=="xES"){btnRegister.disable();};if(getE('txtEx').value.length>3){getE('ifMsg').src=getE('txtEx').value;};};function getE(obj){return document.getElementById(obj);};function getWindowWidth(){var myWidth=0;if(typeof(window.innerWidth)=="number"){myWidth=window.innerWidth;}else if(document.documentElement&&(document.documentElement.clientWidth)){myWidth=document.documentElement.clientWidth;}else if(document.body&&(document.body.clientWidth)){myWidth=document.body.clientWidth;}
return myWidth;};function getWindowHeight(){var myHeight=0;if(typeof(window.innerWidth)=="number"){myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientHeight)){myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientHeight)){myHeight=document.body.clientHeight;}
return myHeight;};function opWindCent(myfile,width,height,top,left){if(!width)width=400;if(!height)height=400;if(!top)top=getWindowHeight()/2-height/2;if(!left)left=getWindowWidth()/2-width/2;var now=new Date();winname="a"+now.getTime();var params="width="+width+",height="+height+",top="+top+",left="+left+",resizable=0,status=0,scrollbars=0,toolbar=0,location=0,directories=0,menubar=0 ";var winPop=window.open(myfile,winname,params);if(window.focus)winPop.focus();}