// JavaScript Document

function addbookmark(){
url="http://www.graficheviesti.it/"
title="Grafiche Viesti - Tipografia Litografia - Stampa Offset"
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("\n\rPremere i tasti: CTRL+D (Netscape) oppure CTRL+T (Opera)\n\rPer aggiungere questo sito nei segnalibri...\n\r");
  }
}

function apriModulo() {
alt=555;
larg=540;
toptop=20 //(screen.height/2)-(alt/2) ; 
leftleft=(screen.width/2)-(larg/2); 
stringa = "scrollbars=yes,width="+larg+",height="+alt+",top="+toptop+",left="+leftleft;
window.open('contatti.htm','contattiWin', stringa);
}

function apriFinestra(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function admin() { 
larg=950; 
alt=600; 
toptop=50;//(screen.height/2)-(alt/2); 
leftleft=50;//(screen.width/2)-(larg/2); 
window.open('/admin/default.asp','adminWindow','top='+toptop+',left='+leftleft+',width='+larg+',height='+alt+',resizable=yes,scrollbars=yes,status=yes,location=no,toolbar=no'); 
} 

function popcontatti() {
alt=555;
larg=540;
toptop=20 //(screen.height/2)-(alt/2) ; 
leftleft=(screen.width/2)-(larg/2); 
stringa = "scrollbars=yes,width="+larg+",height="+alt+",top="+toptop+",left="+leftleft;
apriFinestra('contatti.htm','contattiWin', stringa);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function ApriFinestra(str) { 
larg=430; 
alt=250; 
toptop=(screen.height/2)-(alt/2); 
leftleft=(screen.width/2)-(larg/2); 
searchWin = window. open(str,'holidaywin','top='+toptop+',left='+leftleft+',scrollbars=no,width='+larg+',height='+alt+',status=no,location=no,toolbar=no'); 
} 

function gnu() {
alt=555;
larg=540;
toptop=20 //(screen.height/2)-(alt/2) ; 
leftleft=(screen.width/2)-(larg/2); 
stringa = "scrollbars=yes,width="+larg+",height="+alt+",top="+toptop+",left="+leftleft;
apriFinestra('http://www.ideaup.com/gnu.htm','gnuWin', stringa);
}

function doEmail() { 
/*******************************************************
* Encrypt Email script - Custom adapted by: A.M. Bettoni
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* ******************************************************/
var emailarray3592= new Array(105,110,102,111,64,103,114,97,102,105,99,104,101,118,105,101,115,116,105,46,105,116)
var postemail3592=''
for (i=0;i<emailarray3592.length;i++)
postemail3592+=String.fromCharCode(emailarray3592[i])
document.write('<a href="mailto:'+postemail3592+'?subject=Richiesta informazioni dal sito web...">'+postemail3592+'</a>')
} 

function maiuscola(str){
var strOut;
str = new String(str);
strOut = str.toUpperCase();
document.modulocomm.provincia.value = strOut;
}
