
 function VerifyUser(url,obj,correctWord,wrongWord)    {     var xmlHttp;         try         {             xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");         }         catch(e)         {             xmlHttp = new XMLHttpRequest();         }         xmlHttp.open("get",url,true);         xmlHttp.onreadystatechange = function()         {             if(xmlHttp.readyState == 4)             {                 if(xmlHttp.status == 200)                 {                     var myResponse;                     myResponse= xmlHttp.responseText;                                     switch(myResponse)                     {                         case"true":                                                     obj.className="Reg_b1";                             obj.innerHTML=correctWord;                         break;                         case"false":                             obj.className="Reg_b2";                             obj.innerHTML=wrongWord;                         break;                     }                             }             }         }         xmlHttp.send(null);     }          function SendInfo(url,str)     {         var xmlHttp;         try         {             xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");         }         catch(e)         {             xmlHttp = new XMLHttpRequest();         }         xmlHttp.open("Post",url,true);          xmlHttp.onreadystatechange = function()         {             if(xmlHttp.readyState == 4)             {                 var myResponse;                 myResponse= xmlHttp.responseText;                 alert(myResponse);                  }         }         xmlHttp.setRequestHeader("Content-Length",str.length);   
        xmlHttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");            xmlHttp.send(str);     }     function VerifyEmailAjax(url,str,e)     {         var xmlHttp;         try         {             xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");         }         catch(e)         {             xmlHttp = new XMLHttpRequest();         }         xmlHttp.open("Post",url,true);          xmlHttp.onreadystatechange = function()         {             if(xmlHttp.readyState == 4)             {                 var myResponse;                 myResponse= xmlHttp.responseText;                 var obj=document.all(e);                                obj.href=myResponse;             }         }         xmlHttp.setRequestHeader("Content-Length",str.length);   
        xmlHttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");            xmlHttp.send(str);     }     function getDailyData(url,pars,div)
	{	
		var myAjax = new Ajax.Updater(
					{success: div }, 
					url, 
					{
						method: 'get', 
						parameters: pars+'&rnd='+Math.floor(Math.random()*9999+1)
					});	
	}