var pop1
function popup1(which,winname,xw,yh) {
if (!pop1 || pop1.closed) {
if (navigator.appVersion.charAt(0) == "3") {
xStr ="width=" + xw + ",height=" + yh + ",scrollbars=0, directories=no, status=no, resizable=1, toolbar=0, location=0, status=0, menubar=0"
} else {
xStr = "left=" + eval((screen.width/2) - (xw/2)) + ",top=" + eval((screen.height/2) - (yh/2)) + ",width=" + xw + ",height=" + yh + ",scrollbars=0, resizable=1, toolbar=0, location=0, status=0, menubar=0"
}
pop1 = window.open(which,winname,xStr)
} else {
pop1.location = which
pop1.focus();
}
}

var pop2
function popup2(which,winname,xw,yh,resizable) {
if (!pop2 || pop2.closed) {
if (navigator.appVersion.charAt(0) == "3") {
xStr ="width=" + xw + ",height=" + yh + ",scrollbars=0, directories=no, status=no, resizable=" + resizable + ", toolbar=0, location=0, status=0, menubar=0"
} else {
xStr = "left=" + eval((screen.width/2) - (xw/2)) + ",top=" + eval((screen.height/2) - (yh/2)) + ",width=" + xw + ",height=" + yh + ",scrollbars=0, resizable=" + resizable + ", toolbar=0, location=0, status=0, menubar=0"
}
pop2 = window.open(which,winname,xStr)
} else {
pop2.location = which
pop2.focus();
}
}

var pop3
function popup3(which,winname,xw,yh,resizable,scrollbars) {
if (!pop3 || pop3.closed) {
if (navigator.appVersion.charAt(0) == "3") {
xStr ="width=" + xw + ",height=" + yh + ",scrollbars=" + scrollbars + ", directories=no, status=no, resizable=" + resizable + ", toolbar=0, location=0, status=0, menubar=0"
} else {
xStr = "left=" + eval((screen.width/2) - (xw/2)) + ",top=" + eval((screen.height/2) - (yh/2)) + ",width=" + xw + ",height=" + yh + ",scrollbars=" + scrollbars + ", resizable=" + resizable + ", toolbar=0, location=0, status=0, menubar=0"
}
pop3 = window.open(which,winname,xStr)
} else {
pop3.location = which
pop3.focus();
}
}

var pop4
function popup4(which,winname,xw,yh,resizable,scrollbars,status) {
if (!pop4 || pop4.closed) {
if (navigator.appVersion.charAt(0) == "3") {
xStr ="width=" + xw + ",height=" + yh + ",scrollbars=" + scrollbars + ", directories=no, status=no, resizable=" + resizable + ", toolbar=0, location=0, status=" + status + ", menubar=0"
} else {
xStr = "left=" + eval((screen.width/2) - (xw/2)) + ",top=" + eval((screen.height/2) - (yh/2)) + ",width=" + xw + ",height=" + yh + ",scrollbars=" + scrollbars + ", resizable=" + resizable + ", toolbar=0, location=0, status=" + status + ", menubar=0"
}
pop4 = window.open(which,winname,xStr)
} else {
pop4.location = which
pop4.focus();
}
}


//	Added by danny@slabtownmedia.com 3/5/06
function appendUri(uri,varName,objSelect){
if (objSelect.selectedIndex<=0) return false; 
var objOpt = objSelect.options[objSelect.selectedIndex]; 
window.location.href="?pg=" + uri + "&" + varName +"=" + objOpt.value; 
}

