// Footer
function show_chi_siamo()
{
  chi_siamo = window.open('/chi-siamo/chi-siamo/','chi_siamo','channelmode=0,directories=0,fullscreen=0,height=640,left='+((screen.availWidth/2)-300)+',location=0,menubar=0,resizable=0,scrollbars=1,status=1,titlebar=1,toolbar=0,top=100,width=560');
}

function show_condizioni_vendita()
{
  condizioni_vendita = window.open('/condizioni-di-vendita/condizioni-vendita/','condizioni_vendita','channelmode=0,directories=0,fullscreen=0,height=700,left='+((screen.availWidth/2)-300)+',location=0,menubar=0,resizable=0,scrollbars=1,status=1,titlebar=1,toolbar=0,top=100,width=600');
}

function show_commento()
{
  commento = window.open('/invia-un-commento-sul-sito/invia-commento/','commento','channelmode=0,directories=0,fullscreen=0,height=400,left='+((screen.availWidth/2)-200)+',location=0,menubar=0,resizable=0,scrollbars=1,status=1,titlebar=1,toolbar=0,top=100,width=400');
}
// Right
// check multi checkboxes based on the name passed in.
function CheckMultiple(name) 
{
	theFrm = document.frmSS;
	for (var i=0; i < theFrm.length; i++) 
	{
		fldObj = theFrm.elements[i];
		var fieldnamecheck=fldObj.name.indexOf(name);
		if (fieldnamecheck != -1) {
			if (fldObj.checked) {
				return true;
			}
		}
	}
	return false;
}


function CheckSS(msg)
{
	theFrm = document.frmSS;

	hasDot = theFrm.Email.value.indexOf(".");
	hasAt = theFrm.Email.value.indexOf("@");
	
	if (hasDot == -1 || hasAt == -1)
	{
		alert(msg);
		theFrm.Email.focus();
		theFrm.Email.select();
		return false;
	}

	
	return true;
}

