function myAjax(url,func) {

	var ajax=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");

	ajax.onreadystatechange=function() {

		if (ajax.readyState==4&&ajax.status==200) {

			func(eval("("+ajax.responseText+")"));

		}

	}

	ajax.open("POST",url,true);
	ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	ajax.send("post=yes");

}

function menuShowAndHide(number) {

	switch (document.getElementById("menu_"+number).className) {

		case "menuHide": document.getElementById("menu_"+number).className="menuShow"; break;
		case "menuShow": document.getElementById("menu_"+number).className="menuHide"; break;

	}

}
function printModule() {
	var head=document.getElementById("pageHead").innerHTML;
	var google=document.getElementById("googleAnalytics").innerHTML;
	head=head.replace(google,"");
	var newWindow=window.open();
	newWindow.document.write('<html><head>'+head+'</head><body style="background-image:none;"><div style="width:600px;padding:16px;">'+document.getElementById("moduleContent").innerHTML+'</div></body></html>');
	newWindow.focus();
	newWindow.print();
}
