// JavaScript Document
function gEBI(element) {
		return document.getElementById(element);
	}
	function clearInputText(element){
		gEBI(element).value='';	
	}
	function getValue(element){
		return gEBI(element).value;	
	}
	function showElement(element)
	{
		var e=gEBI(element);
		e.style.visibility='visible';
		e.style.display='block';	
	}	
	function hideElement(element)
	{
		var e=gEBI(element);
		e.style.visibility='hidden';
		e.style.display='none';	
	}
	function toggleElement(element){
		var e=gEBI(element);
		if (e.style.visibility=='hidden'){
			showElement(e);
		}else{
			hideElement(e);
		}	
	}
	
	function showWaitMessage(div){	
		gEBI(div).style.background="url(img/spinner.gif) center no-repeat";
	}
	function hideWaitMessage(div){
		gEBI(div).style.background="none";
	}
	
	function hideHTML(element){
		gEBI(element).innerHTML='';
	}
	
			// ingrandimento della foto dei prodotti
	function Ingrandisci(path) {
			//	showWaitMessage("img_big")
			var x = document.getElementById("img_big").src = path;
	}
		

	function ApriPopup(pagina) {
		var stile  = "width=200,height=180,left=400,top=200,resizable=no,scrollbars=no,toolbar=no,status=no";
		 win = window.open(pagina,"", stile);
   	
		}
	
	function ApriPopupPrivacy(pagina) {
		var stile  = "width=560,height=420,left=250,top=200,resizable=no,scrollbars=no,toolbar=no,status=no";
		 win = window.open(pagina,"", stile);
   	
		}
		

	