function PopupIMG(theURL) {
  myWin=window.open(theURL,'FullScreen','width=500,height=500,resizable=yes,scrollbars=no');
  myWin.focus();
}

var newwindow;
var wheight = 0, wwidth = 0;

function popitup5(url, title, iwidth, iheight, colour) {
var pwidth, pheight;
if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
wheight=iheight;
wwidth=iwidth;
}
if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+90;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}
newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html><head><title>' + title + '<\/title><\/head><body bgcolor=\"' + colour + '\"> <center>');
newwindow.document.writeln('<img src=\"' + url + '\" title=\"' + title + '\" alt=\"' + title + '\" >');
newwindow.document.writeln('<\/center> <\/body> <\/html>');
newwindow.document.close();
newwindow.focus();
}
// Based on JavaScript provided by Peter Curtis at www.pcurtis.com

function checkFormSearch(which,language){
	var testo=document.getElementById("search_string");
	if (testo.value.length<3){
		if(language == "1"){
			msg_alert = "\nLa ricerca  richiede l\'inserimento di un minimo di tre caratteri.";
		}else if(language == "2"){
			msg_alert = "\nYou must enter at least three characters.";
		}else if(language == "3"){
			msg_alert = "\nIntroduisez au moins trois caractères.";
		}
		alert(msg_alert);
		return false
	}
}
