function getHTTPObject() {
	var http = false;
	//Use IE's ActiveX items to load the file.
	if(typeof ActiveXObject != 'undefined') {
		try {http = new ActiveXObject("Msxml2.XMLHTTP");}
		catch (e) {
			try {http = new ActiveXObject("Microsoft.XMLHTTP");}
			catch (e) {http = false;}
		}
	//If ActiveX is not available, use the XMLHttpRequest of Firefox/Mozilla etc. to load the document.
	} else if (XMLHttpRequest) {
		try {http = new XMLHttpRequest();}
		catch (e) {http = false;}
	}
	return http;
}
// Check Status for Existing UID signup.php
function ajaxFunction(){
var xmlHttp;
var url;
url="uidc.php?uid=";
url=url+document.signup.uid.value;
//document.signup.lname.value=url;
xmlHttp=getHTTPObject();
//xmlHttp=new XMLHttpRequest();
//xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
//xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");     
xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
	//	document.getElementById('myTable').rows[1].cells[1].childNodes[0].data=xmlHttp.responseText;
 		document.getElementById('userid').childNodes[0].data=xmlHttp.responseText;
	  //document.signup.fname.value=xmlHttp.responseText;
      }
    }
xmlHttp.open("GET",url,true);
xmlHttp.send(null);  
}

function passFunction(){
var xmlHttp;
var url;
url="uidcp.php?uid=";
url=url+document.signup.uid.value;
url=url+"&email=";
url=url+document.signup.email.value;
//document.signup.lname.value=url;
xmlHttp=getHTTPObject();
//xmlHttp=new XMLHttpRequest();
//xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
//xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");     
xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
	//	document.getElementById('myTable').rows[1].cells[1].childNodes[0].data=xmlHttp.responseText;
 		document.getElementById('userid').childNodes[0].data=xmlHttp.responseText;
	  //document.signup.fname.value=xmlHttp.responseText;
      }
    }
xmlHttp.open("GET",url,true);
xmlHttp.send(null);  
}
