<!--
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=yes,status=no,location=no,menubar=no'		
  win = window.open(mypage, 'popup1', winprops)
  if(win==null)
	alert("Please close any Popup-up blockers you may have running.");
  else  
	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,status=no,location=no,menubar=no'		
  win = window.open(mypage, 'popup2', winprops)
  if(win==null)
	alert("Please close any Popup-up blockers you may have running.");
  else  
	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, 'popup3', winprops);
  if(win==null)
	  alert("Please close any Popup-up blockers you may have running.");
  else  
	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, 'popup4', winprops);
  if(win==null)
	  alert("Please close any Popup-up blockers you may have running.");
  else  
	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,resizable=yes,location=no,menubar=no,toolbar=no,status=no';	
  win = window.open(mypage, 'popup5', winprops);
  if(win==null)
	  alert("Please close any Popup-up blockers you may have running.");
  else  
	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, 'popup6', winprops);
  if(win==null)
	  alert("Please close any Popup-up blockers you may have running.");
  else  
	win.focus();
}

function TopWindowScroll(mypage, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = 0;		
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,location=no,menubar=no,toolbar=no,status=yes';	
  win = window.open(mypage, 'popup7', winprops);
  if(win==null)
	  alert("Please close any Popup-up blockers you may have running.");
  else  
	win.focus();
}

function TopWindowScroll2(mypage, w, h) {
  var winl = ((screen.width - w) / 2) + 20;
  var wint = 20;		
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,location=no,menubar=no,toolbar=no,status=yes';	
  win = window.open(mypage, 'popup8', winprops);
  if(win==null)
	  alert("Please close any Popup-up blockers you may have running.");
  else  
	win.focus();
}

function ShowCal(ctrl, dat){
  var url = '../Utilities/calendarPopup.aspx?control='+ctrl+'&dat='+dat;
  CenterWindow(url, 178, 140);
}

function ShowCalWeb(ctrl, dat){
  var url = '../../Utilities/calendarPopup.aspx?control='+ctrl+'&dat='+dat;
  CenterWindow(url, 178, 140);
}

function print_window(url) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=647,height=450');
}
//-->
