
 
	function searchCodice(){
		document.ricerca_codice.action= DGC_CATALOGO_RISULTATI + '?codiceDa='+document.ricerca_codice.codiceDa.value + '&codiceA=' + document.ricerca_codice.codiceA.value + '&tipoEstrazione=' + document.ricerca_codice.tipoEstrazione.value;
		document.ricerca_codice.submit();
	}

	function searchLikeCodice(){
		document.ricerca_codice_like.action= DGC_CATALOGO_RISULTATI + '?tipoEstrazione=' + document.ricerca_codice_like.tipoEstrazione.value + '&codiceLike=' + document.ricerca_codice_like.codiceLike.value;
		document.ricerca_codice_like.submit();
	}

	function searchLarghezza(){
		document.ricerca_larghezza.action= DGC_CATALOGO_RISULTATI + '?larghezzaDa='+document.ricerca_larghezza.larghezzaDa.value + '&larghezzaA=' + document.ricerca_larghezza.larghezzaA.value + '&tipoEstrazione=' + document.ricerca_larghezza.tipoEstrazione.value;
		document.ricerca_larghezza.submit();
	}
	
	function visulizzaSingoloArticolo(chiave_articolo, chiave_fotografia){
			document.risulCatalgViewForm.chiaveArticolo.value=chiave_articolo;
			document.risulCatalgViewForm.chiaveFotografia.value=chiave_fotografia;
			document.risulCatalgViewForm.action=DGC_ARTICOLO_CATALOGO;
			document.risulCatalgViewForm.submit();
	}

	function ingrandisciFotoSingoloArticolo(pathFt, altezzaFt, larghezzaFt, codArt){
		NewWindowReSize(DGC_SING_ART_CATALOGO+'?pathFotografia='+pathFt+'&altezzaFotografia='+altezzaFt+'&larghezzaFotografia='+larghezzaFt+'&codiceArticolo='+codArt,"Window",900,600);
	}
	
	function ingrandisciNovita(){
		NewWindowReSize(DGC_NEWS,"Window",900,600);
	}
	
	
	function tornaAiRisultati() {
			document.singArticoloViewForm.action=DGC_CATALOGO_RISULTATI;
			document.singArticoloViewForm.submit();	
	}

	var imgine = null;
	function ingrandimento(imgine) {
		HiddenTutteTranneimgine(imgine);
		if (document.getElementById){
			document.getElementById('Ingr_'+imgine).style.visibility='visible';
		}
		if(document.all){
			document.all['Ingr_'+imgine].style.visibility='visible';
		}
		if(document.layers){
			document.layers['Ingr_'+imgine].visibility='visible';
		}
	}

	var imgineDel = null;
	function scomparsa(imgineDel) {
		if (document.getElementById){
			document.getElementById('Ingr_'+imgineDel).style.visibility='hidden';
		}
		if(document.all){
			document.all['Ingr_'+imgineDel].style.visibility='hidden';
		}
		if(document.layers){
			document.layers['Ingr_'+imgineDel].visibility='hidden';
		}
	}

	function HiddenTutteTranneimgine(imgine) {
		
	}	




	function NewWindowReSize(mypage,myname,w,h)
	{
		var win = null;

 		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
 		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

		settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes, resizable=yes';

	 	win = window.open(mypage,myname,settings)

 		win.focus();
	}

	
	
