function printContent() {
	window.print();
}
/* The Firefox is default*/
function openCenteredWindow(width, height, url) {
	if(navigator.userAgent.indexOf("MSIE") != -1){
		width = width - 25;
		heigth = height - 13;
	} else if(navigator.userAgent.indexOf("Firefox") != -1){
		// default
	} else if(navigator.userAgent.indexOf("Safari") != -1){
		width = width + 2;
		heigth = height -10;
	}
	
	// open
	var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    
    var windowFeatures = "width=" + width + "px" + ",height=" + height + "px" 
    	+ ",status=no,resizable=no,scrollbars=yes,left=" + left + "px" + ",top=" + top + "px" + 
        ",screenX=" + left + "px" + ",screenY=" + top + "px" ;
    myWindow = window.open(url, "", windowFeatures);
}
function openCenteredWindowWithLocation(width, height, url) {
	if(navigator.userAgent.indexOf("MSIE") != -1){
		width = width - 25;
		heigth = height - 13;
	} else if(navigator.userAgent.indexOf("Firefox") != -1){
		// default
	} else if(navigator.userAgent.indexOf("Safari") != -1){
		width = width + 2;
		heigth = height -10;
	}
	
	// open
	var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    
    var windowFeatures = "width=" + width + "px" + ",height=" + height + "px" 
    	+ ",status=no,resizable=no,location=yes,left=" + left + "px" + ",top=" + top + "px" + 
        ",screenX=" + left + "px" + ",screenY=" + top + "px" ;
    myWindow = window.open(url, "", windowFeatures);
}