
function ajaxRequest(process,divname,arg1,arg2,arg3){ 


	if(process == 'CheckNLEmailExist'){
		
		txtValue	= document.getElementById(arg1).value;
		
//alert("qweqw"); return false;
	/*	if(txtValue==""){
			qstr 	= 'p=' + escape(process) + '&email=' + escape(txtValue) + '&check=' + 'null';  
		
		}else{*/
			qstr 	= 'p=' + escape(process) + '&email=' + escape(txtValue);  
		//}
	
		xmlhttpPost('include/common_ajax.php',divname,qstr);
		
	}

}


function xmlhttpPost(strURL,divname,qstr)
 {	


  var xmlHttpReq = false;
    var self = this;
    
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
			
		  updatePage(self.xmlHttpReq.responseText,divname);
       	   }
    }
    self.xmlHttpReq.send(qstr);	 
}



function updatePage(txtvalue,divname)
{ 
	if(divname){
		document.getElementById(divname).innerHTML="";
		document.getElementById(divname).innerHTML=txtvalue;
	}
}
