function videostart() {

document.getElementById("companyvideo").innerHTML='Vállalati videó<br><br><OBJECT class="corpvideo" codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=230 width=300 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 align=center><PARAM NAME="movie" VALUE="http://abhitech.eu/animation/aboutUs_Corporate.swf"><PARAM NAME="quality" VALUE="high"><embed src="http://abhitech.eu/animation/aboutUs_Corporate.swf" width="300" height="230" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></OBJECT>';
}

function videostart_en() {

document.getElementById("companyvideo").innerHTML='Corporate video<br><br><OBJECT class="corpvideo" codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=230 width=300 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 align=center><PARAM NAME="movie" VALUE="http://abhitech.eu/animation/aboutUs_Corporate.swf"><PARAM NAME="quality" VALUE="high"><embed src="http://abhitech.eu/animation/aboutUs_Corporate.swf" width="300" height="230" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></OBJECT>';
}



function moretext(which) {

var gomb="more"+which;
var szoveg="more"+which+"t";

document.getElementById(gomb).style.display="none";
document.getElementById(szoveg).style.display="inline";

}

function lesstext(which) {

var gomb="more"+which;
var szoveg="more"+which+"t";

document.getElementById(szoveg).style.display="none";
document.getElementById(gomb).style.display="inline";

}

function writeplace(irszam) {
	
var message="";
var talalat=new Array();
var megye="";

talalat[0]='<option value="0">Melyik település?</option>\r\n';

if (irszam.length<4)
	{
	placecontent='<font color="red">Hibás irányítószám!</font>';	
	}
	else
	{
	for (i=1;i<telepules.length;i++)
		{
		if (telepules[i][0]==irszam)
			{

			if (telepules[i][2]!="")
				{
				talalat.push('<option value="'+i+'">'+telepules[i][1]+'-'+telepules[i][2]+'</option>\r\n');	
				}
				else
				{
				talalat.push('<option value="'+i+'">'+telepules[i][1]+'</option>\r\n');
				}
				
			megye=telepules[i][3];
			}
		}

	if (talalat.length==1) 
		{
		placecontent='<font color="red">Hibás irányítószám!</font>';
		document.urlap.telepules.value="nemjó";
		}
		
	if (talalat.length==2) 
		{
		placecontent=talalat[1];
		document.urlap.telepules.value=placecontent;
		}
		
	if (talalat.length>2)
		{
		placecontent='<select class="telepules2" name="telepules2">\r\n';
		for (j=0;j<talalat.length;j++)
			{
			placecontent=placecontent+talalat[j];
			}
		placecontent=placecontent+'</select>';
		}
		
		
	}

document.getElementById("telepulesnev").innerHTML=placecontent;	
document.urlap.megye.value=megye;

}

function check(lang)	{

var gond=new Array();
gond['hu']="";
gond['en']="";

var megeztis=new Array();
megeztis['hu']="";
megeztis['en']="";

	if (lang=="hu")
		{
		if (
		document.urlap.nev.value=="" || 
		document.urlap.telefon.value=="" || 
		document.urlap.irszam.value=="" || 
		document.urlap.irszam.value.length<4 || 
		document.urlap.cim.value=="" || 
		document.urlap.emailcim.value=="" || 
		(document.urlap.elony1.checked==false && document.urlap.elony2.checked==false && document.urlap.elony3.checked==false && document.urlap.elony4.checked==false && document.urlap.elony5.checked==false) || 
		document.urlap.other_info.value=="" || 
		document.urlap.uafelh.value=="" || 
		document.urlap.uafelh_me.value=="" || 
		(document.urlap.telepules2 && document.urlap.telepules2.selectedIndex=="0") || 
		document.urlap.telepules.value=="nemjó")
			{gond['hu']="Valamelyik mezô nincs kitöltve!";}
		}

	if (lang=="en")
		{
		if (
		document.urlap.nev.value=="" || 
		document.urlap.telefon.value=="" || 
		document.urlap.irszam.value=="" || 
		document.urlap.cim.value=="" || 
		document.urlap.telepules.value=="" || 
		document.urlap.orszag.value=="" || 
		document.urlap.emailcim.value=="" || 
		(document.urlap.elony1.checked==false && document.urlap.elony2.checked==false && document.urlap.elony3.checked==false && document.urlap.elony4.checked==false && document.urlap.elony5.checked==false) || 
		document.urlap.other_info.value=="" || 
		document.urlap.uafelh.value=="" || 
		document.urlap.uafelh_me.value=="")
			{gond['en']="One or more fields haven't been filled out!";}	
		}

	if (lang=="hu")
		{
		if (	
		document.urlap.nev.value!="" && 
		document.urlap.telefon.value!="" && 
		document.urlap.irszam.value!="" && 
		document.urlap.irszam.value.length==4 && 
		document.urlap.emailcim.value!="" && 
		(document.urlap.elony1.checked==true || document.urlap.elony2.checked==true || document.urlap.elony3.checked==true || document.urlap.elony4.checked==true || document.urlap.elony5.checked==true) && 
		document.urlap.other_info.value!="" && 
		document.urlap.uafelh.value!="" && 
		document.urlap.uafelh_me.value!="" && 
		document.urlap.telepules2 && 
		document.urlap.telepules2.selectedIndex=="0")
			{gond['hu']="Kérjük adja meg a település nevét is!";}
		}

    if (lang=="hu")
        {
        if (    
        document.urlap.vanszcim.checked==true && 
        (document.urlap.sznev.value=="" || document.urlap.szcim.value=="" || document.urlap.szadoszam.value==""))
            {gond['hu']="A számlázási cím hiányos!";}
        }

    if (lang=="en")
        {
        if (    
        document.urlap.vanszcim.checked==true && 
        (document.urlap.sznev.value=="" || document.urlap.szcim.value=="" || document.urlap.szorszag.value=="" || document.urlap.szadoszam.value==""))
            {gond['en']="Billing address is incomplete!";}
        }
		
	if (gond[lang]!="")
	{
	alert(gond[lang]);
	}
	
	else
	{
		
	if(document.urlap.telepules2 != undefined)
		{
		var selIndex = document.urlap.telepules2.selectedIndex;	
		document.urlap.telepules.value=document.urlap.telepules2.options[selIndex].text;
		}
	
	if (document.urlap.cel.value==4 && document.getElementById("osszbrutto").value=="0")
		{
		megeztis["hu"]="Ön megjelenítette a Megrendelôlapot, de nem jelölt be megvásárolni kívánt terméket. A megrendeléshez kérjük válasszon ki legalább 1 terméket! Amennyiben jelenleg nem kíván vásárolni, kérjük módosítsa a Kapcsolatfelvétel célja elemet!";
		megeztis["en"]="You displayed the order form, but haven\'t selected any products to purchase. Please select at least 1 product to order! If you do not wish to purchase at the moment, please change the Purpose of contact field!";
		alert(megeztis[lang])
		return false;
		}
	
	document.urlap.submit();
	}
	
}
