// JavaScript Document
var xmlhttp;

function getxmlhttpobject()
{
var xmlhttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlhttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlhttp;
}

function chk_login(val){
	var url="login_chk.php?id="+val;
	//alert(url);
		//var res;
		xmlHttp=getxmlhttpobject();
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{
				//alert(xmlHttp.responseText);
				document.getElementById("login_disp").innerHTML=xmlHttp.responseText;
			}	
				
		}
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		//display(val);
	}
	
function chk_email(val){
	var url="login_chk.php?email="+val;
	//alert(url);
		//var res;
		xmlHttp=getxmlhttpobject();
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{
				//alert(xmlHttp.responseText);
				document.getElementById("email_disp").innerHTML=xmlHttp.responseText;
			}	
				
		}
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		//display(val);
	}	

function choose_pack(val){
	var url="choose_pak.php?id="+val;
	//alert(url);
		//var res;
		xmlHttp=getxmlhttpobject();
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{
				//alert(xmlHttp.responseText);
				document.getElementById("pack_disp").innerHTML=xmlHttp.responseText;
				return;
			}	
				
		}
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		display(val);
	}
	
function disp_msg(val){
	var url="disp_msg.php?val="+val;
	//alert(url);
		xmlHttp=getxmlhttpobject();
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{
				document.getElementById("compose_mail").value=xmlHttp.responseText;
				return;
			}	
				
		}
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		display(val);
	}	


