function popup( nHeight, nWidth )
{
    popup = window.open( '/_page/inc/popup.php', 'popup', ' width='+nWidth+', height='+nHeight+',resizable=yes,scrollbars=yes,menubar=no,left=200,top=100' );
    popup.focus();
}
function popupDownload()
{
    popup = window.open( '/_page/lib/modules/konkurs/download.php?id=regulaminfpr.pdf&', 'popup', ' width=300, height=300,resizable=yes,scrollbars=yes,menubar=no,left=200,top=100' );
    popup.focus();
}
function zamien()
{
		var as;
		if(as = document.getElementById("download"))
		{
			as.onclick = popupDownload;
			as.href = '#';
			as.target = '';
		}
		
}//http://www.pracujacyrodzice.pl/dokumenty/regulaminfpr.pdf
function initLoad()
{

	var oldOnload = window.onload;
	var that = this;
	window.onload = function()	{
		if (oldOnload) try{oldOnload();}catch(e){/*explorer dziwne rzeczy plecie*/}
			that.zamien();
	}
}


function checkForm(frm){
   if(frm.e_mail_odb.value == ''){
       alert('Proszę podać mail odbiorcy.');
       return false;
    }
 }
