function yup_jumpMenu(targ,selObj,restore,urlA,urlB){
	eval(targ+".location='"+urlA+selObj.options[selObj.selectedIndex].value+urlB+"'");
	if (restore) selObj.selectedIndex=0;
}

function CheckLength( num_caratteri ) {
	with (document.modulo) {
		if ( corpo.value.length > num_caratteri ) { corpo.value = corpo.value.substr( 0, num_caratteri ); corpo.blur(); }
		chr.value = num_caratteri - corpo.value.length;
	}
}

function stampa_testo(s_url) {
	window.open( s_url, 'stampa','width=540,height=520,scrollbars=yes,resizable=no');
}

function giorno ()
{
	// leggo la data corrente
	//
	var now = new Date();

	// prendo le varie componenti della data
	//
	var mName = now.getMonth() + 1;
	var dName = now.getDay() + 1;
	var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();

	// scrivo il giorno in formato testo
	//
	if(dName==1) Day = "domenica";
	if(dName==2) Day = "lunedi";
	if(dName==3) Day = "martedi";
	if(dName==4) Day = "mercoledi";
	if(dName==5) Day = "giovedi";
	if(dName==6) Day = "venerdi";
	if(dName==7) Day = "sabato";

	// scrivo il mese in formato testo
	//
	if(mName==1) Month="gennaio";
	if(mName==2) Month="febbraio";
	if(mName==3) Month="marzo";
	if(mName==4) Month="aprile";
	if(mName==5) Month="maggio";
	if(mName==6) Month="giugno";
	if(mName==7) Month="luglio";
	if(mName==8) Month="agosto";
	if(mName==9) Month="settembre";
	if(mName==10) Month="ottobre";
	if(mName==11) Month="novembre";
	if(mName==12) Month="dicembre";

	y = now.getUTCFullYear();

	// scrivo la stringa finale
	//
	document.write(Day + " " + dayNr + " " + Month + " " + y);
}

function cg_openPictureWindow( imageName, imageWidth, imageHeight ) {
	newWindow = window.open("","cg_Window","width="+imageWidth+", height="+imageHeight+", left=50, top=50");
	newWindow.document.open();
	newWindow.document.write('<html><title>step 1 - magazine</title><body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onBlur="self.close()">'); 
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="'+imageName+'">'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
