<!--
// open new window

function openWindow(url, name, bar, rs, w, h) {
  var resize = "";
  if (rs) {
    resize = "resizable,";
  }
  var bars = "";
  if (bar) {
    bars = "menubar,status,toolbar,";
  }
  popupWin = window.open(url, name, 'scrollbars,' + bars + resize + 'width=' + w + ',height=' + h + ',screenX=0,screenY=0,left=0,top=0');
  window.name = 'opener';
}
 
// example:
// href="javascript:openWindow('table.asp,'table',false,true,200,400)"

function popUp(strURL,strType,strHeight,strWidth) {
    var strOptions="";
 if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
 if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
 if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;

 window.open(strURL, 'newWin', strOptions);
}

//example:
//<a href="my-pop-up-window.htm" onclick="popUp(this.href,'console',400,200);return false;" onkeypress="this.onclick()"; target="newWin">This is my link</a>
// -->
