<!-- Hide from JavaScript-Impaired Browsers
var wWin     = null
var nome     = null;
var pos      = null;
var immagine = new Image();

function supressError() {
    return true;
}
function testDati() {
 
  info = "";
  if (document.forms[0].nick.value == "") { 
    info = "Per favore indica il tuo nome. Grazie!!!";
    document.forms[0].nick.focus();
    }
  else { 
    if (document.forms[0].email.value != "") {
      if ((document.forms[0].email.value.indexOf('@') == -1) || 
          (document.forms[0].email.value.indexOf('.') == -1)) {
        info = "Controlla l'indirizzo EMail.";
        document.forms[0].email.focus(); 
        }
      }
    else {  
      if (document.forms[0].msg.value == "") {
        info = "Se non scrivi nessun commento come faccio\na capire se il sito ti è piaciuto oppure no? ;-)";
        document.forms[0].msg.focus();
        }
      }  
    }
 
  if (info != "") {
    alert(info);
    }
  else { 
//  	alert("1");
//   if ((document.forms[0].nick.value.indexOf('cialis')   != -1)   ||
//       (document.forms[0].email.value.indexOf('levitra') != -1)   ||
//       (document.forms[0].email.value.indexOf('cialis')  != -1)   ||
//       (document.forms[0].url.indexOf('viagra')          != -1)   ||  
//       (document.forms[0].msg.value.indexOf('viagra')    != -1)) {	
//       Window.location="http://www.disney.com"
//       }
//   else {	
//   	alert("2");
     document.forms[0].action = "guestbook.php";
     document.forms[0].submit();
//     }
   }
}

function testDati2Old() {
  info = "";

  if (document.forms[0].xyz.value != document.forms[0].xyzcode.value) { 
    info = "Per favore ricopia correttamente il codice di controllo. Grazie!!!";
    document.forms[0].xyz.focus();
    }
  else {   
     if (document.forms[0].nick.value == "") { 
       info = "Per favore indica il tuo nome. Grazie!!!";
       document.forms[0].nick.focus();
       }
     else { 
       if (document.forms[0].email.value != "") {
         if ((document.forms[0].email.value.indexOf('@') == -1) || 
             (document.forms[0].email.value.indexOf('.') == -1)) {
           info = "Controlla l'indirizzo EMail.";
           document.forms[0].email.focus(); 
           }
         }
       else {  
         if (document.forms[0].msg.value == "") {
           info = "Se non scrivi nessun commento come faccio\na capire se il sito ti è piaciuto oppure no? ;-)";
           document.forms[0].msg.focus();
           }
         }  
       }
     }
    
     if (info != "") {
       alert(info);
       }
     else { 
   //  	alert("1");
   //   if ((document.forms[0].nick.value.indexOf('cialis')   != -1)   ||
   //       (document.forms[0].email.value.indexOf('levitra') != -1)   ||
   //       (document.forms[0].email.value.indexOf('cialis')  != -1)   ||
   //       (document.forms[0].url.indexOf('viagra')          != -1)   ||  
   //       (document.forms[0].msg.value.indexOf('viagra')    != -1)) {	
   //       Window.location="http://www.disney.com"
   //       }
   //   else {	
   //   	alert("2");
        document.forms[0].action = "guestbook.php";
        document.forms[0].submit();
   //     }
      }
}

function testDati2() {
  info = "";

  //if (document.forms[0].xyz.value != document.forms[0].xyzcode.value) { 
  //  info = "Per favore ricopia correttamente il codice di controllo. Grazie!!!";
  //  document.forms[0].xyz.focus();
  //  }
  //else {   
     if (document.forms[0].nick.value == "") { 
       info = "Per favore indica il tuo nome. Grazie!!!";
       document.forms[0].nick.focus();
       }
     else { 
       if (document.forms[0].email.value != "") {
         if ((document.forms[0].email.value.indexOf('@') == -1) || 
             (document.forms[0].email.value.indexOf('.') == -1)) {
           info = "Controlla l'indirizzo EMail.";
           document.forms[0].email.focus(); 
           }
         }
       else {  
         if (document.forms[0].msg.value == "") {
           info = "Se non scrivi nessun commento come faccio\na capire se il sito ti è piaciuto oppure no? ;-)";
           document.forms[0].msg.focus();
           }
         }  
       }
//     }
    
     if (info != "") {
       alert(info);
       }
     else { 
   //  	alert("1");
   //   if ((document.forms[0].nick.value.indexOf('cialis')   != -1)   ||
   //       (document.forms[0].email.value.indexOf('levitra') != -1)   ||
   //       (document.forms[0].email.value.indexOf('cialis')  != -1)   ||
   //       (document.forms[0].url.indexOf('viagra')          != -1)   ||  
   //       (document.forms[0].msg.value.indexOf('viagra')    != -1)) {	
   //       Window.location="http://www.disney.com"
   //       }
   //   else {	
   //   	alert("2");
        document.forms[0].action = "guestbook.php";
        document.forms[0].submit();
   //     }
      }
}

