//BEGIN TEMPLATE JAVASCRIPTS
bNS4 = (document.layers);
bIE4 = (document.all);
bV4 = (bNS4 || bIE4);
bMac = (navigator.appVersion.indexOf("Mac") != -1);
bMenu = (bNS4 || (bIE4 && !bMac));
bNS6 = (document.getElementById && !document.all) ? true : false;


function showlayer(lay, flag) {
  
 if (flag == "T"){
           if (bIE4) {document.all[lay].style.visibility = "visible";}
		   if (bNS4) {document.layers[lay].visibility = "show";}
		   if (bNS6) {document.getElementById([lay]).style.display = "block";}
          }
 else {
		if (bIE4) {document.all[lay].style.visibility = "hidden";}
		if (bNS4) {document.layers[lay].visibility = "hide";}
		if (bNS6) {document.getElementById([lay]).style.display = "none";}
	  }
}


function popUp(){return};
function popDown(){return};

if (!bV4) {
	event = null;
}

function openSubWin(strURL, pixW, pixH)
{
	document.cookie = "RedirectURL=" + location.href;
	strWHandle = "hwndSubWin";
	strProps = "resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=" + pixW + ",height=" + pixH + ",top=10,left=10";
	window.open(strURL, strWHandle, strProps);
}

function updateParent(newURL)
{
	window.opener.location = get_cookie(newURL);
	window.close();
}

function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		// if cookie exists
		if (offset != -1) { 
			offset += search.length
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset);
			// set index of end of cookie value
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	 }
	return returnvalue;
}
//END TEMPLATE JAVASCRIPTS
