// Search String
function rictxt() {
	var r=document.getElementById('ricerca').q;
	if (r.value == 'Cerca..') {
	r.value = '';}
	else if (r.value == '') {
	r.value = 'Cerca..';}
}
// Dimensione Testo
function TxtSize(t,l){
	var c1=document.getElementById('testo').style;
	c1.fontSize = t+'%';
	c1.lineHeight = l+'%';
}
// GoToUrl X Articoli
function go_url(pag,tbl,camp) {
	if (tbl==''){
	document.location.href=(''+pag+'');
	}else{
		var nf=document.getElementById(tbl).elements[camp];
		if ((nf.value == '') || (nf.value == 'undefined')) {
		window.focus(); }
		else { var valore = nf.value;
		nf.blur();
		document.location.href=('/'+pag+'_'+camp+'_'+valore+'.html');
		nf.disabled = true; }
	}
}
// Video Flash
function video_flash(fv,w,h,q,idm,m,ch,id,idp,idts,c) {
	document.writeln ('<object type="application/x-shockwave-flash" data="'+fv+'_'+w+'.swf?file=video.xml%3fq%3d'+q+'%26idm%3d'+idm+'%26m%3d'+m+'%26channel%3d'+ch+'%26id%3d'+id+'%26idp%3d'+idp+'%26idts%3d'+idts+'%26c%3d'+c+'" width="'+w+'" height="'+h+'"><param name="movie" value="'+fv+'_'+w+'.swf"/><param name="flashvars" value="file=video.xml%3fq%3d'+q+'%26idm%3d'+idm+'%26m%3d'+m+'%26channel%3d'+ch+'%26id%3d'+id+'%26idp%3d'+idp+'%26idts%3d'+idts+'%26c%3d'+c+'"/><param name="wmode" value="transparent"/></object>');
}
// Finestra Foto
function sat(str) {
	searchWin = window.open(str,'foto','scrollbars=no,resizable=yes,left=60,top=40,width=800,height=600,status=no,location=no,toolbar=no');
}