<!--
function CenterWindow(mypage, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;		
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no';		
  win = window.open(mypage, 'popup1', winprops);
  win.focus();
}

function CenterWindow2(mypage, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;		
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no';		
  win = window.open(mypage, 'popup2', winprops);
  win.focus();
}

function CenterWindowPrint(mypage, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;		
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,location=no,menubar=yes,toolbar=yes,resizable=yes';		
  win = window.open(mypage, 'popup2', winprops);
  win.focus();
}

function TopWindow(mypage, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = 0;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,location=no,menubar=no,toolbar=no,resizable=no';		
  win = window.open(mypage, 'popup4', winprops);
  win.focus();
}

function TopWindowPrint(mypage, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = 0;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,location=no,menubar=yes,toolbar=yes,resizable=yes';		
  win = window.open(mypage, 'popup5', winprops);
  win.focus();
}

function CenterWindowScroll(mypage, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;		
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,location=no,menubar=no,toolbar=no';		
  win = window.open(mypage, 'popup6', winprops);
  win.focus();
}

function TopWindowScroll(mypage, w, h, windowname) {
	if(windowname==null)
		windowname='popup7'
  var winl = (screen.width - w) / 2;
  var wint = 0;		
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes';	
  win = window.open(mypage, windowname, winprops);
  win.focus();
}

function ShowCal(ctrl, dat){
  var url = '../../Utilities/calendarPopup.aspx?control='+ctrl+'&dat='+dat;
  CenterWindow(url, 178, 140);
}

function ShowCal2(ctrl, dat){
  var url = '../../Utilities/calendarPopup.aspx?control='+ctrl+'&dat='+dat;
  CenterWindow2(url, 178, 140);
}
//-->