function printerFriendly() {
	var url = location.href + '';
	if (url.indexOf("?") == -1) {
		location.href = url + "?printableView=Yes";
	} else {
		location.href = url + "&printableView=Yes";
	}
}

var xmlHttp

function setLang(lang) {
	createCookie("language",lang,365);
	//location.href = "http://google.com";
	/*
	var language = readCookie("language");
	//alert(language);
	if (language == "English") {
		document.getElementById("engLang").style.fontWeight = "bold";
		document.getElementById("spanLang").style.fontWeight = "normal";
	} else if (language == "Spanish") {
		document.getElementById("spanLang").style.fontWeight = "bold";
		document.getElementById("engLang").style.fontWeight = "normal";
	}
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}
	var url="processLang.php"
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)*/
}

function stateChanged() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		document.getElementById("mainContent").innerHTML=xmlHttp.responseText 
	}
}

function GetXmlHttpObject() {
	var xmlHttp=null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e) {
		// Internet Explorer 
		try {
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	//alert(xmlHttp);
	return xmlHttp;
}

function setLangLabel() {
	var language = readCookie("language");
	if (language == "English") {
		document.getElementById("engLang").style.fontWeight = "bold";
		document.getElementById("spanLang").style.fontWeight = "normal";
	} else if (language == "Spanish") {
		document.getElementById("spanLang").style.fontWeight = "bold";
		document.getElementById("engLang").style.fontWeight = "normal";
	}
}