//funzione usata per un pop message con possibilità di cambiare URL.
//è usata per aprire le pagine pop di esempio.

var newWindow = null
function winPop(myLocation) {
  
	myLocation = "pop_up/" + myLocation
	
	//alert(myLocation)
	// check if window already exists
	if (!newWindow || newWindow.closed) {
		// store new window object in global variable
		newWindow = window.open(myLocation,"","width=400,height=500,scrollbars")
		
		} else {
		// window already exists, so bring it forward
		newWindow.location = myLocation
		newWindow.focus()
		}

}	

