 
function openWin (url, w, h, win_name) {
		Win=window.open(url, win_name,  'toolbar=0,scrollbars=1,location=0,directories=0,status=0,menubar=0,resizable=1,width='+w+',height='+h+',border=thin,top=50,left=50,help=0');
		Win.focus();
}

function ShowPhoto(photoname, w, h) {
	url = "/showphoto.php?img="+photoname;

	Win=window.open(url, 'viewPhoto',  'toolbar=0,scrollbars=0,location=0,directories=0,status=0,menubar=0,resizable=0,width='+w+',height='+h+',border=thin,top=50,left=50,help=0');
	Win.focus();
}

function GoURL(url, target) {
	var w;
	if (target == "_blank") {
		w = window.open(url,"w","");
		w.focus();
	}	else {
		document.location = url;
	}
	return false;
}

function showNav(id)
{
	eval("document.getElementById('" + id + "')").style.visibility='visible';
}


function hideNav(id, cls)
{
	eval("document.getElementById('" + id + "')").style.visibility='hidden';
}

function popupCat2(mypage, myname, w, h, scroll) {
        var winl = (screen.width - w) / 2;
        var wint = (screen.height - h) / 2;
        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
        win = window.open(mypage, myname, winprops);
        win.window.focus();
} 
