<!--
PositionX = 5;
PositionY = 5;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4)
{
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;

function FG_PopUp(imageURL,imageTitle){
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document){
	writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
	writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
	writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
	writeln('width=100-(document.body.clientWidth-document.images[0].width);');
	writeln('height=100-(document.body.clientHeight-document.images[0].height);');
	writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
	writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
	writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
	if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
	else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
	writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
	close();		
	}
}


function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
	thisfield.value = "";
	}
}

function fin(str,x,y)
{
	xx=x;
	yy=y;
	searchWin = window.open(str,'fin','scrollbars=yes,resizable=yes,width=' + x + ', height=' + y + ',status=no,location=no,toolbar=no,dependent=yes');
	searchWin.focus();
	nomeWin=searchWin;
	redim(10,5);
}

function fin_nobar(str,x,y)
{
	xx=x;
	yy=y;
	searchWin = window.open(str,'fin','scrollbars=no,resizable=no,width=' + x + ', height=' + y + ',status=no,location=no,toolbar=no,dependent=no');
	searchWin.focus();
	nomeWin=searchWin;
	redim(10,5);
}

function conferma_elimina() 
{
	if (!confirm ("Attenzione: l'oggetto verrą rimosso!")){
   		return false
	}
	   else{
	   return true
	}
}

function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}

function conferma(str) 
{
	if (!confirm (str)){
   		return false
	}
	   else{
	   return true
	}
}

function checkEVfrm() {
 if (this.EV_Ins.form_evento_ev.value == "" ||
	this.EV_Ins.form_luogo_ev.value == "" ||
	this.EV_Ins.form_citta_ev.value == "" ||
	this.EV_Ins.form_prov_ev.value == "" ||
	this.EV_Ins.form_indirizzo_ev.value == "" ||
	this.EV_Ins.form_email_ev.value == "") {
		alert("ATTENZIONE: valore mancante.\n Campo obbligatorio non inserito...");
		return false;
 } else {
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	if (!email_reg_exp.test(this.EV_Ins.form_email_ev.value))
	{
		alert("ATTENZIONE: Email inserita non valida...")
		return false
	}  else {
		if (!confirm ("VERIFICA DATI INSERITI: \n\n Nome: "+this.EV_Ins.form_evento_ev.value+"\n Luogo: "+this.EV_Ins.form_luogo_ev.value+"\n Dal: "+this.EV_Ins.form_dalg_ev.value+"/"+this.EV_Ins.form_dalma_ev.value.substring(0,2)+"/"+this.EV_Ins.form_dalma_ev.value.substring(2,6)+"\n Al: "+this.EV_Ins.form_alg_ev.value+"/"+this.EV_Ins.form_alma_ev.value.substring(0,2)+"/"+this.EV_Ins.form_alma_ev.value.substring(2,6)+"\n Ora: "+this.EV_Ins.form_ora_ev.value+"\n Citta: "+this.EV_Ins.form_citta_ev.value+"\n Prov: "+this.EV_Ins.form_prov_ev.value+"\n Indirizzo: "+this.EV_Ins.form_indirizzo_ev.value+"\n E-Mail: "+this.EV_Ins.form_email_ev.value+"\n Note: "+this.EV_Ins.form_note_ev.value+"\n\n NB: Nessuna modifica sarą possibile dopo l\'inserimento!")){
			return false
		}
		   else{
		   return true
		}
	}
 }
}

function checkARTfrm() {
 if (this.form_articolo.art_title.value == "" ||
	this.form_articolo.art_incipit.value == "" ||
	this.form_articolo.art_keywords.value == "") {
		alert("ATTENZIONE: valore mancante.\n Campo obbligatorio non inserito...");
		return false;
 } else {
	if (!confirm ("VERIFICA DATI GENERALI: \n\n Titolo: "+this.form_articolo.art_title.value+"\n Incipit: "+this.form_articolo.art_incipit.value+"\n KeyWords: "+this.form_articolo.art_keywords.value)){
		return false
	}
 }
}
//-->
