
//funzione per cambio sfondo tabella

function scbg(objRef, state) {
	objRef.style.backgroundColor = (1 == state) ? '#EEEEEE' : '#FFFFFF';
	return;
}

	

//funzione per la data
today = new Date();
function DammiAA () {
	anno= String(today.getYear()) ;
    if (anno.length ==2) anno= "19" + annoK;
    if ((anno >= 100) && (anno < 2000)) anno = 2000 + (anno - 100);
	return anno
}
function DammiMM () {
	month = today.getMonth()
	if (month == 0)			month="gennaio"
	else if (month == 1) 		month="febbraio"
	else if (month == 2)		month="marzo"
	else if (month == 3)		month="aprile"
	else if (month == 4)		month="maggio"
	else if (month == 5)		month="giugno"
	else if (month == 6)		month="luglio"
    else if (month == 7)		month="agosto"
	else if (month == 8)		month="settembre"
	else if (month == 9)		month="ottobre"
	else if (month == 10)		month="novembre"		
	else if (month == 11)		month="dicembre"			
	return month
}
function DammiGG () {
today = new Date();
return weekday = today.getDate()
}
	
	
	// go to url

function gotoURL(urlObj) {

        var index=urlObj.selectedIndex;
        var url=urlObj.options[index].value;

        if(url == "") {
                return false;
        }
        else {
				//window.location.href=url;
				window.open(url,'_blank','');
                return false
        }
}

function openmac(url,win,width,height,scroll) {
   window.open(url,win,'width='+width+',height='+height+',toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars='+scroll+',resizable=0');
   return false;
}
// -->
	
