function resetta(){
	document.all.image1.disabled=false;
document.login_form.initClick.value="";
}
function initClick(){
if (document.login_form.initClick.value=="")
{
encPsw();
document.login_form.initClick.value="yes";
document.login_form.submit();
}
}
function encPsw() 
{
}
function initEnterPrevention () 
{
encPsw();
document.all.image1.disabled=true;
}
function init() { //v3.0
	if (document.login_form.username.value==""){
		document.login_form.username.focus();}
}
function openDemo(url) {
	window.open(url,'demo','width=780,height=450,scrollbars=yes,resizable=no');
}

function openNewPopup(url,id,width,height,resizable){
        if(resizable=='no') 
		window.open(url,id,'height='+height+',width='+width+', scrollbars=no');
        else window.open(url,id,'height='+height+',width='+width+', resizable=yes, scrollbars=yes');
}

function checkMaggiorenne(aa,mm,gg){

	var birthDate = new Date(aa, mm - 1, gg);
	var limitDate = new Date(parseInt(new Date().getFullYear())-18, new Date().getMonth(), new Date().getDate());

	if(birthDate.getTime() > limitDate.getTime()){
		return true;
	} else {
		return false;
	}
}
