var httpRequest=null;

	function getXMLHttpRequest()
	{
		if(window.ActiveXObject)
		{
			try
			{
				return new ActiveXObject("Msxml2.MLHTTP");
			}
			catch(e)
			{
				try{ return new ActiveXObject("Microsoft.XMLHTTP"); }
				catch(e){ return null; }
			}
		}
		else if(window.XMLHttpRequest){ return new XMLHttpRequest(); }
		else{ return null; }
	}

	function load()
	{
		url="function_evaluation_process.asp?cs="
		+self.document.getElementById("cs").value
		+"&setup="+self.document.getElementById("setup").value
		+"&cleanliness="+self.document.getElementById("cleanliness").value
		+"&temperature="+self.document.getElementById("temperature").value
		+"&lighting="+self.document.getElementById("lighting").value
		
		+"&amenities="+self.document.getElementById("amenities").value
		+"&location="+self.document.getElementById("location").value
		+"&banquet="+self.document.getElementById("banquet").value
		+"&timeline="+self.document.getElementById("timeline").value
		+"&food="+self.document.getElementById("food").value
		+"&equipment="+self.document.getElementById("equipment").value
		+"&friendliness="+self.document.getElementById("friendliness").value
		
		+"&comments="+self.document.getElementById("comments").value
		+"&helpful="+self.document.getElementById("helpful").value
		
		+"&phone="+self.document.getElementById("phone").value
		+"&event_date="+self.document.getElementById("event_date").value
		+"&num="+self.document.getElementById("num").value
		+"&full_name="+self.document.getElementById("full_name").value
	
		+"&company="+self.document.getElementById("company").value
		+"&function_date="+self.document.getElementById("function_date").value
		;
		
		httpRequest=getXMLHttpRequest();
		httpRequest.onreadystatechange=viewMessage;
		httpRequest.open("GET",url,true);
		httpRequest.send(null);
	}
	
	function viewMessage()
	{
		var result="true"
		if(httpRequest.readyState==4)
		{
			if(httpRequest.status==200)
			{ 
				//alert(httpRequest.responseText); 
				
				show_result();
			}
			else{ alert("fail : "+httpRequest.status); }
		}
	}