var winopts ="top=1,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=no,resizable=yes,height=300,width=700,copyhistory=0,";
var smallwindow = null;

function historywin(filename) {

    fileURL=filename;
     if (parseInt(navigator.appVersion) < 4) {
        if (smallwindow != null) smallwindow.close();
   }
    timerID= setTimeout('Opener(fileURL)',100);
}

function historywin2(filename,i_height,i_width) {
    fileURL=filename;
    i2_height=i_height;
    i2_width=i_width;

    Opener(fileURL,i2_height,i2_width);
}

function Opener(filename){

  winname = "historywin";
  smallwindow=window.open(filename,winname,winopts);

}

function Opener2(winname,i_height,i_width){

  var winopts="top=1,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=no,resizable=yes,copyhistory=0";
  winopts = winopts + ",height=" + i_height + ",width=" + i_width
  filename = winname;
  winname = "historywin"
  window.open(filename,winname,winopts)

}

