function navOver(button,drops){
	document.getElementById("nav_"+button).style.backgroundPosition = "bottom";
	if(drops){
	document.getElementById("navdropopen_"+button).value = 1;
	}
	removeAllNavhovers();
}
function navOut(button,drops){
	document.getElementById("nav_"+button).style.backgroundPosition = "top";
}
function navOutDrops(button,drops){
	document.getElementById("navdropopen_"+button).value = 0;
}
function refreshSecurityImage(){
	var today = new Date();
	var ref = today.toUTCString();
	document.getElementById('securityImage').innerHTML = "<img style='cursor:pointer' onclick='refreshSecurityImage(\"securityImage\");' src='scripts/securityimage.php?refid="+ref+"' alt='Security Image' /><input type='hidden' name='security_refid' value='"+ref+"' />";
}

function newPopupName(url,name) {
	popupWindow = window.open(
		url,name,'height=800,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}

function newPopupChat(url,name) {
	popupWindow2 = window.open(
		url,name,'height=750,width=750,left=200,top=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}

function newPopupGuestbook(url,name) {
	popupWindow3 = window.open(
		url,name,'height=500,width=500,left=300,top=75,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}