
function createRequestObject() {
    var tmpXmlHttpObject;
    
    //depending on what the browser supports, use the right way to create the XMLHttpRequest object
    if (window.XMLHttpRequest) { 
        // Mozilla, Safari would use this method ...
        tmpXmlHttpObject = new XMLHttpRequest();
	
    } else if (window.ActiveXObject) { 
        // IE would use this method ...
        tmpXmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
    }
    
    return tmpXmlHttpObject;
}

//call the above function to create the XMLHttpRequest object
var http = createRequestObject();

function makeGETRequest(url) {
    //make a connection to the server ... specifying that you intend to make a GET request 
    //to the server. Specifiy the page name and the URL parameters to send
    http.open('get', url);
	
    //assign a handler for the response
   // http.onreadystatechange = processResponse;
	
    //actually send the request to the server
    http.send(null);
}

function ssubmit ()
{

	poststr="sname=" + encodeURI( document.getElementById("sname").value )+
			"&sphone=" + encodeURI( document.getElementById("sphone").value )+
			"&scountry=" + encodeURI( document.getElementById("scountry").value );
	url="http://www.wasspoker.com/backend/support_div.php?"+poststr;
	makeGETRequest(url);
	var div = document.getElementById('support_div');
	div.style.display = "none";
	var div = document.getElementById('succ_div');
	div.style.display = "block";

}	

function close_support() {
		div = document.getElementById('div_to_close'); 
		div.parentNode.removeChild(div);
		
		/*
		div2 = document.getElementById('div_to_close_header');
		div2.parentNode.removeChild(div2);
		*/
		return false;	
}