// JavaScript Documentvar xmlHttpfunction makePOSTRequest(url, parameters) {	xmlHttp=GetXmlHtmlObject()	if (xmlHttp == null) {		alert ("Your Browser does not support my website, please get a new browser or turn on Javascripting")		return	}	xmlHttp.onreadystatechange = alertContents;	xmlHttp.open("POST", url, true);	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");	xmlHttp.setRequestHeader("Content-length", parameters.length);	xmlHttp.setRequestHeader("Connection", "close");	xmlHttp.send(parameters);}function alertContents() {	if (xmlHttp.readyState == 4) {		if (xmlHttp.status == 200) {			//alert(http_request.responseText);			result = xmlHttp.responseText;			document.getElementById("showIt").innerHTML = result;		} else {			alert('There was a problem with the request.');		}	}}   function getForm(obj) {	var poststr = "who=" + encodeURI( document.getElementById("who").value ) +				"&from=" + encodeURI( document.getElementById("from").value ) +				"&message=" + encodeURI( document.getElementById("message").value ) +				"&subject=" + encodeURI( document.getElementById("subject").value );	makePOSTRequest("contentPages/submit.html", poststr);}function getShowForm(info) {	var postBook = "booker=" + encodeURI( document.getElementById("booker").value ) +				"&contact=" + encodeURI( document.getElementById("contact").value ) +				"&message=" + encodeURI( document.getElementById("message").value ) +				"&time=" + encodeURI( document.getElementById("time").value ) +				"&dates=" + encodeURI( document.getElementById("dates").value ) +                    "&subject=" + encodeURI( document.getElementById("subject").value );	makePOSTRequest("calendar/submitBooking.html", postBook);}function getLogin(who) {	var postLogin = "name=" + encodeURI( document.getElementById("name").value ) +				"&email=" + encodeURI( document.getElementById("email").value );	makePOSTRequest("contentPages/showClubHouseLogin.html", postLogin);}function showClubAlbum(what) {	var postClub = "ID=" + encodeURI( document.getElementById("ID").value ) +				"&title=" + encodeURI( document.getElementById("title").value );	makePOSTRequest("contentPages/showClubHouse.html", postClub);}function getSong(input) {	var poststr = "wordOne=" + encodeURI( document.getElementById("wordOne").value ) +				"&wordTwo=" + encodeURI( document.getElementById("wordTwo").value );		albumURL = ( document.getElementById("albumWhich").value );	makePOSTRequest(albumURL, poststr);}function GetXmlHtmlObject() {	var objXMLHttp=null	if (window.XMLHttpRequest) {		objXMLHttp=new XMLHttpRequest()	} else if (window.ActiveXObject) {		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")	}	return objXMLHttp}