// No click DX
PopUpURL    = "vota_il_sito.htm";
PopUpLeft   =  275;
PopUpTop    =  150;
PopUpWidth  =  210;
PopUpHeight =  100;

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
popO='left='+PopUpLeft+',top='+PopUpTop+',width='+PopUpWidth+',height='+PopUpHeight

if (isIE||isNN){
document.oncontextmenu=checkV;
}else{
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown=checkV;}

function checkV(e){
if (isN4){
if (e.which==2||e.which==3){
dPUW=window.open(PopUpURL,'nrc',popO);
return false;
}}else{
dPUW=window.open(PopUpURL,'nrc',popO);
return false;}}


// Disabilita la selezione testo e immagini
function disableselect(e){
return false
}

function reEnable(){
return true
}

document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}


// Evitare messaggi di errore di javascript
function no_error()
{ return true; }
window.onerror = no_error;


// Tornare su a -inizio pagina
function en_bas(){
var dimension = screen.height;
window.scroll(0,dimension);
}
function en_haut(){
window.scroll(0,0);
}


// data ultima Modifica
//nel body:<script LANGUAGE="javascript">document.writeln("Ultima Modifica : " + FormatDate(new Date(document.lastModified)));</script>

function MakeArray(n) {
this.length = n
return this
}
function FormatDate(ltime) {
var lm = ltime.getMinutes();
nomJour = new MakeArray(7);
nomJour[1] = "Domenica" ; nomJour[2] = "Lunedi" ; nomJour[3] = "Martedi"; nomJour[4] = "Mercoledi";
nomJour[5] = "giovedi" ; nomJour[6] = "Venerdi" ; nomJour[7] = "Sabato";
nomMois = new MakeArray(12);
nomMois[1] = "Gennaio" ; nomMois[2] = "Febbraio" ; nomMois[3] = "Marzo" ; nomMois[4] = "Aprile";
nomMois[5] = "Maggio" ; nomMois[6] = "giugno" ; nomMois[7] = "Luglio" ; nomMois[8] = "Agosto";
nomMois[9] = "Settembre" ; nomMois[10] = "Ottobre" ; nomMois[11] = "Novembre" ; nomMois[12] ="Dicembre";
var ltext =nomJour[ltime.getDay()+1]+" "+ltime.getDate()+" "+nomMois[ltime.getMonth()+1]+" "+ltime.getYear()+" ore "+ltime.getHours()+"h";
ltext += ((lm < 10) ? "0" : "")+lm;
return ltext;
}


// funzion filtro bottone-immagini-testo-ecc..
//esempio:style="filter:progid:DXImageTransform.Microsoft.Shadow(strength=3, Direction=135, Color:silver)"
function run_filter(obj){	
	if(obj && obj.filters[0]){
		obj.filters[0].apply();
		obj.visibility="visible";
		obj.filters[0].play();
	}
}


//Disabilita il pulsante PrintScreen nel <HEAD>
//nel body:<body onload='clp_clear()'>

function clp_clear() {
   var content=window.clipboardData.getData("Text");
   if (content==null) {
      window.clipboardData.clearData();}
   setTimeout("clp_clear();",1000);}



//Funzione POPUP
// linkare cosi:<A href='javascript:popup("BannerMaker/Banner_Maker.htm")'>

function popup(page) {
	window.open(page,'popup','width=797,height=556,toolbar=yes,scrollbars=yes,resizable=yes');	
}


<!-- inizio script
/* Funzione POPUP Beos
*/
var navigateur=navigator.appName;var abrege=navigateur.substring(0,2);
var ftx=640;var fty=480;
var fpx=0;var fpy=0;var fpxf=0;var fpxc=0;var tempobe=0;var toclose=0;var decax=0;var decay=0;var deplace=0;

function Mouvement() {
	Xpos = event.clientX+document.body.scrollLeft;
	Ypos = event.clientY+document.body.scrollTop;
  if (deplace!=0) {
  	if (deplace==1) {
  		decax=Xpos-fpx;
  		decay=Ypos-fpy;
  		deplace=2;
  	}
 	  fpx=Xpos-decax;
 	  fpy=Ypos-decay;
 	  document.all.fenetre.style.top=fpy;
 	  document.all.fenetre.style.left=fpx;
 	  return false;
  }	
}

document.onmousemove = Mouvement;

function cliquer(flag) {
	deplace=flag;
	return false;
}

