// JavaScript Document
function newWindow(kep, W, H){
  if( W == null ) { 
  	W = 600;
	}
  if( H == null ) { 
  	H = 403;
  }
  
  X = (screen.width - W)/2;
  Y = (screen.height - H)/2;
  mywin=open("", "Image", "width="+W+", height="+H+", screenX="+X+", screenY="+Y+", status=0, menubar=0, toolbar=0, resizable=0, scrollbars=0");
  mywin.document.open();
  mywin.document.write("<?xml version=\"1.0\" encoding=\"iso-8859-2\"?>");
  mywin.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
  mywin.document.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
  mywin.document.write("<head><title>Mazsola Játszóház</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\" />");
  mywin.document.write("</head>");
  mywin.document.write("<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onBlur=\"self.close()\">");
  mywin.document.write("<img src=\"" +kep +"\" width=\""+W+"\" height=\""+H+"\" />");
  mywin.document.write("</body></html>");
  mywin.document.close();
  mywin.focus();
}

function openWin(URL, NAME, W, H){
  /*
  W = 800;
  H = 350;
  */
  X = (screen.width - W)/2;
  Y = (screen.height - H)/2;
  mywin=open(URL, NAME, "width="+W+", height="+H+", status=0, menubar=0, toolbar=0, resizable=1, scrollbars=1, screenX="+X+", screenY="+Y);
}
