
function pdfopen(filename)
{
window.open(filename,"Pdfwin","menubar=no,scrollbars=yes,toolbar=no, resizable=1,width=640,height=428");
}

function stock_win(url)
{ window.open(url,"stockcheck",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=580,height=820'); }

function popup_win(url)
{ window.open(url,"PopUpWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=460,height=260'); }


function addBookmark() {
  if (window.external)
    external.AddFavorite(location.href);
  else
    alert("Your browser doesn't support this feature.");
}


function Init() 
  {
  self.focus();
  var time = new Date();
  var date = new Date();
  if( document.cookie.indexOf( 'Refer=') == -1 ) {
     date.setTime(date.getTime()+(15*24*60*60*1000));
     var expires = "; expires="+date.toGMTString();

    document.cookie = 'Refer=' + time.getTime() + ':' + escape( document.location) + ':' + escape( document.referrer) +expires + '; path=/; domain=.keysan.com; ';
  }
}
 
function writeConsole(filename) {
 top.consoleRef=window.open('','myconsole',
  'width=350,height=450,top='+100 ,'left=300'
   +',menubar=0'
   +',toolbar=0'
   +',status=0'
   +',scrollbars=1'
   +',resizable=1')
content='<img src=' + filename + '>';
top.consoleRef.document.open("text/html","replace");
 top.consoleRef.document.writeln(
  '<html><head><title>Pictures</title></head>'
 +'<body bgcolor=white onLoad="self.focus()">'
+'<FORM><INPUT TYPE="button" VALUE="Close Window" onClick="window.close()"></FORM>'
 +content + '<br>' 
 +'</body></html>'
 )
 top.consoleRef.document.close()
} 

 
