function apriFinestra(url,nome,impostazioni) { window.open(url,nome,impostazioni); }
function imgPat(img) {
	var descrimg = {'1':'smile colorati','2':'cigno azzurro','3':'rugoso grigio','4':'muro grigio','5':'cicogne grigio','6':'riflessi blu notte','7':'marmo azzurro','8':'rigato azzurro','9':'forme colorate','10':'muschio giallo','11':'acqua blu','12':'terra marrone'};
	var sfondo = document.getElementById('pattern');
	sfondo.value = img;
	if(img=='')
		document.images.pat.src='pattern/' + '00.gif';
	else
		document.images.pat.src='pattern/' + img + '.gif';
}
function Dfb(text) {
	if(text) {} else text = 'usa questi pulsanti per inserire stili, immagini e link...';
	var h2 = document.getElementsByTagName("h2")[0];
	h2.firstChild.nodeValue = text;
}
function Df(oggetto) {
	var campo = document.getElementById(oggetto);
	var cella = document.getElementById(oggetto+'_es');
	var valore = campo.value;
	var expr1 = /[abcdef0-9]{6,6}$/i; var expr2 = /rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)/i;
	if(expr1.test(valore) || expr2.test(valore)) cella.style.backgroundColor = valore; else cella.style.backgroundColor = '';
}
function Fd(oggetto,valore) {
	var campo = document.getElementById(oggetto); 
	var cella = document.getElementById(oggetto+'_es'); 
	campo.value = valore; if(valore == '#NONE') valore='';
	cella.style.backgroundColor = valore;
}
