var xmlHttp

 
function showUser_inst(str)
{  

if (!echeck(document.formReg.email_inst.value))
  	{ 
  	validity = false; 
	alert('Please enter a valid email address.');
	document.formReg.email_inst.value="";
	document.formReg.email_inst.focus();
   return false;
  	}
	
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="getuser_inst.php"
url=url+"?pages="+str 
xmlHttp.onreadystatechange=stateChanged_inst 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
 
  

function stateChanged_inst() 
{ 

 	
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 
 document.getElementById("txtHintwet_inst").innerHTML=xmlHttp.responseText 
  
  str=xmlHttp.responseText; 
 if(str.indexOf("Sorry")>0){
	document.formReg.email_inst.value="";
	document.formReg.email_inst.focus();
	  }
	  
 } 
 if (!echeck(document.formReg.email_inst.value))
  	{ 
  	validity = false; 
	alert('Please enter a valid Email address.'); 
	formReg.email_inst.focus();
   return false;
  	}
	
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}// JavaScript Document



 