function testDati3() {
  info = "";

  if (document.forms[0].xyz.value != document.forms[0].xyzcode.value) { 
    info = "Per favore ricopia correttamente il codice di controllo. Grazie!!!";
    document.forms[0].xyz.focus();
    }
   
     if (info != "") {
       alert(info);
       }
     else { 

        document.forms[0].action = "index.php3";
        document.forms[0].submit();
      }
}

function testDatiFoto() {
 
  alert(document.forms[0].directory.value);
  alert(document.forms[0].foto.value);
  info = "";
  if (document.forms[0].nick.value == "") { 
    info = "Per favore indica il tuo nome. Grazie!!!";
    document.forms[0].nick.focus();
    }
  else { 
    if (document.forms[0].email.value != "") {
      if ((document.forms[0].email.value.indexOf('@') == -1) || 
          (document.forms[0].email.value.indexOf('.') == -1)) {
        info = "Controlla l'indirizzo EMail.";
        document.forms[0].email.focus(); 
        }
      }
    else {  
      if (document.forms[0].msg.value == "") {
        info = "Se non scrivi nessun commento come faccio\na capire se il sito ti è piaciuto oppure no? ;-)";
        document.forms[0].msg.focus();
        }
      }  
    }
 
  if (info != "") {
    alert(info);
    }
  else { 
//  	alert("1");
//   if ((document.forms[0].nick.value.indexOf('cialis')   != -1)   ||
//       (document.forms[0].email.value.indexOf('levitra') != -1)   ||
//       (document.forms[0].email.value.indexOf('cialis')  != -1)   ||
//       (document.forms[0].url.indexOf('viagra')          != -1)   ||  
//       (document.forms[0].msg.value.indexOf('viagra')    != -1)) {	
//       Window.location="http://www.disney.com"
//       }
//   else {	
//   	alert("2");
     document.forms[0].action = "guestbookfoto.php";
     document.forms[0].submit();
//     }
   }
}

function testDatiEcard() {
  
  info = "";
  if (document.forms[0].empfaengeremail.value != "") {
    if ((document.forms[0].empfaengeremail.value.indexOf('@') == -1) || 
        (document.forms[0].empfaengeremail.value.indexOf('.') == -1)) {
      info = "Per favore controlla l'email del Destinatario.";
      document.forms[0].empfaengeremail.focus(); 
      } 
    }


   if (document.forms[0].empfaengeremail.value == "") { 
     info = "Per favore indica l'email del Destinatario.";
     document.forms[0].empfaengeremail.focus();
     }

   if (document.forms[0].empfaengername.value == "") { 
     info = "Per favore indica il nome del Destinatario";
     document.forms[0].empfaengername.focus();
     }   

   if (document.forms[0].absenderemail.value != "") {
     if ((document.forms[0].absenderemail.value.indexOf('@') == -1) || 
         (document.forms[0].absenderemail.value.indexOf('.') == -1)) {
       info = "Per favore controlla l'email del Mittente.";
       document.forms[0].absenderemail.focus(); 
       }
     }

   if (document.forms[0].absenderemail.value == "") { 
     info = "Per favore indica l'email del Mittente";
     document.forms[0].absenderemail.focus();
     }   
   
   if (document.forms[0].absendername.value == "") { 
     info = "Per favore indica il nome del Mittente";
     document.forms[0].absendername.focus();
     }

   //if (document.forms[0].xyz.value != document.forms[0].xyzcode.value) { 
   //  info = "Per favore ricopia correttamente il codice di controllo. Grazie!!!";
   //  document.forms[0].xyz.focus();
   //  }  
    
// Verifica per errore  
  
  if (info != "") {
    alert(info);
    }
  else { 
   document.forms[0].action = "index.php3?preview=1";
   document.forms[0].submit();
   }
}

