
		function toggle_emailid(userid)
		{
			//alert(userid);
		    	if (window.XMLHttpRequest)
		    	{
		    		http = new XMLHttpRequest();
    		    	}
		   	else if (window.ActiveXObject)
		   	{
        			http = new ActiveXObject("Microsoft.XMLHTTP");
    		   	}
   			// handle = document.getElementById(userid);
    			var url = 'ajaxmailphoneno.php?';
			
    			if(userid.length > 0)
		 	{
			        var fullurl = url +'emailid='+userid;
				//alert(fullurl);
				http.open("GET", fullurl, true);
        			http.send(null);
        			http.onreadystatechange = statechange_email;
    			}
			else
			{
			        document.getElementById('email_exists').innerHTML = '';
    			}
		}
		function statechange_email()
		{

		    if (http.readyState == 4)
		    {
			var xmlObj = http.responseText;
			
		        document.getElementById('email_exists').innerHTML = xmlObj;
		    }
		}
		function toggle_phone(userid)//to check the phone no(duplication not entered)
		{
			
			if (window.XMLHttpRequest)
		    	{
		    		http1 = new XMLHttpRequest();
    		    	}
		   	else if (window.ActiveXObject)
		   	{
        			http1 = new ActiveXObject("Microsoft.XMLHTTP");
    		   	}
   			// handle = document.getElementById(userid);
    			var url1 = 'ajaxmailphoneno.php?';
			
    			if(userid.length > 0)
		 	{
			 
       var fullurl1 = url1 +'mobileno='+userid;

				http1.open("GET", fullurl1, true);
        			http1.send(null);
        			http1.onreadystatechange = statechange_mobileno;
    			}
			else
			{
			        document.getElementById('mobile_exists').innerHTML = '';
    			}
		
		}
		function statechange_mobileno()
		{

		    if (http1.readyState == 4)
		    {
			var xmlObj1 = http1.responseText;
			
		        document.getElementById('mobile_exists').innerHTML = xmlObj1;
		    }
		}
	


