function titleWriter(txt,txtSize,txtColor,txtBold){

if (txt!=null){
txt=txt.replace(/ /g,"%20");
txt=txt.replace(/á/g,"%c3%a1");
txt=txt.replace(/Á/g,"%c3%81");
txt=txt.replace(/é/g,"%c3%a9");
txt=txt.replace(/É/g,"%c3%89");
txt=txt.replace(/í/g,"%c3%ad");
txt=txt.replace(/Í/g,"%c3%8d");
txt=txt.replace(/ó/g,"%c3%b3");
txt=txt.replace(/Ó/g,"%c3%93");
txt=txt.replace(/ö/g,"%c3%b6");
txt=txt.replace(/Ö/g,"%c3%96");
txt=txt.replace(/ő/g,"%c5%91");
txt=txt.replace(/Ő/g,"%c5%90");
txt=txt.replace(/ô/g,"%c5%91");
txt=txt.replace(/Ô/g,"%c5%90");
txt=txt.replace(/ú/g,"%c3%ba");
txt=txt.replace(/Ú/g,"%c3%9a");
txt=txt.replace(/ü/g,"%c3%bc");
txt=txt.replace(/Ü/g,"%c3%9c");
txt=txt.replace(/ű/g,"%c5%b1");
txt=txt.replace(/Ű/g,"%c5%b0");

txt=txt.replace(/\+/g,"%2b");


txt=txt.replace(/uuu/g,"%c3%bb");
txt=txt.replace(/UUU/g,"%c3%9b");
//txt=txt.replace(/u/g,"%c3%bb");
//txt=txt.replace(/U/g,"%c3%9b");

}

if (txt==null)txt="XXX";
if (txtSize==null)txtSize="26";
if (txtColor==null)txtColor="0x333333"
if (txtBold==null)txtBold="true";

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="450" height="36">');
document.write('<param name="movie" value="swf/headertext.swf?txt='+txt+'&size='+txtSize+'&bold='+txtBold+'&color='+txtColor+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="swf/headertext.swf?txt='+txt+'&size='+txtSize+'&bold='+txtBold+'&color='+txtColor+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="36"></embed>');
document.write('</object>');
}

function popupgaleria(a){
        x=window.open('/popupgaleria.html?pic='+a,"galeria","width=500,height=400,resizable=0,status=0,scrollbars=0,left=" + ((screen.width/2)-400) + ",top=" + ((screen.height/2)-265));
        x.focus();
}


function formCheck(formName){
	formname=eval('document.'+formName);
	if ((formname.nev) && (formname.nev.value.length <5)){
		window.alert('Kérem adja meg a nevét!')
		formname.nev.select();      
		formname.nev.focus(); 
		return false;
	}
	if ((formname.tel) && (formname.tel.value.length <7)){
		window.alert('Kérem adja meg a telefonszámát!')
		formname.tel.select();      
		formname.tel.focus();  
		return false;
	}	
	if ((formname.tel) && (formname.tel.value.length >6)){
		var checkOK = "0123456789-./ ";
		var checkStr = eval('formname.tel.value');
		var foc = eval('formname.tel');
		var allValid = true;
		var decPoints = 0;
		var allNum = "";
		for (i = 0;  i < checkStr.length;  i++){
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++){
				if (ch == checkOK.charAt(j)){
					break;
				}
			}
			if (j == checkOK.length){
				allValid = false; break; 
			}
			if (ch == "."){
				allNum += "."; decPoints++; 
			}else{
			  allNum += ch;
			}
		}
		if ((!allValid)||(decPoints > 1)){
			alert("Kérem telefonszámot adjon meg!");
			foc.select();      
			foc.focus();
			return (false); 
		}
	}

	if ((formname.time) && (formname.time.value.length <3)){
		window.alert('Kérem adjon meg idôpontot!')
		formname.time.select();      
		formname.time.focus();  
		return false;
	}	

	if ((formname=="dmail") && (formname.email.value == '')){      
		alert("Kérem adja meg az email címét!")
		formname.email.select();      
		formname.email.focus();      
		return false;      
	}  



	if (formname.email &&((formname.email.value != '') && (formname.email.value.indexOf ('@',0) == -1 || formname.email.value.indexOf ('.',0) == -1))){      
		alert("Kérem valós E-mail címet adjon meg!")
		formname.email.select();      
		formname.email.focus();      
		return false;      
	}  

	formname.submit();
	//return true;
}