// -- Adobe GoLive JavaScript Library// -- Global Functionsfunction CSOpenWindow(action) {	var wf = "";		wf = wf + "width=" + action[3];	wf = wf + ",height=" + action[4];	wf = wf + ",resizable=" + (action[5] ? "yes" : "no");	wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");	wf = wf + ",menubar=" + (action[7] ? "yes" : "no");	wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");	wf = wf + ",directories=" + (action[9] ? "yes" : "no");	wf = wf + ",location=" + (action[10] ? "yes" : "no");	wf = wf + ",status=" + (action[11] ? "yes" : "no");			window.open(action[1],action[2],wf);}CSInit = new Array;CSExit = new Array;CSStopExecution=false;function CSAction(array) {return CSAction2(CSAct, array);}function CSAction2(fct, array) { 	var result;	for (var i=0;i<array.length;i++) {		if(CSStopExecution) return false; 		var aa = fct[array[i]];		if (aa == null) return false;		var ta = new Array;		for(var j=1;j<aa.length;j++) {			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}				else ta[j]=aa[j];}			} else ta[j]=aa[j];		}					result=aa[0](ta);	}	return result;}CSAct = new Object;function CSClickReturn () {	var bAgent = window.navigator.userAgent; 	var bAppName = window.navigator.appName;	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))		return true; // dont follow link	else return false; // dont follow link}// -- Action Functions// OUT Open Image Window Action v1.2.1// Script copyright 1999, 2000 OUT Media Design GmbH. All rights reserved.function OUTOpenImageWindow(action) {	var imgWinW = action[3];	var imgWinH = action[4];	var bgImg = action[16] ? ' BACKGROUND="'+action[15]+'" ' : '';	var bVers=window.navigator.appVersion.substring(0,1);	var isMac = window.navigator.userAgent.indexOf("Mac") >= 0;	var isNN = window.navigator.appName.indexOf("Netscape")>=0;	var isIE = window.navigator.appName.indexOf("Explorer")>=0;	var wOffset = (bVers<4 && isNN) ? 9 : action[14];	imgWinW += 2*wOffset;	imgWinH += 2*wOffset;	var wf = "";		wf = wf + "width=" + imgWinW;	wf = wf + ",height=" + imgWinH;	wf = wf + ",resizable=" + (action[5] ? "no" : "yes");	wf = wf + ",scrollbars=" + (action[6] ? "no" : "yes");	wf = wf + ",menubar=" + (action[7] ? "no" : "yes");	wf = wf + ",toolbar=" + (action[8] ? "no" : "yes");	wf = wf + ",directories=" + (action[9] ? "no" : "yes");	wf = wf + ",location=" + (action[10] ? "no" : "yes");	wf = wf + ",status=" + (action[11] ? "no" : "yes");	var newImgWin = window.open("",action[2],wf);	newImgWin.document.writeln('<HTML><HEAD><TITLE>'+action[13]+'</TITLE></HEAD>');	newImgWin.document.writeln('<BODY BGCOLOR="'+action[12]+'"'+bgImg+' MARGINWIDTH="'+action[14]+'" MARGINHEIGHT="'+action[14]+'" LEFTMARGIN="'+action[14]+'" TOPMARGIN="'+action[14]+'">');	newImgWin.document.writeln('<CENTER><IMG SRC="'+action[1]+'"></CENTER>');	newImgWin.document.writeln('</BODY></HTML>');	newImgWin.document.close();	if(action[17] && bVers>=4) {		if (isNN) newImgWin.setResizable(true);		newImgWin.resizeTo(imgWinW,imgWinH);		if (isNN) newImgWin.setResizable(action[5]);		if(isIE && (newImgWin.document.body.clientWidth!=imgWinW || newImgWin.document.body.clientHeight!=imgWinH)) newImgWin.resizeTo(2*imgWinW-newImgWin.document.body.clientWidth,2*imgWinH-newImgWin.document.body.clientHeight);	}	if(action[18] && bVers>=4 && !(isMac && isIE && bVers<5)) newImgWin.focus();}function formController(which){//Definisco l'array dei messaggi di errore	var error_txt = new Array;	error_txt["nome"] = "Nome";	error_txt["email"] = "E-mail";	var reqString ="Attenzione!!\nControllare i seguenti campi:\n ";	var reqPass = true ;	/*Controllo validità campo "email"*/	if(which.name == "email") {		var finder = which.value;		if (finder !="") {					var foundAt = 0;			var foundPoint = 0;			for(n = 0 ; n < finder.length ;n++) {				if ((finder.charAt(n))==("@")) {					++foundAt ;				}				if ((finder.charAt(n))==(".")) {					++foundPoint ;				}			}			if ((foundAt != 1)||(foundPoint == 0)) {				alert("ATTENZIONE!!\n L'indirizzo di posta elettronica : "+finder+"\n non è un'indirizzo valido.");				return false			}			}		}	for (i=0;i<which.length;i++) {		var temp_elem = which.elements[i] ;		/*Controllo campo "obbligatorio"*/				if(temp_elem.name=="nome"){			if (temp_elem.value=="") {				reqString += ("\n-" + error_txt["nome"]);				reqPass = false ;			}		}		if(temp_elem.name=="email") {			if (temp_elem.value=="") {				reqString += ("\n-" + error_txt["email"]);				reqPass = false;			}			}	}	if (!reqPass) {		alert(reqString);		return false ;	}}// EOF
