function newWinImage(url,imageWidth,imageHeight,title){
	imageWidth= imageWidth + 50
	imageHeight = imageHeight + 75
	var xMax = screen.width, yMax = screen.height;
	var xOffset = (xMax - imageWidth)/2, yOffset = (yMax - imageHeight)/2;
	winprops = 'height='+imageHeight+',width='+imageWidth+',directories=no,location=no,menubar=no,scrollbars=Yes,status=no,toolbar=no,resizable=no,left='+xOffset+',top='+yOffset
	var popWin = window.open('','', winprops);
	var msg= "<HTML>";
	msg += "<HEAD><TITLE>"+title+"</TITLE></HEAD>";
	msg += "<BODY marginwidth=5 marginheight=5 topmargin=5 leftmargin=5 rightmargin=5 bottommargin=0>";
	msg += "<link href=\"/styles/styles.css\" rel=\"stylesheet\" type=\"text/css\">";
	msg += "<table align=\"center\"><tr><td class=\"heading\">"+title+"</td></tr><tr><td align=\"center\" bgcolor=\"#A2B2CE\"><img src=/images/" + url + "></td></tr>";
	msg += "<tr><td align=\"center\"><a href=\"javascript:window.close()\" class=\"greySmall\">Close Window</a></td></tr></table>";
	msg += "</BODY>";
	msg += "</HTML>";

	popWin.document.write(msg);
}

function newWin(url,windowWidth,windowHeight,title,windowScroll){
	windowWidth= windowWidth + 35
	var xMax = screen.width, yMax = screen.height;
	var xOffset = (xMax - windowWidth)/2, yOffset = (yMax - windowHeight)/2;
	winprops = 'height='+windowHeight+',width='+windowWidth+',directories=no,location=no,menubar=no,scrollbars=Yes,status=no,toolbar=no,resizable=yes,left='+xOffset+',top='+yOffset
	window.open(url,title, winprops);
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
