var xmlHttp
var xmlHttp1

function showuserAvailabilityhome(str,field)
{
	xmlHttp1=GetXmlHttpObject()
		document.getElementById("txtHintnew").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp1==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_user_avail_result.php"
		url=url+"?q="+str+"&fld="+field
		url=url+"&sid="+Math.random()
		xmlHttp1.onreadystatechange=stateChangedus
		xmlHttp1.open("GET",url,true)
		xmlHttp1.send(null)
}

function stateChangedus() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
{ 
document.getElementById("txtHintnew").innerHTML=xmlHttp1.responseText 
} 
} 


function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}


function showemailAvailabilityhome(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_user_avail_result.php"
		url=url+"?q="+str+"&fld="+field
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged2mail
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}


function stateChanged2mail() 
{ 
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail").innerHTML=xmlHttp2.responseText 
} 
} 


function showemailAvailabilityhomejobs(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemailjobs").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_user_avail_result.php"
		url=url+"?q="+str+"&fld="+field
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged2mailjobs
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged2mailjobs() 
{ 
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemailjobs").innerHTML=xmlHttp2.responseText 
} 
} 


function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}

//forgetpassword

function showforAvailabilityhome(str)
{
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintfor").innerHTML = "<img src='images/run.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="forgetresult.php"
		url=url+"?q="+str
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChangedforhome
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChangedforhome() 
{ 
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintfor").innerHTML=xmlHttp2.responseText 
} 
} 

///reg_vali////

/*function checkfname(str)
{ 
	xmlHttp1=GetXmlHttpObject()
		document.getElementById("txtfname").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp1==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str
		url=url+"&sid="+Math.random()
		xmlHttp1.onreadystatechange=stateChanged10
		xmlHttp1.open("GET",url,true)
		xmlHttp1.send(null)
}

function stateChanged10() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
{ 
document.getElementById("txtfname").innerHTML=xmlHttp1.responseText 
} 
} 


function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}


function showemailAvailability3(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail3").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged3
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged3() 
{ 

if(xmlHttp2.responseText == "")
	{
		
	document.wizform.fname.focus();
	}
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail3").innerHTML=xmlHttp2.responseText 
} 
} 


function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}

function showemailAvailability4(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail3").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged4
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged4() 
{
	if(xmlHttp2.responseText=="<font color='red' size=4>invalid</font>")
	{
		
	document.wizform.lname.focus();
	}
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail3").innerHTML=xmlHttp2.responseText 
} 
} 

function showemailAvailability5(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail5").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged5
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged5() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail5").innerHTML=xmlHttp2.responseText 
} 
} 
///
function showemailAvailability6(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail5").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged6
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged6() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail5").innerHTML=xmlHttp2.responseText 
} 
} 
/
function showemailAvailability7(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail5").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged7
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged7() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail5").innerHTML=xmlHttp2.responseText 
} 
} 



function showemailAvailability8(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail5").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged8
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged8() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail5").innerHTML=xmlHttp2.responseText 
} 
} 

function showemailAvailability9(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail5").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged9
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged9() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail5").innerHTML=xmlHttp2.responseText 
} 
} 

//////
function showemailAvailability21(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail21").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged21
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged21() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail21").innerHTML=xmlHttp2.responseText 
} 
} 


function showemailAvailability22(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail21").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged22
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged22() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail21").innerHTML=xmlHttp2.responseText 
} 
} 
/
function showemailAvailability23(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail21").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged23
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged23() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail21").innerHTML=xmlHttp2.responseText 
} 
} 



function showemailAvailability24(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemai24").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged24
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged24() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemai24").innerHTML=xmlHttp2.responseText 
} 
} 

/
function showemailAvailability25(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemai24").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged25
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged25() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemai24").innerHTML=xmlHttp2.responseText 
} 
} 


function showemailAvailability26(str,field)
{ 
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("txtHintemail5").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_reg_validation.php"
		url=url+"?q="+str+"&fld="+field
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChanged26
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChanged26() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("txtHintemail5").innerHTML=xmlHttp2.responseText 
} 
} 

function useremailsent(str)
{ //alert(str);
	xmlHttp2=GetXmlHttpObject()
		document.getElementById("addcomments").innerHTML = "<img src='images/loading-animation_blau.gif'>";
		if (xmlHttp2==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="check_usermail.php"
		url=url+"?q="+str
		alert(field);
		url=url+"&sid="+Math.random()
		xmlHttp2.onreadystatechange=stateChangedmailsent
		xmlHttp2.open("GET",url,true)
		xmlHttp2.send(null)
}

function stateChangedmailsent() 
{ 

if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
{ 
document.getElementById("addcomments").style.display = "block";
document.getElementById("addcomments").innerHTML=xmlHttp2.responseText 
} 
} */