function getElement(obj) {
	return document.getElementById(obj);
}

function showSubmenu(obj) {
	getElement(obj).style.display = "block";
}

function hideSubmenu(obj) {
	getElement(obj).style.display = "none";
}

function sendemail(URL,EMAIL) {
	loadContent("../sendemail.php","email=" + EMAIL +"&url=" + encodeURI(URL));
	window.open("http://" + URL);
}

var xmlhttp;
function loadContent(url,eventVar) {
	
	sendurl = url;
	
	if (window.ActiveXObject) {
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
	} else {
		xmlhttp=new XMLHttpRequest();
	}
	
	if (xmlhttp) {
		xmlhttp.open("POST",url,true);
		xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
		xmlhttp.send(eventVar);
	}
}
