function removeConfirm(action) {
  var agree = confirm("Are you sure you want to remove this entry?");
  if (agree) {
    top.location = action;
  }
}

function openWindow(myLink,windowName,ht,wd) {
  var myWin=window.open("",windowName,"height="+ht+",width="+wd+",dependent=yes,scrollbars=yes,resizable=yes");
  myWin.focus();
  myLink.target=windowName;
} 


var winopts="toolbar=0,location=0,directories=0, status=0,menubar=0,scrollbars=no,height=600,width=770";

var smallwindow=null;

function setEvent() {
  return false;
}

function historywin(filename) {
  fileURL = filename;
  if (parseInt(navigator.appVersion)<4) {
    if (smallwindow != null) smallwindow.close();
  }

  timerID = setTimeout('Opener(fileURL)',100);
}

function Opener(winname){
  filename = winname; winname="historywin";
  smallwindow= window.open(filename,winname,winopts);
  
  if (navigator.appVersion.indexOf("X11")!=-1 || navigator.appVersion.indexOf("Mac") != -1) {
    smallwindow = window.open(filename,winname,winopts)
  }
  
  if (navigator.appVersion.indexOf("MSIE") == -1) {
    smallwindow.mainWin = this; WindowFocus();
  }
}

function WindowFocus(){
  if (navigator.appVersion.indexOf("2.") == -1 && navigator.appVersion.indexOf("MSIE") == -1) smallwindow.focus();
}
