// JavaScript Document
document.write('<link rel="shortcut icon" href="/shared/icon.ico" />');

defaultStatus = "Albino Montisci official web site";

function right(e){
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)){
		alert("Copyrighted by Jolly Nox");
		return false;
	}
	return true;
}

document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7;  // horizontal scrolling speed (higher = slower)
var leftdist = 10;    // distance to left edge of window
var topdist = 10;     // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}

function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.emailUtente.value)){
return (true)
}
alert("Indirizzo E-Mail invalido! Inserirne uno valido.")
return (false)
}

function delValue(itemName){
	if((itemName.value=="'indirizzo@dominio.ext'")||(itemName.value=="Scrivi qui dentro l'argomento della tua richiesta.")||(itemName.value=="Scrivi qui dentro il testo del tuo commento.")) itemName.value=""
	return 
}

<!--
function popup(url)
{
	newwindow=window.open(url,'Promo','height=200,width=241,noresize=no,noscroll=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->