var MSIE3 =(navigator.appVersion.indexOf("MSIE 3") != -1) ? true : false
var MSIE =(navigator.appVersion.indexOf("MSIE") != -1) ? true : false
var IsMAC = (navigator.appVersion.indexOf("Mac") != -1) ? true : false
var NAV = (navigator.appName == "Netscape") ? true: false
var NAV2 = NAV && (navigator.appVersion.charAt(0) == "2" )
var SC = null
var win = null
var setWin = !(MSIE3 || NAV2)
function openWin(thePage, w, h, txt) {
if  (setWin) {
       if (!NAV) {SC = "0,"}
   else {SC = (txt == "Vertical") ? "1," : "0,"}
       args = "\"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="
        + SC + "resizable=1,copyhistory=0,width=" + w + ",height=" + h + "\""
       if (!MSIE) {
               win = window.open(thePage, txt, args)
               if (win) {win.focus()}
   }
       else {
               if (!IsMAC && win ) {
                       win.close()
               }
               win = window.open(thePage, "IE", args)
       if ( win ) {
                       win.focus()
               }
  }
}}
function showMsg (txt) {
   window.status = txt
   return true;
}
