function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}




function opwin(imm){
features="menubar=yes,width=600,height=450,resizable=no";
	window1=window.open("","p",features);
	if(window1.document.images[0]==null){
	window1.document.write("<head><title>Bassano Grimeca</title></head><body bgcolor='#000000'><table width='569' border='0' cellpadding='0' cellspacing='0' hspace='0' vspace='0'><tr><td colspan='3'><img src='../../../img/big/r08_c04.jpg' width='569' height='31'></td></tr><tr><td width='40'><img src='../../../img/big/r09_c04.jpg'></td><td width='480' height='360'><img src='../../../img/big/");
window1.document.write(imm);
window1.document.write("' ></td><td width='49'><img src='../../../img/big/r09_c10.jpg' width='49' height='360'></td></tr><tr><td colspan='3'><img src='../../../img/big/r14_c04.jpg' width='569'height='42'></td></tr></table></body>");}
 else{
window1.document.images[2].src="../../../img/big/"+imm;}
window1.document.close;
window1.focus();
}

function opwin2(imm){
features="menubar=yes,width=600,height=450,resizable=no";
	window1=window.open("","t",features);
	if(window1.document.images[0]==null){
	window1.document.write("<head><title>Bassano Grimeca</title></head><body bgcolor='#000000'><table width='569' border='0' cellpadding='0' cellspacing='0' hspace='0' vspace='0'><tr><td colspan='3'><img src='../../img/big/r08_c04.jpg' width='569' height='31'></td></tr><tr><td width='40'><img src='../../img/big/r09_c04.jpg'></td><td width='480' height='360'><img src='../../img/big/");
window1.document.write(imm);
window1.document.write("' ></td><td width='49'><img src='../../img/big/r09_c10.jpg' width='49' height='360'></td></tr><tr><td colspan='3'><img src='../../img/big/r14_c04.jpg' width='569'height='42'></td></tr></table></body>");}
 else{
window1.document.images[2].src="../../img/big/"+imm;}
window1.document.close;
window1.focus();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_validateForm() { //v2.0
  var i,objStr,field,theCheck,atPos,theNum,colonPos,min,max,errors='';
  for (i=0; i<(MM_validateForm.arguments.length-2); i+=3) {
    objStr = MM_validateForm.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.substring(0,objStr.lastIndexOf('.')).
                 lastIndexOf('.'),objStr.length);  //fix layer ref if not supp
    field = eval(objStr);
    field.name = (field.name)?field.name:objStr;
    theCheck = MM_validateForm.arguments[i+2];
    if (field.value) { //IF NOT EMPTY FIELD
      if (theCheck.indexOf('isEmail') != -1) { //CHECK EMAIL
        atPos = field.value.indexOf('@');
        if (atPos < 1 || atPos == (field.value.length - 1))
          errors += '- '+field.name+' deve contenere un indirizzo e-mail.\n';
      } else if (theCheck != 'R') { //START NUM CHECKS
        theNum = parseFloat(field.value);
        if (field.value != ''+theNum) errors += '- '+field.name+' must contain a number.\n';
        if (theCheck.indexOf('inRange') != -1) { //CHECK RANGE
          colonPos = theCheck.indexOf(':');
          min = theCheck.substring(8,colonPos);
          max = theCheck.substring(colonPos+1,theCheck.length);
          if (theNum < min || max < theNum) //bad range
            errors += '- '+field.name+' must contain a number between '+min+' and '+max+'.\n';
    } } }
    else if (theCheck.charAt(0) == 'R') errors += '- '+field.name+' è richiesto.\n';
  }
  if (errors) alert('Si sono verificati i seguenti errori:\n'+
                    errors);
  document.MM_returnValue = (errors == '')
}

function validate() { //v2.0
  var i,objStr,field,theCheck,atPos,theNum,colonPos,min,max,errors='';
  for (i=0; i<(validate.arguments.length-2); i+=3) {
    objStr = validate.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.substring(0,objStr.lastIndexOf('.')).
                 lastIndexOf('.'),objStr.length);  //fix layer ref if not supp
    field = eval(objStr);
    field.name = (field.name)?field.name:objStr;
    theCheck = validate.arguments[i+2];
    if (field.value) { //IF NOT EMPTY FIELD
      if (theCheck.indexOf('isEmail') != -1) { //CHECK EMAIL
        atPos = field.value.indexOf('@');
        if (atPos < 1 || atPos == (field.value.length - 1))
          errors += '- '+field.name+' must contain an e-mail address.\n';
      } else if (theCheck != 'R') { //START NUM CHECKS
        theNum = parseFloat(field.value);
        if (field.value != ''+theNum) errors += '- '+field.name+' must contain a number.\n';
        if (theCheck.indexOf('inRange') != -1) { //CHECK RANGE
          colonPos = theCheck.indexOf(':');
          min = theCheck.substring(8,colonPos);
          max = theCheck.substring(colonPos+1,theCheck.length);
          if (theNum < min || max < theNum) //bad range
            errors += '- '+field.name+' must contain a number between '+min+' and '+max+'.\n';
    } } }
    else if (theCheck.charAt(0) == 'R') errors += '- '+field.name+' is required.\n';
  }
  if (errors) alert('The following error(s) occurred:\n'+
                    errors);
  document.MM_returnValue = (errors == '')
}
document.location.href = 'http://www.bassanogrimeca.com/home.htm';