

function check_h_reg()
	{
	var kiir=new Array('Felhasználónév','Jelszó','Jelszó ismét','E-mail cím','Nem fogadta el a szabályzatot');
	var status=true;
	
	if(document.h_reg.h_fnev.value=="")
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\'   class=\'submitbutton_inactive\' onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	if(document.h_reg.h_jelszo.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	if(document.h_reg.h_jelszo2.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
	
	if(document.h_reg.h_jelszo.value!=document.h_reg.h_jelszo2.value && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' ><span style=\'color:#CC0000\'>Nem egyezik a két jelszó!</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
			
	if(document.h_reg.h_email.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}	
		
	if(document.h_reg.sz_hirdeto.checked==false && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' ><span style=\'color:#CC0000\'>'+kiir[4]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}	
	

	return status;
	}
	
function check_p_reg()
	{
	var kiir=new Array('Felhasználónév','Jelszó','Jelszó ismét','E-mail cím','Nem fogadta el a szabályzatot');
	var status=true;
	
	if(document.p_reg.p_fnev.value=="")
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	if(document.p_reg.p_jelszo.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	if(document.p_reg.p_jelszo2.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
	
	if(document.p_reg.p_jelszo.value!=document.p_reg.p_jelszo2.value && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' ><span style=\'color:#CC0000\'>Nem egyezik a két jelszó!</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
			
	if(document.p_reg.p_email.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}	
		
	if(document.p_reg.sz_partner.checked==false && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' ><span style=\'color:#CC0000\'>'+kiir[4]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}	
	

	return status;
	}

function IsNumeric(sText){
	var ValidChars = "0123456789";
   	var IsNumber=true;
   	var Char;
 
   	for (i = 0; i < sText.length && IsNumber == true; i++) { 
      		Char = sText.charAt(i); 
      		if (ValidChars.indexOf(Char) == -1) {
         			IsNumber = false;
         		}
      	}
   	return IsNumber;
}
// JavaScript Document
function select_tipus(nev)
{
	if(nev=="magan")
	{
		document.getElementById('magan').style.display='block';
		document.getElementById('vallalkozas').style.display='none';
		document.form_adatok.magan_nev.focus();
	}
	else
	{
		document.getElementById('magan').style.display='none';
		document.getElementById('vallalkozas').style.display='block';
		document.form_adatok.ceg_nev.focus();
	}
	
			
}

function post()
{
	if(document.form_adatok.checkbox_postacim.checked==true)
	{
		document.form_adatok.posta_orszag.value=document.form_adatok.ceg_orszag.value;
		document.form_adatok.posta_ir.value=document.form_adatok.ceg_ir.value;
		document.form_adatok.posta_varos.value=document.form_adatok.ceg_varos.value;
		document.form_adatok.posta_utca.value=document.form_adatok.ceg_utca.value;
		document.form_adatok.posta_hazszam.value=document.form_adatok.ceg_hazszam.value;
	}
	else
	{
		document.form_adatok.posta_orszag.value="";
		document.form_adatok.posta_orszag.value="";
		document.form_adatok.posta_ir.value="";
		document.form_adatok.posta_varos.value="";
		document.form_adatok.posta_utca.value="";
		document.form_adatok.posta_hazszam.value="";
	}
}

function check_h_data()
{
	var status=true;
	
	
	if(document.form_adatok.tipus[0].checked)
	{
		var kiir=new Array('Név','Ország','Irányítószám','Város','Utca','Házszám');
				
		if(document.form_adatok.magan_nev.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.magan_orszag.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.magan_ir.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.magan_varos.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.magan_utca.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[4]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.magan_hazszam.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[5]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
	}
	else
	{
		var kiir=new Array('Cégnév','Ország','Irányítószám','Város','Utca','Házszám','Cégjegyzék','Adószám','Postacím - Ország','Postacím - Irányítószám','Postacím - Város','Postacím - Utca','Postacím - Házszám');
				
		if(document.form_adatok.ceg_nev.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.ceg_orszag.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.ceg_ir.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.ceg_varos.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.ceg_utca.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[4]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.ceg_hazszam.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[5]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.ceg_cegjegyzek.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[6]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.ceg_adoszam.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[7]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.posta_orszag.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[8]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.posta_ir.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[9]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.posta_varos.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[10]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.posta_utca.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[11]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		if(document.form_adatok.posta_hazszam.value=="" && status==true)
		{
			
			displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[12]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
			
			status=false;
		}
		
		
	}
	
	return status;

}


function check_p_data()
{
	var kiir=new Array('Név','Cím','Telefon','Bank','Bankszámla szám');
	var status=true;
	
	if(document.form_adatok.nev.value=="")
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
	
	if(document.form_adatok.cim.value=="")
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	if(document.form_adatok.tel.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	if(document.form_adatok.bank.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	if(document.form_adatok.szam.value=="" && status==true)
		{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[4]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
		}
		
	return status;
}

function Jump(targ,selObj,restore){ 
	
  eval("window.location.href='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// JavaScript Document
function input_focus_h_data(it)
{
	if(document.form_adatok.tipus[0].checked)
	{
		document.form_adatok.magan_nev.style.backgroundColor='';
		document.form_adatok.magan_orszag.style.backgroundColor='';
		document.form_adatok.magan_ir.style.backgroundColor='';
		document.form_adatok.magan_varos.style.backgroundColor='';
		document.form_adatok.magan_utca.style.backgroundColor='';
		document.form_adatok.magan_hazszam.style.backgroundColor='';
	
		it.style.backgroundColor='#D9F4F9';
	}
	else
	{
		document.form_adatok.ceg_nev.style.backgroundColor='';
		document.form_adatok.ceg_orszag.style.backgroundColor='';
		document.form_adatok.ceg_ir.style.backgroundColor='';
		document.form_adatok.ceg_varos.style.backgroundColor='';
		document.form_adatok.ceg_utca.style.backgroundColor='';
		document.form_adatok.ceg_hazszam.style.backgroundColor='';
		document.form_adatok.ceg_cegjegyzek.style.backgroundColor='';
		document.form_adatok.ceg_adoszam.style.backgroundColor='';
		document.form_adatok.posta_orszag.style.backgroundColor='';
		document.form_adatok.posta_ir.style.backgroundColor='';
		document.form_adatok.posta_varos.style.backgroundColor='';
		document.form_adatok.posta_utca.style.backgroundColor='';
		document.form_adatok.posta_hazszam.style.backgroundColor='';
		it.style.backgroundColor='#D9F4F9';
	}
}

function input_focus_h_new(it)
{
	
		document.form_new.cim.style.backgroundColor='';
		document.form_new.leiras.style.backgroundColor='';
		document.form_new.url.style.backgroundColor='';
		document.form_new.kulcsszo_1.style.backgroundColor='';
		document.form_new.kulcsszo_2.style.backgroundColor='';
		document.form_new.kulcsszo_3.style.backgroundColor='';
		document.form_new.kulcsszo_4.style.backgroundColor='';
		document.form_new.kulcsszo_5.style.backgroundColor='';
	
		it.style.backgroundColor='#D9F4F9';
	
}

function input_focus_h_modify(it)
{
	
		document.form_modify.cim.style.backgroundColor='';
		document.form_modify.leiras.style.backgroundColor='';
		document.form_modify.url.style.backgroundColor='';
		document.form_modify.szo.style.backgroundColor='';
	
		it.style.backgroundColor='#D9F4F9';
	
}

function input_focus_h_adatok(it)
{
	
		document.password.old_password.style.backgroundColor='';
		document.password.jelszo1.style.backgroundColor='';
		document.password.jelszo2.style.backgroundColor='';
			
		it.style.backgroundColor='#D9F4F9';
	
}


function input_focus_p_data(it)
{
		document.form_adatok.nev.style.backgroundColor='';
		document.form_adatok.cim.style.backgroundColor='';
		document.form_adatok.tel.style.backgroundColor='';
		document.form_adatok.bank.style.backgroundColor='';
		document.form_adatok.szam.style.backgroundColor='';
			
		it.style.backgroundColor='#D9F4F9';
	
}

function input_focus_p_new(it)
{
		document.form_new.site.style.backgroundColor='';
		document.form_new.felulet.style.backgroundColor='';
					
		it.style.backgroundColor='#D9F4F9';
	
}

function input_focus_p_adatok(it)
{
	
		document.password.old_password.style.backgroundColor='';
		document.password.jelszo1.style.backgroundColor='';
		document.password.jelszo2.style.backgroundColor='';
			
		it.style.backgroundColor='#D9F4F9';
	
}

function validUrl(obj){
	var value=obj.value;
	var newstring=value.replace("http://", "");
	obj.value=newstring;
}



function kulcsszoErtek(hely,text)
{
	

	var tipus="szoveg";
	var str=text.value;
	text.value=str.replace(' ','');
	if(document.form_new.tipus[0].checked){
		tipus="kep";
	}
	if(text.value!=""){
		text.style.backgroundImage ="url("+base+"images/ajax-loader.gif)";
	text.style.backgroundRepeat ="no-repeat";
	text.style.backgroundPosition ="right";
	$.ajax({
			method: "get",url: "../index.php/hirdeto/kulcsszoErtek/"+text.value+"/"+tipus,
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				
		 		document.getElementById(hely).innerHTML=html; 
		 		text.style.backgroundImage ="";
				text.style.backgroundRepeat ="";
				text.style.backgroundPosition ="";
		 		
			}
		}
		)
	}
	
}

function getLatogatok(div,f_id)
{
	if(document.getElementById(div).style.display=="none"){
	document.getElementById(div).style.display ="block";
	document.getElementById(div).innerHTML ='<img src="'+base+'images/ajax-loader.gif" width="16" height="16" />' ;
	$.ajax({
			method: "get",url: "../index.php/hirdeto/getLatogatok/"+f_id,
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				
		 		document.getElementById(div).innerHTML=html; 
		 		
		 		
			}
		}
		)
	}
	else{
		document.getElementById(div).style.display="none";
	}	
}

function getKulcsszo(div,f_id)
{
	if(document.getElementById(div).style.display=="none"){
	document.getElementById(div).style.display ="block";
	document.getElementById(div).innerHTML ='<img src="'+base+'images/ajax-loader.gif" width="16" height="16" />' ;
	
	
	$.ajax({
			method: "get",url: "../index.php/hirdeto/getKulcsszo/"+f_id,
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				
		 		document.getElementById(div).innerHTML=html; 
		 		
		 		
			}
		}
		)
	}
	else{
		document.getElementById(div).style.display="none";
	}
	
}


function feluletInfo(div,f_id)
{
	if(document.getElementById(div).style.display=="none"){
	document.getElementById(div).style.display ="block";
	document.getElementById(div).innerHTML ='<img src="'+base+'images/ajax-loader.gif" width="16" height="16" />' ;
	$.ajax({
			method: "get",url: "../index.php/partner/feluletInfo/"+f_id,
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				
		 		document.getElementById(div).innerHTML=html; 
		 		
		 		
			}
		}
		)
	}
	else{
		document.getElementById(div).style.display="none";
	}	
}

function jovahagyasraVaro(div)
{
	
	document.getElementById(div).style.display ="block";
	document.getElementById(div).innerHTML ='<img src="'+base+'images/ajax-loader.gif" width="16" height="16" />' ;
	$.ajax({
			method: "get",url: "../index.php/partner/jovahagyasraVaro",
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				
		 		document.getElementById(div).innerHTML=html; 
		 		
		 		
			}
		}
		)	
}

function deletedFelulet(div)
{
	
	document.getElementById(div).style.display ="block";
	document.getElementById(div).innerHTML ='<img src="'+base+'images/ajax-loader.gif" width="16" height="16" />' ;
	$.ajax({
			method: "get",url: "../index.php/partner/noviewedDeletedFelulet",
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				
		 		document.getElementById(div).innerHTML=html; 
		 		
		 		
			}
		}
		)	
}

function Frissit()
{
	
	var div="ajax_load";
	document.getElementById(div).innerHTML ='<img src="'+base+'images/ajax-loader.gif" width="16" height="16" />' ;
	$.ajax({
			method: "get",url: "../index.php/netadvert/feluletPreview/r:"+Math.random()+"/b:"+document.form_new.checkbox_border.checked+"/b_c:"+document.form_new.border.value.substring(1)+"/m:"+document.form_new.meret.value+"/bg_c:"+document.form_new.bg_color.value.substring(1)+"/t:"+document.form_new.checkbox_underline.checked+"/t_c:"+document.form_new.title_color.value.substring(1)+"/t_c:"+document.form_new.text_color.value.substring(1)+"/l_c:"+document.form_new.link_color.value.substring(1),
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				show_live(html);
				document.getElementById(div).innerHTML='<input type="button" name="button2" id="button2" value="Nézet frissítése" onclick="Frissit();"/>';
		 		
		 		
			}
		}
		)
	

}

function Frissit2()
{
	
	var div="ajax_load";
	document.getElementById(div).innerHTML ='<img src="'+base+'images/ajax-loader.gif" width="16" height="16" />' ;
	$.ajax({
			method: "get",url: "../index.php/netadvert/feluletPreview/r:"+Math.random()+"/b:"+document.form_color.checkbox_border.checked+"/b_c:"+document.form_color.border.value.substring(1)+"/m:"+document.form_color.meret.value+"/bg_c:"+document.form_color.bg_color.value.substring(1)+"/t:"+document.form_color.checkbox_underline.checked+"/t_c:"+document.form_color.title_color.value.substring(1)+"/t_c:"+document.form_color.text_color.value.substring(1)+"/l_c:"+document.form_color.link_color.value.substring(1),
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				show_live(html);
				document.getElementById(div).innerHTML='<input type="button" name="button2" id="button2" value="Nézet frissítése" onclick="Frissit2();"/>';
		 		
		 		
			}
		}
		)
	

}

function code(nev)
{
	if(document.getElementById(nev).style.display == 'none')
	{
		document.getElementById(nev).style.display='block';
	}
	else
	{
		document.getElementById(nev).style.display='none';
	}
	
	
			
}

function show_live(result)
	{
		var tmp = result.split('|');
		
		if(tmp[1]=="1")
		{
			document.getElementById('preview_text').style.display='block';
			document.getElementById('preview1').innerHTML=tmp[0]; 
		
			
			document.getElementById('preview2').innerHTML=''; 
		}
		else
		{
			
			document.getElementById('preview1').innerHTML=''; 
		
			document.getElementById('preview_text2').style.display='block';
			document.getElementById('preview2').innerHTML=tmp[0]; 
		}
		
	
		
	}
	
function kulcsszokeres(hely,text)
{
	

	var tipus="szoveg";
	var str=text.value;
	text.value=str.replace(' ','');
	
	if(text.value!=""){
		text.style.backgroundImage ="url("+base+"images/ajax-loader.gif)";
	text.style.backgroundRepeat ="no-repeat";
	text.style.backgroundPosition ="right";
	document.getElementById('ajax_load').innerHTML ='' ;
	$.ajax({
			method: "get",url: "../index.php/netadvert/kulcsszoEredmeny/"+text.value,
			data: "",
			success: function(html){ //so, if data is retrieved, store it in html
				//$("#userList_view_content").show("slow"); //animation
				
		 		document.getElementById(hely).innerHTML=html; 
		 		text.style.backgroundImage ="";
				text.style.backgroundRepeat ="";
				text.style.backgroundPosition ="";
				document.getElementById('ajax_load').innerHTML='<input type="button" name="button" id="button" value="Keresés" onclick="kulcsszokeres(\'kulcsszo_result\',document.getElementById(\'kulcsszo_1\'));" />';
		 		
			}
		}
		)
	}
	
}

function check_new()
{
	var kiir=new Array('Cím','Leírás','Link','Kulcsszó 1','Kulcsszó 1 ár','Kulcsszó 2','Kulcsszó 2 ár','Kulcsszó 3','Kulcsszó 3 ár','Kulcsszó 4','Kulcsszó 4 ár','Kulcsszó 5','Kulcsszó 5 ár');
	var status=true;
	
	if(document.form_new.cim.value=="")
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_new.leiras.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}

	if(document.form_new.url.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}	
		
	if(document.form_new.kulcsszo_1.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if((document.form_new.kulcsszo_1_osszeg.value=="" || !IsNumeric(document.form_new.kulcsszo_1_osszeg.value)) && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[4]+' (csak egész számot tartalmazhat)</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if(document.form_new.kulcsszo_2.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[5]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if((document.form_new.kulcsszo_2_osszeg.value=="" || !IsNumeric(document.form_new.kulcsszo_2_osszeg.value)) && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[6]+' (csak egész számot tartalmazhat)</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if(document.form_new.kulcsszo_3.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[7]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if((document.form_new.kulcsszo_3_osszeg.value=="" || !IsNumeric(document.form_new.kulcsszo_3_osszeg.value)) && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[8]+' (csak egész számot tartalmazhat)</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if((document.form_new.kulcsszo_4.value=="" || !IsNumeric(document.form_new.kulcsszo_4_osszeg.value)) && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[9]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	if(document.form_new.kulcsszo_4_osszeg.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[10]+' (csak egész számot tartalmazhat)</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}

	if((document.form_new.kulcsszo_5.value=="" || !IsNumeric(document.form_new.kulcsszo_5_osszeg.value)) && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[11]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if(document.form_new.kulcsszo_5_osszeg.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[12]+' (csak egész számot tartalmazhat)</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if(status){
		if(confirm('Vissza szeretne lépni a hirdetés szerkesztéséhez?\r\n(Mégse gombra kattintva a hirdetés mentésre kerül)')){
			status=false;
		}
	}
	return status;
}

function check_newfelulet()
{
	var kiir=new Array('Megjelenítő oldal','Felület neve','Keret színe','Háttér színe','Cím színe','Leírás színe','Link színe');
	var status=true;
	
	if(document.form_new.site.value=="")
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\' onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_new.felulet.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_new.checkbox_border.checked==true && document.form_new.border.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
		
		
	if(document.form_new.bg_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_new.title_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[4]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_new.text_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[5]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_new.link_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[6]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	return status;
}

function check_color()
{
	var kiir=new Array('Háttér színe','Cím színe','Leírás színe','Link színe');
	var status=true;
	
	if(document.form_color.bg_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_color.title_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_color.text_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.form_color.link_color.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[3]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	return status;
}



this.imagePreview = function(){	
	/* CONFIG */
		
		xOffset = 10;
		yOffset = 30;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' />"+ c +"</p>");								 
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("normal");						
    },
	function(){
		this.title = this.t;	
		$("#preview").remove();
    });	
	$("a.preview").mousemove(function(e){
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



	


function hirdetesTipus(tipus){
	if(tipus=="kep"){
		document.getElementById("keptext").style.display='block';
		document.getElementById("kep").style.display='block';
	}
	else{
		document.getElementById("keptext").style.display='block';
		document.getElementById("kep").style.display='none';
	}
}

function check_jelszo()
{
	var kiir=new Array('Régi jelszó','Új jelszó','Új jelszó ismét','Nem egyezik a két új jelszó');
	var status=true;
	
	if(document.password.old_password.value=="")
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[0]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.password.jelszo1.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[1]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
		
	if(document.password.jelszo2.value=="" && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' >Üresen hagyott mez&#337;: <span style=\'color:#CC0000\'>'+kiir[2]+'</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}
	
	if(document.password.jelszo1.value!=document.password.jelszo2.value && status==true)
	{
		displayStaticMessage('<br><div style=\'color: #666666;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;\'><table width=\'300\' border=\'0\'><tr><td width=\'62\' height=\'54\' align=\'center\' valign=\'middle\'><img src=\''+base+'images/warning.png\' width=\'50\' height=\'50\' /></td><td width=\'228\' ><span style=\'color:#CC0000\'>Nem egyezik a két jelszó!</span></td></tr><tr><td colspan=\'2\'><div align=\'center\'><form id=\'form1\' name=\'form1\' ><label><input name=\'bezar\' type=\'button\' value=\'Bezár\' class=\'submitbutton_inactive\'  onclick=\'closeMessage();return false\' /></label></form></div></td></tr></table></div>','modalDialog_contentDiv');
		status=false;
	}

	return status;
}


