function subWin(theURL,winName,features) {
  var winFocus;
  winFocus = window.open(theURL,winName,features,scrollbars=1,resizable=1,toolbar=0,status=1,lacation=0);
  winFocus.focus();
}

function openwin(wUrl,wWidth,wHeight) {
scWidthCenter = screen.availWidth / 3;
scHeightCenter = screen.availHeight / 5;
wOption ="scrollbars=1,resizable=1,toolbar=1,status=0,lacation=0,width=" + wWidth + ",height=" + wHeight + ",left=" +(scWidthCenter - (wWidth / 3)) + ",top=" + (scHeightCenter - (wHeight / 5));
window.open(wUrl,'window1',wOption);
}

function openwin2(wUrl,wWidth,wHeight) {
scWidthCenter = screen.availWidth / 3;
scHeightCenter = screen.availHeight / 5;
wOption =
"scrollbars=1,resizable=1,toolbar=0,status=0,lacation=0,width=" + wWidth + ",height=" + wHeight + ",left=" +(scWidthCenter - (wWidth / 3)) + ",top=" + (scHeightCenter - (wHeight / 5));
window.open(wUrl,'window2',wOption);
}

function MaxWin(){
maxWin = window.open();
maxWin.moveTo(0,0);
maxWin.resizeTo(screen.availWidth,screen.availHeight);
}
