function apri(theURL,winName,features) {
  windowOpened = new Object();
  windowOpened = window.open(theURL,winName,features);
  windowOpened.focus();
}

function closerefresh(){
 opener.document.location.reload();
 close()
}
function closeaddtxtrefresh(text){
 opener.document.newsform.testo.value += text+" ";
 opener.document.newsform.testo.focus();
 close();
}
function closeaddtitrefresh(text){
 opener.document.newsform.titolo.value += text+" ";
 opener.document.newsform.titolo.focus();
 close();
}
function addsimple(text) {
// inserts tag
	document.newsform.testo.value += text+" ";
	document.newsform.testo.focus();
}
function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}

function CheckForm() {
if (document.search.title.value==''){
	alert("Compilare il campo di ricerca !");
	return false;
	}
	}
