isIE4 = (document.all) ? true : false;
isW3C = (document.getElementById && !isIE4) ? true : false;
isNN4 = (document.layers) ? true : false;

function checkNav() {

window.focus();

thispage = window.location.href;
thispage = thispage.substring(thispage.length, thispage.lastIndexOf('/') + 1);

if(window == top) {
top.location.href = "get_frames.htm?" + thispage;
}

while(!top.frames["right"].document.chooser.showThis) {
//wait
}
var current = top.frames["right"].document.chooser.showThis.value;

if(isNN4){
if(top.frames["right"].document.layers["box"].visibility != "hide") {
top.frames["right"].document.layers["box"].visibility = "hide";
}
    if(current != 'blank') top.frames["right"].document.layers[current].visibility = "hide";
}
// Explorer 4
else if(isIE4){

if(top.frames["right"].document.all["box"].style.visibility != "hidden") {
top.frames["right"].document.all["box"].style.visibility = "hidden";
}
    if(current != 'blank') top.frames["right"].document.all[current].style.visibility = "hidden";
}
// W3C - Explorer 5+ and Netscape 6+
else if(isW3C){
if(top.frames["right"].document.getElementById("box").style.visibility != "hidden") {
top.frames["right"].document.getElementById("box").style.visibility = "hidden";
}
    if(current != 'blank') top.frames["right"].document.getElementById(current).style.visibility = "hidden";
}

top.frames["right"].document.chooser.showThis.value = "blank";

}

function inquiry(sub) {
enq = window.open("https://bri10h.webmetrix.net.au/secure_cn23014/inquiry.asp?" + sub, "inquiry", 'statusbar=no width=700, height=700, scrollbars=yes');
}
