// do not allow site to be viewed inside a frameset if (top.location != location) { top.location.href = document.location.href ; } envLoaded = false; function envInit(){ // nothing in this func for now... envLoaded = true; } // end func envInit() function switchPic(bName,whatAction){ if (envLoaded) { // alert("switch pic initiated, envLoaded=" + envLoaded + " , bName=" + bName + ", whatAction=" + whatAction); buttonName = bName + "_" + whatAction; document.images[bName].src = eval(buttonName + ".src"); } } function switchLNK(bName,whatAction,style){ if (envLoaded) { buttonName = style + "_" + whatAction; document.images[bName].src = eval(buttonName + ".src"); } } function pop(mypage, myname, w, h, resize) { var winl = (screen.width - w) / 2; if (h < screen.height && h != 0) { var wint = (screen.height - h) / 2; var scroll = 0; } else { var wint = 0; h = (screen.height - 50); var scroll = 1; winl = winl + 16; } var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=0,scrollbars='+scroll+',location=0,statusbar=0,menubar=0,resizable='+resize; var win = window.open(mypage, myname, winprops); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function switch_language(oform) { var lang = oform.ls.options[oform.ls.selectedIndex].value; var url = oform.cur_url.value; if (url.indexOf("?")) { var switch_url = oform.cur_url.value + "&ls=" + lang; } else { var switch_url = oform.cur_url.value + "?ls=" + lang; } location.href = switch_url; }