function passwordForgot (root)
{
		neu = open(root+'pages/forgot/index.php', 'forgot_password', 'width=' + 450 + ',height=' + 300);
}

function insertLoginEmail(obj, def)
{
	var currValue = obj.value;
	if (currValue == def)
	{
		obj.value = "";
	}	
}	

function blurLoginEmail(obj, def)
{
	var currValue = obj.value;
	if (currValue == "")
	{
		obj.value = def;
	}
}

function headerLogon()
{
	var user_email = document.all.header_user_email.value;
	var user_password = document.all.header_user_password.value;

	document.header_login.user_email.value  	 = user_email;
	document.header_login.user_password.value = user_password;
	document.header_login.submit();
}	

function init(){
	setInterval('flashAttention()',500);
}

function flashAttention(){
	if(document.getElementById('link_contatti').className=="info_redlink")
	{
 		document.getElementById('link_contatti').className="info_link";
	}
	else
	{
		document.getElementById('link_contatti').className="info_redlink";
	}
	
	if(document.getElementById('link_preventivi').className=="info_redlink")
	{
 		document.getElementById('link_preventivi').className="info_link";
	}
	else
	{
		document.getElementById('link_preventivi').className="info_redlink";
	}
//	document.all.prova.innerHTML="<font color='red'>Attenzione!!!</font>";
}
	
function customDateString() {
		var monthNames = new Object;
		var dayNames = new Object;
				
		monthNames[0] = "Gennaio";
		monthNames[1] = "Gennaio";
		monthNames[2] = "Febbraio";
		monthNames[3] = "Marzo";
		monthNames[4] = "Aprile";
		monthNames[5] = "Maggio";
		monthNames[6] = "Giugno";
		monthNames[7] = "Luglio";
		monthNames[8] = "Agosto";
		monthNames[9]  = "Settembre";
		monthNames[10] = "Ottobre";
		monthNames[11] = "Novembre";
		monthNames[12] = "Dicembre";
		
		dayNames[0] = "domenica";
		dayNames[1] = "domenica";
		dayNames[2] = "lunedì";
		dayNames[3] = "martedì";
		dayNames[4] = "mercoledì";
		dayNames[5] = "giovedì";
		dayNames[6] = "venerdì";
		dayNames[7] = "sabato";
		
		
		oneDate = new Date();
        var theDay = dayNames[oneDate.getDay() + 1];
        var theMonth = monthNames[oneDate.getMonth() + 1];
        var theYear = oneDate.getYear();
        return theDay + ', ' +  oneDate.getDate() + ' ' + theMonth + ' '  + theYear;

}