function loadnkill(url) {
    window.onerror = supressError;
    window.open(url, "",  "left=10,top=10,toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=yes,resizable=yes");
    setTimeout('self.close()',1000);
}
	function apri (sUrl,sName,sProp) { 
  		window.open(sUrl,sName,sProp);
			}

	function sshow(dir,commento) {
		
			
		nome = "phpslideshownew.php?directory=" + dir;
		if (commento != "") 
		  nome = nome + &commento=" + commento;

		//alert(nome);
		//immagine.src=n;
		
		wWin=window.open(nome,'','width=920, height=950,scrollbars=yes,resizable=yes');
			}
	function sshow2(n) {
		
			
		nome = "phpslideshownew.php?directory=" + n;
		

		//alert(nome);
		//immagine.src=n;
		
		wWin=window.open(nome,'','width=920, height=950,scrollbars=yes,resizable=yes');
			}			
	function dvert(n,xxx) {
		
		nome   = n;
		pos    = 'v';
		pagina = "dett.php?nomeimg=" + nome + "&pos=" + pos; 
		
		//alert("pagina " + pagina);
		
		wWin=window.open(pagina,'','width=920, height=920,scrollbars=yes,resizable=yes');
			}
			
	function doriz(n,xxx) {
		
		nome = n;
		pos  = 'o';
		pagina = "dett.php?nomeimg=" + nome + "&pos=" + pos; 
		
		//immagine.src=n;
		
		wWin=window.open(pagina,'','width=920, height=920,scrollbars=yes,resizable=yes');
			}

	function detto(n) {
		
		nome = n;
		
		wWin=window.open('dettv.htm','','width=910, height=910,scrollbars=yes,resizable=yes');
			}
			
	function altriLink(nomeLink) {
		
		var sPageName = 'Open';
		
		wWin=window.open(nomeLink,'','width=1000, height=700,scrollbars=yes,resizable=yes');
			}
		
	function miniPic( sImg, nBorder) {
		//alert ("wWin " + wWin);
		//alert(sImg);
		//if (wWin!=null) wWin.close();
		
		var sPageName = 'Open';
				
		wWin=window.open('',sPageName,'width=200, height=200,scrollbars=yes,resizable=yes');
		
		wWin.document.write('<HTML><HEAD><TITLE>.::\\  Fotovictor //::.</TITLE>\n');

		wWin.document.write('\n');
		wWin.document.write('\n');

		wWin.document.write('</HEAD><BODY bgcolor="#FFFFFF" onload="ResizeMe();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n');
		wWin.document.write('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle">\n');
		wWin.document.write('<IMG ID="IMMAGINE" SRC="'+sImg+ '" BORDER="0">\n');
		wWin.document.write('</td></tr></table>\n');

		wWin.document.write('<script language="javascript">\n');	
		wWin.document.write('\n');

		wWin.document.write('var isNS4 = (navigator.appName.indexOf("Netscape") >= 0 && \n');
		wWin.document.write('                parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 6) ? 1 : 0; \n');
		wWin.document.write('var isNS6 = (navigator.appName.indexOf("Netscape") >= 0 && \n');
		wWin.document.write('                parseFloat(navigator.appVersion) >= 6) ? 1 : 0; \n');
		wWin.document.write('var isIE4 = (document.all) ? 1 : 0; \n');
		wWin.document.write('\n');
		wWin.document.write('\n');
		wWin.document.write('function ResizeMe() { \n');

		wWin.document.write('if (isNS6) { \n');
		wWin.document.write('window.innerWidth = document.images[0].width+'+2*nBorder+'; \n');
		wWin.document.write('window.innerHeight = document.images[0].height+'+2*nBorder+'; \n');
		wWin.document.write('} \n');

		wWin.document.write('if (isNS4) { \n');
		wWin.document.write('window.innerWidth = document.images[0].width+'+2*nBorder+'; \n');
		wWin.document.write('window.innerHeight = document.images[0].height+'+2*nBorder+'; \n');
		wWin.document.write('} \n');

		wWin.document.write('if (isIE4) { \n');
		wWin.document.write('window.resizeTo(500, 500); \n');
		wWin.document.write('width = 500 - (document.body.clientWidth -  document.images[0].width) + '+2*nBorder+'; \n');
		wWin.document.write('height = 500 - (document.body.clientHeight -  document.images[0].height) + '+2*nBorder+'; \n');
		wWin.document.write('window.resizeTo(width, height); \n');
		wWin.document.write('} \n');

		wWin.document.write('} \n');
		wWin.document.write('\n');
		wWin.document.write('ResizeMe();');

		wWin.document.write('\n');
		wWin.document.write('</script>\n');	

		wWin.document.write('</BODY></HTML>\n');

		wWin.document.close();

	}

	

// End Hiding -->