// JavaScript Document

var newWindow
function popUpWindow(url, windowName, width, height, rS)
 {
  
    var winprops = '';
	if (rS) { 
	  var rSize = 'yes';	  
	} else {  
	  var sBars = 'no';
	}
	
    if (screen.height < height) {
	  height = screen.height;
	  rSize = 'yes'
	  sBars = 'auto';
    }
	  
    var wLeft = (window.screen.availWidth - width) / 2;
    var wTop = (window.screen.availHeight - height) / 2;
	
	winprops = 'width=' + width +
	           ',height=' + height +  
	           ',left=' + wLeft +  
	           ',top=' + wTop +   
	           ',scrollbars=yes' +
	           ',toolbars=no' + 
	           ',resizable=' + rSize + 
	           ',location=no' + 
	           ',menubars=no';
  
	
   newWindow=window.open(url,windowName,winprops);
 	
	 
}
function CloseWindow(){

if (newWindow && !newWindow.closed) newWindow.close();
}
function printpage()
{
window.print()
}