function printwin(str) {

        searchWin = window.open(str,'print','scrollbars=yes,resizable=no,width=680,height=670,status=no,location=no,toolbar=no');

}
function addbookmark(){
var bookmarkurl="http://www.wwt.it.it"
var bookmarktitle="..:: www.wwt.it.it ::.."
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

var control = 1;
function flash()
{
  if (control == 1)
    {
      window.status="..:: www.wwt.itt.it ::..";
      control=0;
    }  
  else
    {
      window.status="";
      control=1;
    }
  setTimeout("flash();",150);
}




function popzoom(cod)
{
window.open("prodotti/zoom.asp?idprod="+cod,"zoomwindow","height=490,width=440,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
}

function scuse()
{
window.open("scuse.asp","scuse","height=350,width=500,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
}

function dettagliviaggio(cod)
{
window.open("prodotti/dettagliviaggio.asp?idprod="+cod,"zoomwindow","height=490,width=440,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
}


function poprichiesta(cod)
{
window.open("admin/gestinfo/popup.asp?idrichiesta="+cod,"zoomwindow","height=490,width=440,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
}

function poprispondi(cod)
{
window.open("admin/gestinfo/rispondi.asp?idrichiesta="+cod,"zoomwindow","height=490,width=740,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
}

function popvedirisp(cod)
{
window.open("admin/gestinfo/vedirisp.asp?idrichiesta="+cod,"zoomwindow","height=490,width=740,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
}
<!-- Begin Digital Watch
/*
######################################################################
################       SCRIPT BY BURNBLADE       #####################
################         Visit My Site At        #####################
################      http://www.burning.net     #####################
################         © copywrite 1997        #####################
###################################################################### 
  This script may be used as long as the above lines are not changed 
                             in any way.
*/ 
var watchID = null
var watchRun = false 
function stopwatch(){
  if(watchRun) 
    clearTimeout(watchID)
  watchRun = false
} 
function startwatch(){
  stopwatch()
  dayTime()
} 

function dayTime() {
  day = new Date();
  hour = day.getHours();
  minute = day.getMinutes();
  second = day.getSeconds();
  var now = new Date();

  if (hour > 12) {
  hours = hour - 12;
  part = 'PM'}
  else {
  part = 'AM';
  if (hour == 0) {
  hours = 12
  }
  else {
  hours = hour
  }
  } 
  if (minute < 10) {minutes = 0}
  else {minutes = ""} 
  if (second < 10) {seconds = 0}
  else {seconds =""}
  date = ('' +(day.getMonth() + 1)+"/"+day.getDate()+ "/"+day.getYear()+ '');

  date = ('' +(day.getDate()+"/"+ (day.getMonth() + 1))+ "/"+day.getYear()+ '');
  time = ('' + hour + ":"+minutes+""+minute+ ":"+seconds+""+second+ '')
  parts = ('' +part+ '') 
	var off = (now.getTimezoneOffset() + 60)*60;
	var theSeconds = (now.getHours() * 3600) + (now.getMinutes() * 60) + now.getSeconds() + off;
	var beat =Math.floor(theSeconds/86.4 * Math.pow(10,2))/Math.pow(10,2);
	
	//(theSeconds/86.4);
	if (beat > 1000) beat -= 1000;
	if (beat < 0) beat += 1000;


  document.timedate.time.value = time
  document.timedate.date.value = date
  document.beat.testo_beat.value = beat
  
  watchID = setTimeout("dayTime()",1000)
  watchRun = true
}
// End Digital Watch-->

function ValidateInfo()
{
    errfound=false;
	
    if (document.dati.nome.value == "")
 	error(document.dati.nome, "Inserire il nome");
	
	if (document.dati.email.value == "")
    error(document.dati.email, "Inserire l'indirizzo di posta elettronica");
	
	if (document.dati.email.value.indexOf("@") == -1)
	error(document.dati.email, "Inserire un indirizzo di posta elettronica valido");
	
	if (document.dati.email.value.indexOf(".") == -1)
	error(document.dati.email, "Inserire un indirizzo di posta elettronica valido");
	
	if (document.dati.richiesta.value == "")
 	error(document.dati.richiesta, "Inserire la domanda");
    
   
return !errfound;
}

function error(elem, text) 
{
    if (errfound) return;
    window.alert(text);
   // elem.select();
    elem.focus();
    errfound=true;
}
