function privacy() {
   var w = 580;
   var h = 600;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("informativa_privacy.htm","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
 var bo_noscript_id = 0;

function isIE() {
  var strBrowser = navigator.userAgent.toLowerCase();
  return (strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0);
}

function startIeFix() {
  if (isIE()) {
   document.write('<div style="display: none;" id="bo_noscript_id_' + bo_noscript_id + '">');
  }
}

function endIeFix() {
  if (isIE()) {
   document.write('</div>');
   var theObject = document.getElementById("bo_noscript_id_" + bo_noscript_id++);
   theObject.outerHTML = theObject.innerHTML;
  }
}

function valida_form_newsletter() {
validity = true;

if((document.newsletter.email.value.indexOf(".") == -1) && (validity == true)) {
alert("Attenzione! Il campo ' Email ' è errato, si prega di digitarlo correttamente.");
validity = false;
}
  return validity;
}

var Img2On = new Image();
Img2On.src = "menu/Chisiamo.png";
var Img2Off = new Image();
Img2Off.src = "menu/ChisiamoNo.png";

var Img3On = new Image();
Img3On.src = "menu/Home.png";
var Img3Off = new Image();
Img3Off.src = "menu/HomeNo.png";

var Img4On = new Image();
Img4On.src = "menu/Contatti.png";
var Img4Off = new Image();
Img4Off.src = "menu/ContattiNo.png";

var Img5On = new Image();
Img5On.src = "menu/Prodotti.png";
var Img5Off = new Image();
Img5Off.src = "menu/ProdottiNo.png";

function MOver(picimage)//
{
Picture_Over = eval(picimage +"On.src")
document[picimage].src = Picture_Over
}
function MOut(picimage)
{
Picture_Out = eval(picimage +"Off.src")
document[picimage].src = Picture_Out
}
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
function recuperoPassword() {
   var w = 300;
   var h = 170;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("r_pw.php","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
 function coordinate() {
   var w = 400;
   var h = 300;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("coordinate.php","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
