
function postSubmit() {
  frm = document.getElementById("form1");
  frm.submit();
  return;
}

function scroll1() {
	self.scrollTo(0,570);
  return;	  
}

var newwindow;
var wheight = 0, wwidth = 0;

function popupwin(url, iwidth, iheight) {
var pwidth, pheight;
title = url;
colour = 'white';
if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10, scrollbars=yes' );
wheight=iheight;
wwidth=iwidth;
}

if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+60;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}

newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
newwindow.document.writeln('<a title="Kattints rá a bezáráshoz!" href="javascript:window.close();"><img src="' + url + '" border=0></a>');
newwindow.document.writeln('<\/center> <\/body> <\/html>');
newwindow.document.close();
newwindow.focus();
}

function closePopUpOnUnLoad() {
if (newwindow && !newwindow.closed) { newwindow.close(); }
}

