function t(num)
{
window.open("t"+num+".html","terkep2","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=493,height=371");
}


function ref(kal_num)
{
window.open("ref.php?kal_num="+kal_num,"Galéria","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=620,height=580");
}

function akc(kal_num)
{
window.open("akc.php?kal_num="+kal_num,"Akciók","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=620,height=580");
}

function eref(kal_num)
{
window.open("eref.php?kal_num="+kal_num,"Galéria","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=620,height=580");
}

function eakc(kal_num)
{
window.open("eakc.php?kal_num="+kal_num,"Akciók","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=620,height=580");
}

function contact()
{
submitOK="True"
cpeOK="False"
msg=""
urlap=document.kapcsolat
nev=urlap.nev.value
cim=urlap.cim.value
telefon=urlap.telefon.value
uzenet=urlap.uzenet.value

if (nev.length<1)
 {
 msg += "Név\n"
 submitOK="False"
 }
 
if (cim.length<1)
 {
 msg += "Cím\n"
 submitOK="False"
 }
 
if (telefon.length<1)
 {
 msg += "Telefon\n"
 submitOK="False"
 }
 
if (uzenet.length<1)
 {
 msg += "Üzenet\n"
 submitOK="False"
 }

// output missing fields
if (submitOK=="False")
 {
 alert("Kérjük az alábbi adato(ka)t adja meg:\n\n" + msg)
 return false
 } 

 
}
// angol contact
function econtact()
{
submitOK="True"
cpeOK="False"
msg=""
urlap=document.kapcsolat
nev=urlap.nev.value
cim=urlap.cim.value
telefon=urlap.telefon.value
uzenet=urlap.uzenet.value

if (nev.length<1)
 {
 msg += "Name\n"
 submitOK="False"
 }
 
if (cim.length<1)
 {
 msg += "Address\n"
 submitOK="False"
 }
 
if (telefon.length<1)
 {
 msg += "Phone number\n"
 submitOK="False"
 }
 
if (uzenet.length<1)
 {
 msg += "Message\n"
 submitOK="False"
 }

// output missing fields
if (submitOK=="False")
 {
 alert("Plese fill in the following field(s):\n\n" + msg)
 return false
 } 

 
}


// Robot-safe e-mail address handling
function nospam(name, domain) {
  document.location = "mailto:" + name + "@" + domain;
}

function submitForm(szoveg)
{
	if (confirm(szoveg))
		{ return true; }
	else
		{ return false;}
}
		
