/* 	The Higgins Group	domjax.js	AJAX, DOM Functions		Created:	Matt Kircher				Mainline Media LLC				11.22.06					Modified:	11.27.06	*//* --- GLOBAL VARIABLES ---*/var xmlHttp;var action;var parameters;/* --- AJAX FUNCTIONS --- */function createXMLHttpRequest(){	if(window.ActiveXObject)	  {	xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");	}	else if(window.XMLHttpRequest){	xmlHttp = new XMLHttpRequest();						}}function startRequest(url, method, postdata){	createXMLHttpRequest();		if(method == "POST"){				xmlHttp.open("POST", url, true);		xmlHttp.onreadystatechange = handleStateChange;		xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");		xmlHttp.setRequestHeader("Content-length", postdata.length);			xmlHttp.setRequestHeader("Connection", "close");		xmlHttp.send(postdata);	} else {		xmlHttp.open("GET", url, true);		xmlHttp.onreadystatechange = handleStateChange;		xmlHttp.send(null);	}}function handleStateChange(){	if(xmlHttp.readyState == 4){				if(xmlHttp.status == 200){			switch(action){				case "sendMail": thankFormUser(xmlHttp.responseText); break;			}		}	}}