var now = new Date();
	var dYear = now.getYear();
	if (dYear < 1900) {
			dYear += 1900;
	}

	
// Pop-up definition
var newWin = null;
function popUp(strURL, strType, strWidth, strHeight) {  
 if (newWin != null && !newWin.closed)    
  newWin.close();  
 var strOptions="";  
 
 if (strType=="fixednooptions")    
  strOptions="height="+strHeight+",width="+strWidth; 
 
 if (strType=="fixedscroll")    
 strOptions="scrollbars,"+"height="+strHeight+",width="+strWidth; 
 
 newWin = window.open(strURL, 'newWin', strOptions);  
 newWin.focus();
}
	
	
function centerWindow(page,winName,sWidth,sHeight){
	popWindow = window.open(page, winName,'toolbar=no,menubar=no,status=no,scrollbars=no,resizeable=no,width='+sWidth+',height='+sHeight);
	popWindow.moveTo(((screen.width/2)-(sWidth/2)),((screen.height/2)-((sHeight/2)+20)))
}

// Pop-up Window Template 2 with Menu and Scroll
function centerWindow2(page,winName,sWidth,sHeight){
	popWindow = window.open(page, winName,'toolbar=no,menubar=yes,status=no,scrollbars=yes,resizeable=yes,width='+sWidth+',height='+sHeight);
	popWindow.moveTo(((screen.width/2)-(sWidth/2)),((screen.height/2)-((sHeight/2)+20)))
}

