var xmlHttp;
function add_contact_name_mobile_express() {
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; }


	var vars="name="+document.getElementById('first_name_mobile_express').value;
	vars=vars+"&campaign=mlexpress";
	vars=vars+"&email="+document.getElementById('email_mobile_express').value;
	xmlHttp.onreadystatechange=stateChanged_mobile_express;

	xmlHttp.open("POST", "/scripts/getresponse_api_ajax.php", true);
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
	xmlHttp.send(vars);
}

function stateChanged_mobile_express() {
	if (xmlHttp.readyState==4) {

	document.getElementById('mobile_express_container').innerHTML = xmlHttp.responseText;

	}
}

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



function add_contact_office_workspace_guide() {
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; }


	var vars="name="+document.getElementById('first_name_office_workspace_guide').value;
	vars=vars+"&campaign=officeworkspaceguide";
	vars=vars+"&email="+document.getElementById('email_office_workspace_guide').value;
	xmlHttp.onreadystatechange=stateChanged_office_workspace_guide;

	xmlHttp.open("POST", "/scripts/getresponse_api_ajax.php", true);
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
	xmlHttp.send(vars);
}

function stateChanged_office_workspace_guide() {
	if (xmlHttp.readyState==4) {

	document.getElementById('office_workspace_guide_container').innerHTML = xmlHttp.responseText;

	}
}





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


