/*******************************************
  get browser and versions
*******************************************/
var isNav = (navigator.appName == "Netscape") ? true : false;
var isIE  = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
var isOp  = (navigator.appName.indexOf("Opera") != -1) ? true : false;
var isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false;
var isVersion = parseInt(navigator.appVersion.charAt(0));
var ns4 = (document.layers)? true:false
var ie4 = (document.all)? true:false
var ns6 = (!document.all && document.getElementById) ? true:false
var myDir; 

if (((isNav) && (isVersion < 3)) || ((isIE) && (isVersion < 2))) {alert("Warning: Requires at least a 3.0 browser!");}

/*******************************************
  start: confirm functions
*******************************************/
function confirmThis(message) {
 if(confirm(message)) return true;
 return false;
}

function confirmdelete(url,message) {
 if(confirmThis(message)) {
  window.location.href = url;
 }
}
/*******************************************
  end: confirm functions
*******************************************/

/*******************************************
  start: popup functions
*******************************************/
function popUpWin(url,windowName, windowOptions) {
  windowName = window.open(url,windowName,windowOptions);
  windowName.focus();
}
/*******************************************
  end: popup functions
*******************************************/