/************************************/
/* FUNZIONE PER INGRANDIRE IMMAGINI */
/************************************/

function newWindow(image) {
	mapwindow = window.open(image, "granmappa", "width=770, height=490")
	mapwindow.focus()
	}


/************************************************/
/* FUNZIONE PER CONTROLLARE I CAMPI OBBLIGATORI */
/************************************************/

function checkrequired(which){
var pass=true
if (document.images){
	for (i=0;i<which.length;i++){
		var tempobj=which.elements[i]
		if (tempobj.name.substring(0,3)=="req"){
			if((tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
			pass=false
			break
			}
		}
	}
}
if (!pass){
alert("Non hai compilato correttamente il form. Alcune informazioni non sono state inserite. Clicca su OK e verifica l'errore")
return false
}
else
return true
}



/**************************************************/
/* REFRESH DELLA PAGINA E CAMBIO LINGUA           */
/**************************************************/

function vertaal(what,bladzijde,ide)
{
    var b=null;
    var beruf="";
    var id=0;
    
    // get the item id
    
    var id=ide;
	
    // get the categ value
		j=what.categ.length;
		//alert(j)
			for (i=0; i<j; i++){
				if(what.categ[i].selected) var beruf = what.categ[i].value
			}
    b=beruf;
    window.location.href = bladzijde+"?l="+b+"&id="+id;
}


