
<!--


function PopSized(url, width, height, scrollbars) {
	var windowWidth = width;
	var windowHeight = height;
	var positionX = (screen.width-windowWidth)/2;
	var positionY = (screen.height-windowHeight)/2;	

	var newWindow = window.open(url, "a", "left="+positionX+",top="+positionY+",width="+windowWidth+",height="+windowHeight+",scrollbars="+scrollbars+",resizable=no");
	newWindow.focus();
	return false;
}

function PopSized2(url, width, height, scrollbars) {
	var windowWidth = width;
	var windowHeight = height;
	var positionX = (screen.width-windowWidth)/2;
	var positionY = (screen.height-windowHeight)/2;	

	var newWindow = window.open(url, "a", "left="+positionX+",top="+positionY+",width="+windowWidth+",height="+windowHeight+",scrollbars="+scrollbars+",resizable=yes,menubar=yes,toolbar=yes,location=yes");
	newWindow.focus();
	return false;
}

function alterCate(elm, onoff)
{
	if (typeof(onoff) == "undefined" )
	{
		onoff = "blur";
	}

	if (!elm.base)
	{
		elm.base = elm.value;
	}

	if (elm.value == elm.base && onoff != "blur")
	{
		elm.value = "";
	}
	else if (elm.value == "" && onoff == "blur")
	{
		elm.value = elm.base;
	}
}

function hlight(me) { 
	if (me.value != "") { 
		me.select(); 
	} 
} 

function ShowPhoto(Name, Size, Caption)
{
	var windowWidth;
	var windowHeight;
	
	if (Size == "tall") {
		windowWidth = 540;
		windowHeight = 640;
	}
	else
	{
		windowWidth = 640;
		windowHeight = 540;
	}
	
	var positionX = (screen.width-windowWidth)/2;
	var positionY = (screen.height-windowHeight)/2;	

    large_image_win = window.open("", Name, 'left='+positionX+', top='+positionY+', width='+windowWidth+', height='+windowHeight+', scrollbars=yes,resizable=no, status=no, location=no, menubar=no');
    large_image_win.document.close();
    large_image_win.document.writeln("<style>a { color: #305BA9; }</style>");
    large_image_win.document.writeln("<p width=\"100%\" align=\"center\"><img style=\"padding-bottom: 5px;\" src=\"images/" + Name+ ".gif\">");
    large_image_win.document.writeln("<div style=\"font: 10px Verdana, Arial, Helvetica, sans serif\; padding-left: 10%\; line-height: 16px\;\" align=\"left\">" + Caption + "</div><br></p>");
    large_image_win.focus();
}

function PopSized(url, width, height, scrollbars, name) {
	var windowWidth = width;
	var windowHeight = height;
	var positionX = (screen.width-windowWidth)/2;
	var positionY = (screen.height-windowHeight)/2;	

	window.open(url, name, "left="+positionX+",top="+positionY+",width="+windowWidth+",height="+windowHeight+",scrollbars="+scrollbars+",resizable=no");
}

// -->