function gopopup(mylocation, pwidth, pheight) {

	sParams = 'width=' + pwidth +',height=' + pheight + ',screenx=10,screeny=10,left=10,top=10,directories=no,location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes,status=no';
	window.open (mylocation, 'popup', sParams);
}

function gopopup2(mylocation, pwidth, pheight) {

	sParams = 'width=' + pwidth +',height=' + pheight + ',screenx=0,screeny=0,left=50,top=100,directories=yes,location=yes,menubar=yes,scrollbars=yes,toolbar=yes,resizable=yes,status=no';
	window.open (mylocation, 'popup', sParams);
}

//declare globals to build object reference
var whichDom = "", styleObj = ""
var isNav4, isNav6, isIE, isMAC
var isBrand = navigator.appName
var agt = navigator.userAgent.toLowerCase()
var navVer = parseInt(navigator.appVersion)

isNav4 = (isBrand == "Netscape" && navVer < 5) ? true : false
isNav6 = (isBrand == "Netscape" && navVer >= 5) ? true : false

isNav46 = ((isBrand == "Netscape") && (parseFloat(navigator.appVersion) >=
parseFloat(4.6)) && (parseFloat(navigator.appVersion) < parseFloat(4.7))) ?
true : false
isNav47 = ((isBrand == "Netscape") && (parseFloat(navigator.appVersion) >=
parseFloat(4.7))) ? true : false

isIE = ((agt.indexOf("msie") != -1) && (parseInt(navVer) >= 4)) ? true :
false
isMAC = (agt.indexOf("mac") != -1) ? true : false

//construct object reference
var doc = document
var layers = doc.layers
var all = doc.all

if (layers) {
whichDom = '["'
styleObj = '"]'
} else if (all) {
whichDom = ".all."
styleObj = ".style"
} else {
whichDom = '.getElementById("'
styleObj = '").style'
}

function setObject(obj) {
var theObj
if (typeof obj == "string")
theObj = eval("document" + whichDom + obj + styleObj)
else
theObj = obj
return theObj
}


if (isNav6) {
visible = 'block';
hidden = 'none';
} else if (document.all) {
visible = '';
hidden = 'none';
}

function showrec(id,img, src1, src2) {
menu = id;
img = img;
var theObj = setObject(menu);

if (theObj.display == '' || theObj.display == 'block') {
theObj.display = hidden;
if (src1 != '') {
document[img].src = src1;
}
} else {
theObj.display = visible;
if (src2 != '') {
document[img].src = src2;
}
}
}