// JavaScript Document
  var	xmlHttp_2;		
 function GetXmlHttpObject()
                {
                    var xmlHttp=null;
                    var xmlHttp1=null;
                    var xmlHttp2=null;
                    try
                    {
                        xmlHttp=new XMLHttpRequest();
                    }
                    catch (e)
                    {
                              try
                            {
                                xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
                            }
                            catch (e)
                            {
    	                                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                                    return                        
                                    
                                    }
                     }
                     return xmlHttp;

                 } 
		 var t_name =null;
	 function chk_click(txt_name)
	 {
		t_name = txt_name;
		//alert(txt_name);
		//var user_name = document.getElementById(txt_name).value;	
    				xmlHttp_2= GetXmlHttpObject();      
                    if (xmlHttp_2==null)
                    {
                        alert("Your browser does not support AJAX!");
                        return;
                    }                            
                   // var dt=new Date();
					//alert(user_name);
                    //var url="chk_data.php?user_name="+user_name+"&dt="+dt; 
					//alert(" ");
					var url="glass_slipper.php";
					xmlHttp_2.onreadystatechange=showpoint;  
                    xmlHttp_2.open("Get",url,true); 
                    xmlHttp_2.send(null); 
    }
    function showpoint()
    {       
	//alert(" ");
		//var img_id="";	
	 	if(xmlHttp_2.readyState==4)
        { 
		
	          	var responsetext=xmlHttp_2.responseText;   
		//	alert(responsetext);
			
			
			//	if(responsetext == 1)
			//	{
			//		alert("test");
			//		alert("Username is not available, please enter another Username");
			//document.loginform.glass_slipper.value = responsetext;
					//document.getElementById(t_name).value = responsetext;	
				document.getElementById(t_name).innerHTML= responsetext;	
			//	document.getElementById(t_name).focus();	
					
			//	}
			//	else
			//		alert("Username is available");
				
		}
	}
	
