


function credits(str) {

        searchWin = window.open(str,'credits','scrollbars=yes,resizable=yes,width=490,height=350,status=no,location=no,toolbar=no');

//        searchWin.refer = self;

}

function pubblicita(str) {

        searchWin = window.open(str,'pubblicita','scrollbars=no,resizable=yes,width=350,height=230,status=no,location=no,toolbar=no');

//        searchWin.refer = self;

}

function vinci2(str) {

        searchWin = window.open(str,'vinci','scrollbars=no,resizable=yes,width=400,height=400,status=no,location=no,toolbar=no');

//        searchWin.refer = self;

}

function notizia(str) {

        searchWin = window.open(str,'notizia','scrollbars=yes,resizable=yes,width=300,height=300,status=no,location=no,toolbar=no');

//        searchWin.refer = self;

}

function controlla_chk(nomeform, nomecampo, indice)
{
	var frm = eval("document.forms['" + nomeform + "']");
	var campo = eval("frm." + nomecampo);
	var ceccata = eval("campo[" + indice + "]");

	if(ceccata.checked == true)
	{
		for(i=0; i<campo.length; i++)
		{
			if(i != indice)
			{
				campo[i].checked = false;
			}
		}
	}
}

function lungh_area(nomeform, nomecampo, max)
{
	var area = eval("document.forms['" + nomeform + "']." + nomecampo);

	if(area.value.length > max)
	{
		area.value = area.value.substring(0, max);
	}
}

function apriWin(percorso, target, l, a, res, scr)
{
	finestra = window.open(percorso, target, 'location=no, directories=no, scrollbars=' + scr + ', menubar=no, resizable=' + res + ', width=' + l + ', height=' + a);
	finestra.focus;
}


function cambiaImg(nomeImg, percorso, nomeFile, lnk)
{
	quale = eval("document.images['" + nomeImg + "']");
	quale.src = percorso + nomeFile;
	if(lnk != "")
	{
		//alert("nuovo link = " + lnk);
		quale.link = lnk;
	}
}


function scrivimail(a,b,c,stile)
{
document.write('<a class=' + stile + ' href=mailto:' + a + b + c + '>' +  a + b + c + '</' + 'a>');

}

function right(e)

{
//alert(navigator.appName);

	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
	{
		alert('ChateXpert Engine\nnCopyright 1997-2009 SOSTANZA\ndi Alessandro La Ciura');
		return false;
	}
	else
		if (navigator.appName == 'oMicrosoft Internet Explorer' && (event.button == 2 || event.button == 3))
		{
			alert('ChateXpert Engine\nCopyright 1997-2009 SOSTANZA SRL\ndi Alessandro La Ciura.');
			return false;
		}
	return true;
}


function apri(stanza)
{
	nuovachat=window.open('http://server80.chatexpert.it/clienthtml2/default.asp?ID=1&gruppo=ChateXpert&template=' + document.forma.skin.value +'&stanza=' + stanza,'chatexpertwin','status=yes,toolbar=no,width=680,height=600,resizable=yes');
	nuovachat.focus();
}

function apri120(stanza)
{
	nuovachat=window.open('http://server80.chatexpert.it/clienthtml2/default_120.asp?ID=1&gruppo=ChateXpert&template=' + document.forma.skin.value +'&stanza=' + stanza,'chatexpertwin','status=yes,toolbar=no,width=850,height=600,resizable=yes');
	nuovachat.focus();
}

function apri728(stanza)
{
	nuovachat=window.open('http://server80.chatexpert.it/clienthtml2/default_728.asp?ID=1&gruppo=ChateXpert&template=' + document.forma.skin.value +'&stanza=' + stanza,'chatexpertwin','status=yes,toolbar=no,width=728,height=600,resizable=yes');
	nuovachat.focus();
}

function apri_chatexpert(stanza)
{
	nuovachat1=window.open('http://server80.chatexpert.it/clienthtml2/default.asp?ID=1&gruppo=ChateXpert&template=3912&stanza=' + stanza,'chatexpertwin', 'status=yes,toolbar=no,width=670,height=600,resizable=yes'); nuovachat1.focus();
}