


var xmlHttp;

function showCustomer()
{ 
//alert("sd");
var job=document.getElementById('txt1').value;
//alert(job);
var url = "jobcheck.php?job="+ job  ;// 
//alert(url);
xmlHttp=GetXmlHttpObject(stateChange);
xmlHttp.open("GET", url , true);
xmlHttp.send(null);
} 

function stateChange() 
{ 
	//alert(xmlHttp.responseText);
	//alert("SD");
	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//document.getElementById("txtHint").innerHTML=xmlHttp.responseText
		
	
	if(xmlHttp.responseText < 1 )
	{
		//alert("sipra123");
		//alert(xmlHttp.responseText);
	//document.f1.txt1.style.border=" 2px solid orange ";
	document.getElementById('pad').style.display = "block";
	document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">Show My True Worth </a>';
	//document.getElementById("Layer2").style.display=="block";
	//	escape('hello');
	/*return escape('the job title you entered was not found in our records, please try to find a close job title or contact us to add it')*/
	 //document.f1.txt1.value.focus();
	//document.getElementById("imagepad1").style.display = "block";
	}
	else
	{
		//alert("sip");
	//document.f1.txt1.style.border=" 1px solid ";
	document.getElementById('pad').style.display = "none";
	//document.getElementById('imagepad1').style.display = "none";
	//document.getElementById('Layer2').style.display=="none";
	//document.f1.chk.value=document.f1.chk.value+1;
	}

	}
}

function GetXmlHttpObject(handler)
{ 
	var objXmlHttp=null;
	
	if (navigator.userAgent.indexOf('Opera')>=0)
	{
		alert("This example doesn't work in Opera") ;
		return ;
	}
	
	if (navigator.userAgent.indexOf('MSIE')>=0)
	{ 
		var strName="Msxml2.XMLHTTP";
		if (navigator.appVersion.indexOf('MSIE 5.5')>=0)
		{
			strName="Microsoft.XMLHTTP";
		} 
		try
		{ 
			objXmlHttp=new ActiveXObject(strName);
			objXmlHttp.onreadystatechange=handler ;
			return objXmlHttp;
		} 
		catch(e)
		{ 
			alert("Error. Scripting for ActiveX might be disabled");
			return ;
		} 
	} 
	
	if (navigator.userAgent.indexOf('Mozilla')>=0)
	{
		objXmlHttp=new XMLHttpRequest();
		objXmlHttp.onload=handler;
		objXmlHttp.onerror=handler ;
		return objXmlHttp;
	}
}  
// JavaScript Document
