$(document).ready(function(){
			$("a").filter(".popup_print").click(function(){ 
				if(jQuery.browser.safari){ 
   					var w = 710;
					var h = 566;
				} else {
					var w = 716;
					var h = 600;
				}
				var centerW = (window.screen.width - w) / 2; 
				var centerH = (window.screen.height - h) / 2;
				window.open(this.href, 'Fandango', 'resizable=0,scrollbars=yes,width=' + w + ',height=' + h + ',left=' + centerW + ',top=' + centerH);
				return false;
 			});
});

$(document).ready(function(){
			$("a").filter(".popup_print_confirmation").click(function(){ 
				if (this.href == null || this.href.toLowerCase().indexOf("document.printform.submit") < 0)
					return;
					
				var x = window.screen.availWidth - 835;
				var y = 0;
				var windowName = 'conf_print';
				window.open('', windowName, 'resizable=1,menubar=yes,location=yes,toolbar=yes,scrollbars=yes,width=' + 835 + ',height=' + 540 + ',left=' + x + ',top=' + y);
				document.printForm.target = windowName;
				document.printForm.submit();
				return false;
 			});
});

function popWinPrintable(url)
{
    var w = 716;
    var h = 600;
    var centerW = (window.screen.width - w) / 2; 
    var centerH = (window.screen.height - h) / 2;
    window.open(url, 'Fandango', 'resizable=0,scrollbars=yes,width=' + w + ',height=' + h + ',left=' + centerW + ',top=' + centerH);
    return false;
}
