<!-- 

// no tasto destro
var message="www.hypnoisia.com";
// Message for the alert box
// Don't edit below!
function click(e) 
{
	if (document.all) 
	{
		if (event.button == 2) 
		{
			alert(message);
			return false;
		}
	}
	if (document.layers) 
	{
		if (e.which == 3) 
		{
			alert(message);
			return false;
		}
	}
}
if (document.layers) 
{
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;


// aggiungi a preferiti
var bookmarkurl="http://www.hypnoisia.com";
var bookmarktitle="Hypnoisia Staff";

function addbookmark()
{
	if (document.all)
	var imgFav= new Image();
	imgFav.src="";

	Window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


// popups dinamici
function pop_up_dyna(x,type) 
{
	mypopWin = window.open(x,'pop','scrollbars=no,resizable=no,width=600,height=496,status=no,location=no,toolbar=no,top=105,left=400');

	mypopWin.document.write("<HTML><HEAD><TITLE>Hypnoisia Staff</TITLE>\n");
	mypopWin.document.write("<META name=\"keywords\" Content=\"hypnoisia,da.rais,marco delta,dj casta,discoteca,pub,musica,dance,serate,dischi,discopub,discobar,torino,piemonte,chiavari,riviera,tigullio,genova,levante,liguria\">\n");
	mypopWin.document.write("<META name=\"author\" content=\"Hypnosia\">\n");
	mypopWin.document.write("<META name=\"description\" content=\"Hypnosia Staff\">\n");
	mypopWin.document.write("<META name=\"robots\" content=\"index, follow\">\n");
	mypopWin.document.write("<META name=\"GOOGLEBOT\" content=\"ARCHIVE\">\n");
	mypopWin.document.write("</HEAD>\n");
	mypopWin.document.write("<BODY BGCOLOR=\"black\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\" TEXT=\"red\">\n");
	mypopWin.document.write("<BR><div align=\"center\">\n");

}	

// popup generico
function pop_up(a,x) 
{
	if (a==1)	
	{
		mypopWin = window.open(x,'pop','scrollbars=no,resizable=no,width=600,height=496,status=no,location=no,toolbar=no,top=105,left=400');
	}
}

function soloNumeri(vnt)
{
var tasto,carattereTasto;
if (window.event) //Modello ad eventi IE
tasto = window.event.keyCode;
else
if (vnt) //Modello ad eventi NN
tasto = vnt.which;
else
return true;

carattereTasto = String.fromCharCode(tasto);

// verifica tasti particolari tipo canc, invio, ...
if ((tasto==null) || (tasto==0) || (tasto==8) ||(tasto==9) || (tasto==13) || (tasto==27) )
return true;
else
if ((("0123456789").indexOf(carattereTasto) > -1))
{
window.status = "";
return true;
}
else
{
window.status = "Il campo accetta solo numeri";
return false;
}
}

function campiObbligatori(oForm) {
var cllcElem = oForm.elements; //collection degli elementi della form

for (i = 0; i < cllcElem.length; i++) {
  if ((cllcElem[i].tagName.toLowerCase() == "input" && cllcElem[i].type.toLowerCase() == "text" && cllcElem[i].disabled==false)
     ) { //Si contrallano i tag input di tipo testo

        if (cllcElem[i].value.replace(/\s+$|^\s+/g,"") == "") { //Se il valore trimmato è vuoto si blocca il submit
          cllcElem[i].focus();
          alert("Campo " + cllcElem[i].name + " obbligatorio");
          return false;
        }
  }
}

//Viene ritornato true solo se sono stati valorizzati tutti i campi testuali
return true;
}

//-->
