<!--

function minOn(qMinia){
document.getElementById(qMinia).style.borderColor = "#549534";
};

function minRestore(qMinia){
document.getElementById(qMinia).style.borderColor = "#DDE8D5";
};

function MouseOn(imgName)
{
document[imgName].src = eval(imgName + "_on.src");
};

function MouseOff(imgName)
{
document[imgName].src = eval(imgName + "_off.src");
};

function mkVsbl(livello){
mkNotVsbl('subMenuCatalogo1');
mkNotVsbl('subMenuCatalogo2');
document.getElementById(livello).style.visibility = "visible";
};

function mkNotVsbl(livello){
document.getElementById(livello).style.visibility = "hidden";
};

function mkNotVsblSubMenuCatalogo(){
if(sezione!="catalogo"){
tdMenu4.className='menu';
};
mkNotVsbl('submenuCatalogo');
mkNotVsbl('submenuCatalogo1');
mkNotVsbl('submenuCatalogo2');
};

function menuOn(qualeMenu){
qualeMenu.className='menuOn';
tdMenu4.className='menu';
mkNotVsbl('subMenuCatalogo');
};

function checkformcontact()
{
	nomeForm=document.contact.name.value;
	placeForm=document.contact.country_and_city.value;
	telForm=document.contact.tel.value;
	emailForm=document.contact.email.value;
	messageForm=document.contact.message.value;

	if (nomeForm.length<3)
	{
	messaggio= 'Please insert your name.';
	alert(messaggio);
	document.contact.name.focus();
	document.contact.name.select();
	return false
	}
	else if (placeForm.length<2)
	{
	messaggio= 'Please insert the name of the country and the city you live in.';
	alert(messaggio);
	document.contact.country_and_city.focus();
	document.contact.country_and_city.select();
	return false
	}
	else if ((telForm.length<1) & (emailForm.length<1))
	{
	messaggio= 'Please indicate how we may contact you (email, telephone or mobile).';
	alert(messaggio);
	document.contact.tel.focus();
	document.contact.tel.select();
	return false
	}
	else if ((telForm.length>0) & (telForm.length<3))
	{
	messaggio= 'The telephone number '+ telForm +' doesn\'t seem to be a valid one.\nPlease verify.';
	alert(messaggio);
	document.contact.tel.focus();
	document.contact.tel.select();
	return false
	}
	else if ((emailForm.length>0) & ((emailForm.length<7) & (emailForm.indexOf("@")==-1) & (emailForm.indexOf(".")==-1)))
	{
	messaggio= 'The email address '+ emailForm +' doesn\'t seem to be a valid one.\nPlease verify';
	alert(messaggio);
	document.contact.email.focus();
	document.contact.email.select();
	return false
	}
	else if (messageForm.length<1)
	{
	messaggio= 'The message field is empty.\nPlease write your comments or questions.';
	alert(messaggio);
	document.contact.message.focus();
	document.contact.message.select();
	return false
	}
	else
	{
	return true
	}	
}

// -->