function getnewwindow(url,n,charset,width,height,background,bgcolor) {
var remote=null;
remote=window.open(url,n,'width='+width+',height='+height+',location=yes,toolbar=yes,resizable=yes,menubar=yes,scrollbars=yes,status=yes');
if (remote != null) {
if (remote.opener == null )
remote.opener = self;
} 
remote.document.write('<html>');
remote.document.write('<head>');    
remote.document.write('<meta http-equiv='+'"'+'case-control'+'"'+' content='+'"'+'public'+'"'+'>');
remote.document.write('<meta http-equiv='+'"'+'Content-Type'+'"'+' content='+'"'+'text/html; charset='+charset+'"'+'>');
remote.document.write('</head>');
remote.document.write('<body background='+'"'+background+'"'+' bgcolor='+'"'+bgcolor+'"'+'>');
return remote;
}


function getnewwindowauto(url,n,charset,background,bgcolor) {
var remote=null;
remote=window.open(url,n,'location=yes,toolbar=yes,resizable=yes,menubar=yes,scrollbars=yes,status=yes');
if (remote != null) {
if (remote.opener == null )
remote.opener = self;
} 
remote.document.write('<html>');
remote.document.write('<head>');
remote.document.write('<meta http-equiv='+'"'+'Content-Type'+'"'+' content='+'"'+'text/html; charset='+charset+'"'+'>');
remote.document.write('<meta http-equiv='+'"'+'case-control'+'"'+' content='+'"'+'public'+'"'+'>');
remote.document.write('</head>');
remote.document.write('<body background='+'"'+background+'"'+' bgcolor='+'"'+bgcolor+'"'+'>');
return remote;
}

