function regformValidation(form)
{
	if(notEmpty(form.nev)){
		if(notEmpty(form.email)){
					return true;
		}
		alert('Üres mezõ: e-mail');
		return false;
	} 
	alert('Üres mezõ: név');
	return false;
}

function showregform()
{
var d = document.getElementById('regisztracioform');
d.style.display='block';

}

function showcddetails() 
{
var d = document.getElementById('cddetails');
d.style.display='block';

}

function hideLogReg()
{
var d=document.getElementById('loginform');
var n=document.getElementById('loggedin');

d.style.display='none';
n.style.display='block';

}

function close_flyer()
{
var a=document.getElementById('flyer');
var b=document.getElementById('flyer_header');
var c=document.getElementById('cnt');
var d=document.getElementById('cntshadow');
var m=document.getElementById('Main');

a.style.display='none';
b.style.display='none';
//c.style.display='none';
//d.style.display='none';
m.style.display='none';
m.style.width='0px';
m.style.height='0px';
}

function center_flyer()
{
var a=document.getElementById('flyer');
var fh=document.getElementById('flyer_header');
var b=document.getElementById('cnt');
var c=document.getElementById('cntshadow');
var m=document.getElementById('Main');

if (parseInt(navigator.appVersion)>3) {
	winW = window.innerWidth;
	winH = window.innerHeight;

    if (navigator.appName.indexOf("Microsoft")!=-1) {
	winW = document.body.offsetWidth;
	winH = document.body.offsetHeight;
    }
}
            
a.style.left=winW/2-200+'px';
a.style.display='block';

//b.style.display='block';
//c.style.display='block';
fh.style.display='block';

m.style.width=winW+'px';
m.style.height=winH+'px';

}

function showPopup() 
{
var popup=document.getElementById('popup');

if (parseInt(navigator.appVersion)>3) {
	winW = window.innerWidth;
	winH = window.innerHeight;

    if (navigator.appName.indexOf("Microsoft")!=-1) {
	winW = document.body.offsetWidth;
	winH = document.body.offsetHeight;
    }
}
            
popup.style.left=winW/2-300+'px';
popup.style.display='block';


}

function hidePopup() 
{
var popup=document.getElementById('popup');

popup.style.display='none';

}

