function pPr(){
safeIEstring=navigator.appVersion;
if ((document.all) && (safeIEstring.indexOf ("MSIE 5.0") > -1)) {        
                var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';       
                document.body.insertAdjacentHTML('beforeEnd', 
WebBrowser);                        WebBrowser1.ExecWB(6, 2);
WebBrowser1.outerHTML = "";
}
else {self.print();}
}

s="c4";
function goLink() {
m=document.getElementById("seLink");
t=m.options[m.selectedIndex].text;
m=m.options[m.selectedIndex].value;
shMe(m,t);
}
function shMe(n,t) {
document.getElementById("titLink").innerHTML=t;
document.getElementById(s).style.display="none";
document.getElementById(n).style.display="block";
s=n;
}
function altTextShow(a,b) {
    document.getElementById(a).style.display='block';
    document.getElementById(b).style.display='none';
}
function oLnk(m) {window.open(m);return false;}

function getSelectValue(q){
   return q.options[q.options.selectedIndex].value;
}
function vai(){
   if(getSelectValue(document.getElementById("other"))!=''){
      location.href=getSelectValue(document.getElementById("other"));
   }
   return false;
}

chkza="";

function getCookie(Name) {
var search = Name + "=";
if (document.cookie.length > 0) {
    // if there are any cookies
    offset = document.cookie.indexOf(search);
    if (offset != -1) {
        // if cookie exists
        offset += search.length;
        // set index of beginning of value
        end = document.cookie.indexOf(";", offset);
        // set index of end of cookie value
        if (end == -1) {
            end = document.cookie.length;
            }
    chkza=unescape(document.cookie.substring(offset, end));
        }
    }
}


getCookie("internoCSS");

if(chkza == "A")
{
  document.write("");
}
else if(chkza == "AA")
{
  document.write("<link rel='stylesheet' href='/mininterno/site/css/internoAA.css'/>");
}
else if(chkza == "AAA")
{
  document.write("<link rel='stylesheet' href='/mininterno/site/css/internoAAA.css'/>");

}
else
{
  document.write("");
}



chkza="";

function setCookie(name, value) {
  dataScadenza = new Date();
  dataScadenza.setMonth(dataScadenza.getMonth() + 2);
  var domain="";
  var temp=location.hostname;
  temp=temp.split(".");
  for(i=1;i<temp.length;i++){
    if(i!=1)domain+=".";
    domain+=temp[i];
  }
  //var curCookie = name + "=" + escape(value)+ "; expires=" + 
dataScadenza.toGMTString() + "; path=/; domain="+domain+";";
  var curCookie = name + "=" + escape(value)+ "; expires=" + 
dataScadenza.toGMTString() + "; path=/; domain="+location.hostname+";";
  document.cookie = curCookie;
  //alert(curCookie)
}

function getCookie(Name) {
var search = Name + "=";
if (document.cookie.length > 0) {
    // if there are any cookies
    offset = document.cookie.indexOf(search);
    if (offset != -1) {
        // if cookie exists
        offset += search.length;
        // set index of beginning of value
        end = document.cookie.indexOf(";", offset);
        // set index of end of cookie value
        if (end == -1) {
            end = document.cookie.length;
            }
    chkza=unescape(document.cookie.substring(offset, end));
        }
    }
}


function mailpage() 
{ 
	chaine_mail = "mailto:?subject= Su www.interno.it : " + document.title; 
	chaine_mail += "&body= Ti raccomando di vedere la pagina : " + document.title; 
	chaine_mail += " - Consultabile all'indirizzo : " + location.href; 
	location.href = chaine_mail; 
} 

function rivalida(sito) 
{ 

	switch(sito) { 
	
		case "total": 
			indir = "http://www.totalvalidator.com/validator/Revalidate?revalidate=true&revalidateurl=" + location.href + "&wai=AA"; 
		break; //si ferma qui 

		case "validator": 
			indir = "http://validator.w3.org/check?uri=" + location.href; 
		break; //si ferma qui 
		
		case "jigsaw": 
			indir = "http://jigsaw.w3.org/css-validator/validator?uri=" + location.href; 
		break; //si ferma qui 

		default: 
			//istruzioni 
	}
		window.open(indir, "validazione", "resizable=1,toolbar=1,menubar=1,location=1,scrollbars=1,resize=1");
		return false;
} 