var iwin = null;
var screenW = screen.width
var screenH = screen.height
function popImage(filename,W,H) 
  {	
  var mystring = "status=no,toolbar=no,location=no,left="+((.5*screenW)-(.5*W))+",top="+((.5*screenH)-(.5*H))+",scrollbars=no,resizable=no,menu=no,height=" + H + ",width=" + W;
    if (iwin)
      {
      iwin.close();
      }
  iwin = window.open('','IWIN', mystring);
  iwin.document.write('<html><head><title>AllPro Printing & Direct Mail</title></head><body bgcolor="#ffffff" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">');
  iwin.document.write('<img src="'+filename+'">');
  iwin.document.write('</body></html>');
  iwin.focus();
  }

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
