function winimage(i)
{
  var im=new Image();
  im.src=i;
  var xp=im.width+20;
  var yp=im.height+20;
  var tp=(screen.height-yp)/2;
  var lp=(screen.width-xp)/2;
  var newin=window.open('', '', 'height='+yp+',width='+xp+',top='+tp+',left='+lp+',location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=no,scrollbars=no', false);
  newin.document.write('<html><head><title>Window Image</title>');
  newin.document.write('</head><body style="background-color: #EAEAEA">');
  newin.document.write('<img style="border:solid 2px #9F356A;" src="'+i+'" />');
  newin.document.write('</body></html>');
  newin.document.close();
}

function winews(page)
{
  var xp=460;
  var yp=500;
  var tp=(screen.height-yp)/2;
  var lp=(screen.width-xp)/2;
  var newin=window.open(page, '', 'height='+yp+',width='+xp+',top='+tp+',left='+lp+',location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=no,scrollbars=yes', false);
  newin.document.close();
}

function winews2(page)
{
  var xp=460;
  var yp=300;
  var tp=(screen.height-yp)/2;
  var lp=(screen.width-xp)/2;
  var newin=window.open(page, '', 'height='+yp+',width='+xp+',top='+tp+',left='+lp+',location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=no,scrollbars=yes', false);
  newin.document.close();
}

function winpopxy(page,x,y)
{
  var xp=x;
  var yp=y;
  var tp=(screen.height-yp)/2;
  var lp=(screen.width-xp)/2;
  var newin=window.open(page, '', 'height='+yp+',width='+xp+',top='+tp+',left='+lp+',location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=no,scrollbars=yes', false);
  newin.document.close();
}

function winpopy(page,y)
{
  var xp=442;
  var yp=y;
  var tp=(screen.height-yp)/2;
  var lp=(screen.width-xp)/2;
  var newin=window.open(page, '', 'height='+yp+',width='+xp+',top='+tp+',left='+lp+',location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=no,scrollbars=yes', false);
  newin.document.close();
}

function winpop(page)
{
  var xp=600;
  var yp=400;
  var tp=(screen.height-yp)/2;
  var lp=(screen.width-xp)/2;
  var newin=window.open(page, '', 'height='+yp+',width='+xp+',top='+tp+',left='+lp+',location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=no,scrollbars=yes', false);
  newin.document.close();
}