			var xmlHttp
			function showUser(str)
			{xmlHttp=GetXmlHttpObject()
			if(xmlHttp==null)
			{alert("Browser does not support HTTP Request")
			return}
			var url="SCRIPTS/nlpfind.php"
			url=url+"?q="+str
			url=url+"&sid="+Math.random()
			xmlHttp.onreadystatechange=stateChanged
			xmlHttp.open("GET",url,true)
			xmlHttp.send(null)}
			function stateChanged()
			{
			   if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")
			   {
				   document.getElementById("txtRateCenter").innerHTML=xmlHttp.responseText;
				   if ( (document.getElementById("txtRateCenter").innerHTML==0) && 
						($("#nlpid_1").val() != 888) && 
						($("#nlpid_1").val() != 800) &&
						($("#nlpid_1").val() != 877) &&
						($("#nlpid_1").val() != 866)) 
				   {
						document.getElementById("txtPortable").innerHTML="No";
						document.getElementById("txtRateCenter").innerHTML="N/A";
					}
				   else if ( ($("#nlpid_1").val() == 888) || 
						($("#nlpid_1").val() == 800) ||
						($("#nlpid_1").val() == 877) ||
						($("#nlpid_1").val() == 866)) {
					   document.getElementById("txtPortable").innerHTML="Yes";
					   document.getElementById("txtRateCenter").innerHTML="Toll Free";
				   }
				else
			document.getElementById("txtPortable").innerHTML="Yes";
			}
			
			}
			
			
			function GetXmlHttpObject()
			{var xmlHttp=null;try
			{xmlHttp=new XMLHttpRequest();}
			catch(e)
			{try
			{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
			catch(e)
			{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
			return xmlHttp;}		   	
	


$(document).ready(function() { 
	$("#nlpid_1").change(function() { 
		firstval = $("#nlpid_1").val();		

		// alert($("#nlpid_1").val());
		if ((firstval == 800) || (firstval == 888) || (firstval == 877) || (firstval == 866)) { 
		   $("#txtPortable").text("Yes");
		   $("#txtRateCenter").text("Toll Free");
		}
		else { 
		 //  $("#txtPortable").text("NO");
		 //  $("#txtRateCenter").text("N/A");		

		}
	});
	
	

	
	
});