PositionX = 100; PositionY = 100;
defaultWidth  = 800; defaultHeight = 600;
var AutoClose = false;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=760,height=420,left='+PositionX+',resizable=yes top='+PositionY;

//**********************************

function OpenPrintWin(printTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title></title>');
writeln('<link href="../styles/cou_stylesheet_best.css" type="text/css" rel="stylesheet">');
writeln('<meta content=TR name=language><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
//  writeln('var content = window.opener.PrintContent.innerHTML ;');
//  writeln('document.write(content);');
writeln('function doTitle(){document.title="'+printTitle+'";}');
writeln('</sc'+'ript>');
writeln('</head><body bgcolor="FFFFFF" scroll="yes" onBlur="self.close()" onload="doTitle();window.print();">');
writeln('<sc'+'ript>');
writeln('var content = window.opener.PrintContent.innerHTML ;');
writeln('document.write(content);');
writeln('</sc'+'ript>');
writeln('</body></html>');
close();		
}}

//**********************************

function OpenPrintWinInvoice(printTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title></title>');
writeln('<link href="../styles/cou_stylesheet_best.css" type="text/css" rel="stylesheet">');
writeln('<meta content=TR name=language><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
//  writeln('var content = window.opener.PrintContent.innerHTML ;');
//  writeln('document.write(content);');
writeln('function doTitle(){document.title="'+printTitle+'";}');
writeln('</sc'+'ript>');
writeln('</head><body bgcolor="FFFFFF" scroll="yes" onBlur="self.close()" onload="doTitle();window.print();">');
writeln('<sc'+'ript>');
writeln('var content = window.opener.PrintContent.innerHTML ;');
writeln('document.write(content);');
writeln('</sc'+'ript>');
writeln('</body></html>');
close();		
}}
//**********************************


