function avviso(url,mess) {
	if (confirm(mess)) {
		location = url;
	}
}

function intercetta() { 
    for (var i=0; i<document.links.length; i++)
        if (document.links[i].className=="blank") {
            document.links[i].target="_blank";
        } 
}
window.onload = intercetta;

function popup1(theURL,winName,features){
	window.open(theURL,winName,features);
}

function red() {
	location.replace("http://www.poltronierisas.it");
}

function popup(theURL,winName,features){  
	// Set up Page Colors & Table  
	var testo
	var DQUOTE = '\"'
	var s1 = "<TITLE>"+winName+"</TITLE><link href='style/default.css' rel='stylesheet' type='text/css'>" +    
	"<BODY BGCOLOR='ffffff' topmargin='0' leftmargin='0'>"+
	"<TABLE width='100%' height='100%' align='center' BGCOLOR='FFFFFF' BORDER=0 cellspacing=0 cellpadding=0>" +        
	"<TR><TR><TD height=5 WIDTH=100%></TD></tr><TD VALIGN=TOP ALIGN=center>"    
	var s2 = "<img src='"+theURL+"' alt='popup'>"   
	var s3 = "</TD></TR><TR><TD height=5></TD></tr>"+    
	"<tr><TR><TD height=5></TD></tr><td valign=middle align=center>"+    
	"<a href='#' class='link2' "+                   
	"onClick='self.close()'>chiudi<br></a></TD></TR></TABLE></BODY>"   
	popupn = window.open("",winName,features)  
	popupn.document.write(s1+s2+s3)  
	popupn.document.close()
}

function AggiungiAPreferiti() {
	if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
		window.external.AddFavorite("http://www.aziendeservizi.it","Aziende servizi" );
	} else {
		alert("Premi CTRL + D per aggiungere AziendeServizi ai Preferiti.")
	}
}

function homepage() { 
	if(document.all) {
		document.body.style.behavior='url(#default#homepage)'
		document.body.setHomePage('http://www.aziendeservizi.it')
	}
} 
