/* Function for new window open with defined parameters and content */
function OpenWindow(url, title, width, height){
  var astr = '';
  var param = '';
  var width1 = width;
  var height1 = height;
  if (width1 > 950) width1 = 950;
  if (height1 > 950) height1 = 950;
  param = 'width=' + width1 + ',height=' + height1 + ',toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no';
  NewWindow = window.open('', title, param);
  ndoc = NewWindow.document;
  ndoc.close();
  ndoc.open();
  astr += '<html>';
  astr += '<head><title>'+title+'</title></head>';
  astr += '  <body bgcolor=#FFFFFF text=Black link=Black vlink=Black alink=Black marginheight=0 marginwidth=0 topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0>';
  astr += '  <center><img src='+url+'></center>';
  astr += '  </body>';
  astr += '</html>';
  ndoc.write(astr);
  ndoc.close();
  self.win = NewWindow;
}

