ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false



// SHOW AND HIDE

function showObject(id) {
	if (ns4) document.layers[id].visibility = "show";
	//else if (ie4) document.all[id].style.visibility = "visible";
	else document.getElementById(id).style.visibility = "visible";


}


function hideObject(id) {
	if (ns4) document.layers[id].visibility = "hide";
	//else if (ie4) document.all[id].style.visibility = "hidden";
	else document.getElementById(id).style.visibility = "hidden";
}

// POP WINDOWfunction popWindow(urlpass,windowNumber,imageWidth,imageHeight,posLeft,posTop) {  newWindow=window.open(urlpass,windowNumber,"width="+imageWidth+",height="+imageHeight+",scrollbars=no,toolbar=no,resizable=no,left="+posLeft+",top="+posTop);newWindow.focus();}



// POP WINDOW FULL

function popWindowFull(url) {
    var str = "left=0,screenX=0,top=0,screenY=0,resizable";
    if (window.screen) {
      var ah = screen.availHeight - 150;
      var aw = screen.availWidth - 10;
      str += ",height=" + ah;
      str += ",innerHeight=" + ah;
      str += ",width=" + aw;
      str += ",innerWidth=" + aw;
    }
    win=window.open(url, "w", str);
}