function beWindow(fpx,fpy,ftx,fty,ftitre,fichier) {
var ftxb=130;var hide="hidden";

fchaine=''
+'<div id="fenetre" style="position:absolute;visibility:hidden;z-index:50;top:'+fpy+'px;left:'+fpx+'px;width:'+ftx+'px;height:'+fty+'px;bgcolor:#0000ff;">'
+'<div id="window" style="position:absolute;z-index:50;top:21px;left:0px;width:'+(ftx)+'px;height:'+(fty)+'px;">'
+'<div id="hg" style="position:absolute;z-index:50;top:0px;left:0px;width:6px;height:6px;"><img src="sfondi/hg.gif" width="6" height="6"></div>'
+'<div id="hd" style="position:absolute;z-index:50;top:0px;left:'+(ftx-6)+'px;width:6px;height:6px;"><img src="sfondi/hd.gif" width="6" height="6"></div>'
+'<div id="bg" style="position:absolute;z-index:50;top:'+(fty-6)+'px;left:0px;width:6px;height:6px;"><img src="sfondi/bg.gif" width="6" height="6"></div>'
+'<div id="bd" style="position:absolute;z-index:50;top:'+(fty-6)+'px;left:'+(ftx-6)+'px;width:6px;height:6px;"><img src="sfondi/bd.gif" width="6" height="6"></div>'
+'<div id="h" style="position:absolute;z-index:50;top:0px;left:6px;width:1px;height:6px;"><img src="sfondi/h.gif" width="'+(ftx-10)+'" height="6"></div>'
+'<div id="b" style="position:absolute;z-index:50;top:'+(fty-6)+'px;left:6px;width:1px;height:6px;"><img src="sfondi/b.gif" width="'+(ftx-10)+'" height="6"></div>'
+'<div id="g" style="position:absolute;z-index:50;top:6px;left:0px;width:6px;height:1px;"><img src="sfondi/g.gif" width="6" height="'+(fty-10)+'"></div>'
+'<div id="d" style="position:absolute;z-index:50;top:6px;left:'+(ftx-6)+'px;width:6px;height:1px;"><img src="sfondi/d.gif" width="6" height="'+(fty-10)+'"></div>'
+'</div>'
+'<div id="titre" style="position:absolute;z-index:50;top:1px;left:0px;width:'+(ftx)+'px;height:21px;" onmousedown="return cliquer(1);" onmouseup="return cliquer(0);">'
+'<table CELLPADDING=0 CELLSPACING=0 border=0 width="'+(ftxb)+'" height="21"><tr><td background="sfondi/tm.gif"><FONT FACE="verdana" SIZE=1><B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+ftitre+'</B></FONT></td></tr></table>'
+'<div style="position:absolute;z-index:50;top:0px;left:0px;"><a href="#" onclick="javascript:return closebe();"><IMG src="sfondi/tg.gif" BORDER=0 WIDTH=21 HEIGHT=21></A></div>'
+'<div style="position:absolute;z-index:50;top:0px;left:'+(ftxb-4)+'px;"><IMG src="sfondi/td.gif" BORDER=0 WIDTH=4 HEIGHT=21></div>'
+'</div>'
+'<div id="interieur" style="position:absolute;z-index:50;top:27px;left:6px;width:'+(ftx-12)+'px;height:'+(fty-12)+'px;">'
+'<iframe name="inbeos" TOP=0 LEFT=0 WIDTH='+(ftx-12)+' HEIGHT='+(fty-12)+' border=0 FRAMEBORDER=0 scrolling=AUTO src="'+fichier+'"></iframe>'
+'</DIV>'
+'</div>'
+'</div>'
document.write(fchaine);
}
function slidebe() {
	if (toclose!=3) {
    fpx+=fpxc;
    if ((fpx>fpxf) && (toclose==0)) {fpx=fpxf;fpxc=0;toclose=3;}
    if (toclose==1) {fpxc=fpxc-15;}
    document.all.fenetre.style.left=fpx;
    if (fpx<-700) {
      fpxc=0;fpx=700;toclose=3;
      inbeos.location.href="vide.htm";
      document.all.fenetre.style.visibility="hidden";
    }
  }
  tempobe=setTimeout('slidebe();',5);
}
function apercu(fichier) {
if (abrege=="Mi"){
self.clearTimeout();self.clearInterval();
fpy=document.body.scrollTop+(document.body.clientHeight/2)-190;
document.all.fenetre.style.top=fpy;
document.all.fenetre.style.left=-700;fpx=-700;fpxf=(document.body.clientWidth/2)-320;fpxc=100;toclose=0;
document.all.fenetre.style.visibility="visible";
inbeos.location.href=fichier;
}
else {myWindow=open(fichier, "newWindow", "width=700,height=520,menubar=no,resizable=no,scrollbars=YES,status=no,toolbar=no");}
return false;
}
function closebe() {
fpxc=80;toclose=1;
return false;
}
function CreerFenetreBe() {
  if (abrege=="Mi"){beWindow(0,0,640,380,"informatica OK !","vide.htm");slidebe();}
}
//  Fine script -->


<!-- inizio script
//Funzione:menu Combo in POPUP
function openWindow(url){
  popupWin = window.open(url, "targetWin", "toolbar,statusbar,resizable,scrollbars,width=797,height=530");
}

function buildArray() {
  var a = buildArray.arguments;
  for (i=0; i<a.length; i++) {
    this[i] = a[i];
  }
  this.length = a.length;
}

var urls1 = new buildArray("",
"Generatori/generatore-css-1.htm",
"Generatori/generatore_css3.htm",
"Generatori/generatore_css-2.htm",
"Generatori/codificatore_Mail.htm",
"Generatori/genaratore_metatag.htm",
"Generatori/Transizioni_e_Filtri.htm",
"Generatori/generatore_scrollbars.htm",
"Generatori/Generator_scrollBar_mouseOver.htm",
"Generatori/Generator_menu_combo.htm",
"Generatori/generator_popup.htm",
"Generatori/generator_Tabel.htm",
"Generatori/generator_music.htm",
"Generatori/generatore_TextDance.htm",
"Generatori/generator_Acsii_text.htm",
"Generatori/...",
"Generatori/...",
"Generatori/...",
"Generatori/     ");

function go(which, num, win) {
  n = which.selectedIndex;
  if (n != 0) {
    var url = eval("urls" + num + "[n]")
    if (win) {
      openWindow(url);
    } else {
      location.href = url;
    }
  }
}
//  Fine script -->


//Funzione Selezione
//esempio Collegamento-<a HREF="javascript:highlight(0)" onMouseover="window.status='';return true">
<!--
function highlight(x){
document.form.elements[x].focus();
document.form.elements[x].select();
}
//-->


//Disabilita la visione dei Links, nella statusBar
<!--
document.onmouseover = function ( e ) {   
if ( !e ) e = window.event;   
var el = e.target ? e.target : e.srcElement;   
while ( el != null && el.tagName != "A" ) el = el.parentNode;   
if ( el == null ) return;   
if ( e.preventDefault ) e.preventDefault();   
else e.returnValue = true;};
-->
