

function setConfezione(){
 ind = document.fmMod.cons.selectedIndex;
 conserva = document.fmMod.cons.options[ind].value;
 if (conserva == brux) return;
 brux = conserva;	 
 while (document.fmMod.conf.options.length > 0) {
	document.fmMod.conf.options[0] = null;	
 }
 if ((conserva == "conserve - olio di semi") || (conserva == "conserve - olio d'oliva")) {
     addConfezione("lattina o latta","lattina o latta");
     addConfezione("----------------------");
     addConfezione("lattina o latta","lattina o latta");
     addConfezione("vasetto","vasetto");
     addConfezione("secchiello","secchiello");
     addConfezione("vaschetta","vaschetta");
     addConfezione("busta normale","busta normale");
 }
 if (conserva == "marinati") {
     addConfezione("vassoio","vassoio");
     addConfezione("----------------------");		
     addConfezione("vassoio","vassoio");
     addConfezione("latta","latta");
     addConfezione("vasetto","vasetto");
     addConfezione("blistati","blistati");
 }	

 if (conserva == "sotto sale") {
     addConfezione("latta","latta");
     addConfezione("----------------------");
     addConfezione("latta","latta");
     addConfezione("busta normale","busta normale");
 }

 if ((conserva == "affumicati - filetti") || (conserva == "affumicati - tranci") || (conserva == "affumicati - intero") || (conserva == "affumicati - affettato")) {
     addConfezione("busta sottovuoto","busta sottovuoto");	
 }
	
 if (conserva == "secchi") {
     addConfezione("busta normale","busta normale");
     addConfezione("----------------------");
     addConfezione("busta normale","busta normale");
     addConfezione("busta sottovuoto","busta sottovuoto");
 }

 if (conserva == "altro") {
     addConfezione("vassoio 1 (skin)","vassoio 1 (skin)");
     addConfezione("----------------------");
     addConfezione("vassoio 1 (skin)","vassoio 1 (skin)");
     addConfezione("vassoio 2","vassoio 2");
     addConfezione("busta normale","busta normale");
     addConfezione("busta sottovuoto","busta sottovuoto");
     addConfezione("cartone","cartone");
     addConfezione("termo","termo");
     addConfezione("sacchetto","sacchetto");
     addConfezione("latta","latta");
     addConfezione("vasetto","vasetto");
     addConfezione("altro","altro");		
 }

 document.fmMod.conf.selectedIndex = 0;
}

function addConfezione(txt,val) {
     free = document.fmMod.conf.options.length;
     var opt = new Option (txt,val);
     document.fmMod.conf.options[free] = opt;
}

function variabile() 
{
	ind = document.fmMod.cons.selectedIndex;
        brux = document.fmMod.cons.options[ind].value;
	ind2 = document.fmMod.conf.selectedIndex;
	confdb = document.fmMod.conf.options[ind2].value;
}

//FINE BRUX

// Alessio

function ActionNewAccount() {
  var v2 = GetCookie ('PK');
  window.open("../../bin/upmercman.exe/NewAccount?PK="+v2+"","_parent","");
}

function UserEdit(id, id1, id2) {
  window.open("../../bin/upmercman.exe/edituser?pk="+id+"&userid="+id1+"&sCode="+id2+"","_parent","");
}
function SaveNewUser()
 {
   if      (document.formNewAccount.sUserid.value=="")    {alert ('Campo "User-Name" valore obbligatorio !') }  
   else    {
   if      (document.formNewAccount.sCode.value=="")    {alert ('Campo "Terminal-ID" valore obbligatorio !') }  
   else    {		
		document.formNewAccount.method='POST';		
	        document.formNewAccount.action='../../bin/Upmercman.exe/SaveNewUser';
		document.formNewAccount.submit();
	   }
	   }
 } 
 
 function ModUser()
 {   
   if      (document.editAc.sCode.value=="")    {alert ('Campo "Terminal-ID" valore obbligatorio !') }  
   else    {		
		document.editAc.method='POST';		
	    document.editAc.action='../../bin/Upmercman.exe/Editsave';
		document.editAc.submit();
	   }
	   
 }  
  
function UserDelete(id, id1){
  if (!confirm("Attenzione."+"Lei sta per cancellare irreversibilmente utente "+id1+". Continua ?"))
   { }
  else {window.open("../../bin/upmercman.exe/deleteuser?pk="+id+"&userid="+id1+"","_parent","")};  
}
function ActionbackAccount(id) {
  window.open("../../bin/upmercman.exe/entermanager?pk="+id+"","_parent","");
}
// Fine Alessio

//Antonio
var precedente="agg";
  function Mos(value1,value2){
		if (document.layers){		
		 document.layers[value1].visibility='show';
                 document.layers[value2].visibility='show';
		 }
		else {		 
		 document.all[value1].style.visibility='visible';
                 document.all[value2].style.visibility='visible';
		}
		precedente=value1; 
   }   

function ActionLinkPKEXE(v1, l1)
 {
  var v2 = GetCookie ('PK');
  document.location.href='../../bin/'+ l1 +'.exe/' + v1 + '?PK=' + v2 + ''; 
 }

function Carat(parola,numero){    
   var pas=parola.length; 
   var app=parola;      
   if (pas>1)
    {  
	 app=parola.charAt(pas-1);	  
	}	
   if (!((app==",")||(app==".")||(app=="0")||(app=="1")||(app=="2")||(app=="3")||(app=="4")||(app=="5")||(app=="6")||(app=="7")||(app=="8")||(app=="9")))
    { 
	  document.all["Aum"].value="0"; 
    }
}

var setAct = '';

function SetActions(id) {
	if (id == "add")
	 {(setAct="pre")}
    else {setAct="reg"};
}

function openActions() {
    document.fmMod.action="../upesp.exe/"+setAct+"";
}


function ins1() {
   	if (document.fmMod.codp.value=="")
	{ alert ('Attenzione!! Inserire il codice del prodotto') }	
	else {
	      if (document.fmMod.Desc.value=="") 	  
		     {alert ('Attenzione!! Inserire il nome del prodotto') } 		
	else
	     {
		 document.fmMod.action="/bin/upesp.exe/reg";				 
		 }		 
		  
		 }
		 		 		 		 		 		          		 
}

function ins2() {
   	if (document.fmMod.Desc.value=="")
	{ alert ('Attenzione!! Inserire il nome del prodotto') }		
		
	else
	     {
		 document.fmMod.action="/bin/upesp.exe/modifica";				 
		 }		 
		 		 		 		 		 		          		 
}

function ins1Asp() {
   	if (document.fmMod.codp.value=="")
	{ alert ('Attenzione!! Inserire il codice prodotto') }	
	else {
	      if (document.fmMod.Desc.value=="") 	  
		     {alert ('Attenzione!! Inserire il nome del prodotto') } 	 	
	else
	     {
		 document.fmMod.action="/espo/actionEspo.asp?OPE=ins";				 
		 }
		 		 
		 }
		 		 		 		 		 		          		 
}

function ins2Asp() {
   	if (document.fmMod.Desc.value=="")
	{ alert ('Attenzione!! Inserire il nome prodotto') }		
	 	
	else
	     {
		 document.fmMod.action="/espo/actionEspo.asp?OPE=mod";				 
		 }
				 		 		 		 		 		          		 
}


function ActionLinkPK2(v1, l1,v3)
 {
  document.location.href='' + l1  + v1 + '?PK=' + v3 + '';
 }

function openCanc(id,id2,id3,id4){
  var mom =("../upesp.exe/canc?pk="+id+"&Prod="+id2+"&Status="+id3+"&Desc="+id4);
  if (!confirm("Attenzione."+"Lei sta per cancellare irreversibilmente un prodotto. Desidera continure?"))
   { }
  else { window.open(mom,"_parent","")}; 
}

function openCancAsp(id){

  var mom =('/espo/actionEspo.asp?OPE=can&id='+id+'');
  if (!confirm("Attenzione."+"Lei sta per cancellare irreversibilmente il prodotto. Desidera continure?"))
   { }
  else { window.open(mom,"_parent","")}; 
}

//Fine Antonio

// Max
var TipoPrgMercato = '.exe/'
var TipoPrgUnipmsg = '.exe/'

function ActionMsg(v1, v2, v3, v4)
{
 document.location.href='../../bin/' + v1 + TipoPrgUnipmsg + v2 + '?NR='+ v3 + '&PR=' + v4 + '';
}

function Action2(v1)
 {
   document.formIns.method='POST';
   document.formIns.action='../../bin/mercato' + TipoPrgMercato + v1 + '';
   document.formIns.submit();
 }

function Action3(v3)
 {
  	var v1 = GetCookie ('LI');  
  	var v2 = GetCookie ('PK');
  	document.location.href='../../bin/mercato' + TipoPrgMercato + v1 + '?PK=' + v2 + '&AZ=' + v3 + ''; 
 }

function ActionLink(v1)
 {
  	document.location.href='../../bin/mercato' + TipoPrgMercato + v1 + '';
 }

function ActionLinkPK(v1, l1) 
{
  	var v2 = GetCookie ('PK');
   	document.location.href='../../bin/'+ l1 + TipoPrgMercato + v1 + '?PK=' + v2 + '';
    //* document.location.href='../../bin/'+ l1 +'.exe/' + v1 + '?PK=' + v2 + ''; 
}

function ActionLinkPK1(v1, l1)
 {
  	var v2 = GetCookie ('PK');
  	document.location.href='' + l1  + v1 + '?PK=' + v2 + '';
 }

function Action2LinkPK(v1,v3)
 {
	var v2 = GetCookie ('PK');
  	document.location.href='../../bin/mercato' + TipoPrgMercato + v1 + '?PK=' + v2 +  v3 + '';
 }

function Action5(v1)
 { 
	var v2 = GetCookie ('PK');
	document.formIns.method='POST';		
    document.formIns.action='../../bin/mercato' + TipoPrgMercato + v1 + '?PK=' + v2 + '';
	document.formIns.submit();
 }

function CtrIns(v1,v2)
 {
        var vstato ='';
	if (v2== 'anains' || v2== 'accedit' || v2== 'anains2' || v2== 'accedit2' || v2== 'anains3' || v2== 'accedit3')// || v2== 'accedit4')
        {
		if (document.formIns.FirstText.value=="") 	  {alert ('Campo "Nome" valore obbligatorio ! - The "First field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.LastText.value=="")     {alert ('Campo "Cognome" valore obbligatorio ! - The "Last field"  it is compulsory !')  ; vstato='N';}
		if (document.formIns.CityText.value=="")     {alert ('Campo "Città" valore obbligatorio ! - The "City field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.PhoneText.value=="")    {alert ('Campo "Telefono" valore obbligatorio ! - The "Phone field"  it is compulsory !') ; vstato='N';}
		}
	if (v2== 'anains' || v2== 'anains2' || v2== 'anains3')
    	{if (document.formIns.UserIDText.value=="")   {alert ('Campo "Utente" valore obbligatorio ! - The "User field"  it is compulsory !') ; vstato='N';}}
	if (v2== 'anains' || v2== 'anains2' || v2== 'anains3' || v2== 'accepwd')
		{
		if (document.formIns.PassText.value=="")     {alert ('Campo "Password" valore obbligatorio ! - The "Password field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.PassText2.value=="")    {alert ('Campo "Conferma password" valore obbligatorio ! - The "Confirmation password field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.PassText.value!=document.formIns.PassText2.value) {alert  ('Il campo "Conferma password" non è uguale al campo Password ! - The field "Confirmation password" is not the same as the Password field !') ; vstato='N';}
		}
	if (v2== 'anains' || v2== 'accedit' || v2== 'anains2' || v2== 'anains3' || v2== 'accedit3')// || v2== 'accedit4')
		{if (document.formIns.MailText.value=="")     {alert ('Campo "E-Mail" valore obbligatorio ! - The "Password field"  it is compulsory !') ; vstato='N';}}
	if (v2== 'anains2' || v2== 'accedit2' || v2== 'anains3' || v2== 'accedit3')// || v2== 'accedit4')
		{
		if (document.formIns.AddrText.value=="")    {alert ('Campo "Via" valore obbligatorio ! - The "Address field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.ZipText.value=="")    {alert ('Campo "CAP" valore obbligatorio ! - The "Zip field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.StateText.value=="")    {alert ('Campo "Provincia" valore obbligatorio ! - The "State field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.CountryText.value=="")    {alert ('Campo "Paese" valore obbligatorio ! - The "Country field"  it is compulsory !') ; vstato='N';}
		}
	if (v2== 'msgins' || v2== 'msgedit')
		{
		if (document.formIns.ProdText.value=="")    {alert ('Campo "Categoria prodotto" valore obbligatorio ! - The "Product category field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.DescText.value=="")     {alert ('Campo "Oggetto" valore obbligatorio ! - The "Object field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.TestoTextarea.value=="")     {alert ('Campo "Testo del Messaggio" valore obbligatorio ! - The "Text of the message field"  it is compulsory !') ; vstato='N';}
		}

	if (v2== 'anains3' || v2== 'accedit3')// || v2== 'accedit4')
		{
		if (document.formIns.PivaText.value=="")     {alert ('Campo "Partita IVA" valore obbligatorio ! - The "Partita IVA field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.RagsocText.value=="")     {alert ('Campo "Ragione Sociale" valore obbligatorio ! - The "Name field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.ShipMode1Text.value=="")     {alert ('Campo "Tipo spedizione n° 1" valore obbligatorio ! - The "Kind of shipment n° 1 field"  it is compulsory !') ; vstato='N';}
		if (document.formIns.ShipValue1Text.value=="")     {alert ('Campo "Costo spedizione n° 1" valore obbligatorio ! - The "Cost of the shipment n° 1 field"  it is compulsory !') ; vstato='N';}
		}
	if (v2== 'anains2' || v2== 'accedit2')
		{
		if (document.formIns.ShipModeText.value=="")     {alert ('Campo "Tipo spedizione" valore obbligatorio ! - The "Kind of shipment field"  it is compulsory !') ; vstato='N';}
		}
	
	if (v2== 'datapay'){vstato='Pay'}
	
	if( vstato=='')
		{
			var vcheck1 = '';
			var vcheck2 = '';
			var vcheck3 = '';
			if (v2== 'anains' || v2== 'anains2' || v2== 'anains3' || v2== 'accedit2' || v2== 'accedit3')
				{
				vcheck1='no';
				if (document.formIns.radio1[0].checked==true)	{vcheck1= 'ok';}
				}
				
			if (v2== 'anains' || v2== 'anains2' || v2== 'anains3')
				{
				vcheck2='no';
				if (document.formIns.radio2[0].checked==true)	{vcheck2= 'ok';}
				}
			
			if (v2== 'anains2' || v2== 'anains3')
				{
				vcheck3='no';	
				if (document.formIns.radio3[0].checked==true)	{vcheck3= 'ok';}
				}
			
			if  (vcheck1== 'no' || vcheck2== 'no' || vcheck3== 'no')
			 	{
				var truthBeTold = window.confirm("Condizioni non accettate. Premere 'OK' per rimanere nella scheda registrazione; 'Annulla' per uscire definitivamente dalla registrazione; Conditions are not accepted. 'OK' for remain recording form; 'Annulla' for END;");
	     		if (truthBeTold) 	{}	
				else				{document.location.href='../../';}
				}	
			else 	
				{
        		document.formIns.method='POST';		
       			document.formIns.action='../../bin/mercato' + TipoPrgMercato + v1 + '';
				document.formIns.submit();
				}
		}

	if(	vstato=='Pay')
		{
		document.formIns.method='POST';
		document.formIns.target='_blank ';
		document.formIns.action='../../bin/mercato' + TipoPrgMercato + v1 + '';
		document.formIns.submit();
		}
	if(	vstato=='/msggest')
		{
		document.formIns.method='POST';
		document.formIns.target='_blank ';
		document.formIns.action='../../bin/mercato' + TipoPrgMercato + v1 + '';
		document.formIns.submit();
		}
 } 

var LoginAZ= '';
var LoginPRO= '';
var LoginTOT= '';
var LoginCAR= ''; 
function CtrLogin(v1)
 {
   if      (document.formLogin.UserIDText.value=="")   {alert ('Campo "User" valore obbligatorio !') }
   else if (document.formLogin.PassText.value=="")     {alert ('Campo "Password" valore obbligatorio !') }
   else    
   		{
		document.formLogin.method='POST';
		document.formLogin.AZ.value=LoginAZ;
		document.formLogin.PRO.value=LoginPRO;
		document.formLogin.TOT.value=LoginTOT;
		document.formLogin.CAR.value=LoginCAR;
		document.formLogin.action='../../bin/mercato' + TipoPrgMercato + v1 + '';
		document.formLogin.submit();
	   	}
 } 

function ReOpenTo(id,id1,id2,id3)
 {
	LoginPRO=id;
	LoginTOT=id1;
	LoginCAR=id2;
	LoginAZ=id3;	
 } 

function openToPayment(id,id1,id2)
{    
	if (GetCookie ('ID') == 'YES') 
    	{
		if (GetCookie ('PK') == null)
	   		{
			var truthBeTold = window.confirm("Attenzione lei è un utente già registrato per proseguire è necessario immettere UserName e Password nell' apposito box ed inviare i dati. Premere 'OK' per continuare nell'acquisto;   'Annulla' per sospendere temporaneamente");
	  		if (truthBeTold)
				{
				LoginAZ='Pay';
				LoginPRO=id;
				LoginTOT=id1;
				LoginCAR=id2;
				}	 
			}  
	  	else
	  		{
  			var Lival = GetCookie ('LI');
		    var Pkval = GetCookie ('PK');	    
			document.location.href='../../bin/mercato'+TipoPrgMercato+Lival+'?PK='+Pkval+'&AZ=Pay&PRO='+id+'&TOT='+id1+'&CAR='+id2+'';
		    }    	
         }
    else
    	{
		document.location.href='../../bin/mercato'+TipoPrgMercato+'utereg2?AZ=Pay&PRO='+id+'&TOT='+id1+'&CAR='+id2+'';
    	}
}

function OpenAccExpo()
{
    if (GetCookie ('ID') == 'YES') 
    	{
		if (GetCookie ('PK') == null)
				{
				var truthBeTold = window.confirm("Attenzione lei è un utente già registrato per proseguire è necessario immettere UserName e Password nell' apposito box ed inviare i dati. Premere 'OK' per continuare;   'Annulla' per sospendere temporaneamente");
	     	    if (truthBeTold) 
		        	{
					LoginAZ='Expo';
					}
	        	}
         else
	        	{
		        var Lival = GetCookie ('LI');
		        var Pkval = GetCookie ('PK');	
				if (Lival=='admexpo')
					{alert ('Attenzione Espositore già registrato!!!');}
				else
					{document.location.href='../../bin/mercato'+TipoPrgMercato+Lival+'?PK='+Pkval+'&AZ=Expo';}
	        	}
       	}
	else
       	{
  		document.location.href='../../bin/mercato'+TipoPrgMercato+'utereg2?AZ=Expo';
    	}
}
function OpenMsgText(v1,v3) 
 {
	window.open('../../bin/unipmsg' + TipoPrgUnipmsg + v1 + '?AZ=' + v3 + '','','height=300,width=265,menubar=0,resizable=0,scrollbars=1,status=0');
 }

function OpenMsgCont(v1,v2) 
 {
 	window.open('../../bin/unipmsg' + TipoPrgUnipmsg + v1 + '?AZ=' + v2 + '','','height=220,width=250,menubar=0,resizable=0,scrollbars=0,status=0'); 
 }

function CloseMsgText() 
 {
  window.close();
 }
// fine max

// Pubbliche
function getCookieVal (offset)
{
  var endstr = document.cookie.indexOf (';', offset );
  if (endstr == -1) endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
  
function GetCookie (nomeCookie)
{
  var arg = nomeCookie + '=';
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen)
  {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg) return getCookieVal (j);
    i = document.cookie.indexOf(' ', i) + 1;
    if (i == 0) break;
  }
  return null;
}   

function SetCookie (name, value) 
   {
   var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (2 < argc) ? argv[2] : null;
   var path = (3 < argc) ? argv[3] : null;
   var domain = (4 < argc) ? argv[4] : null;
   var secure = (5 < argc) ? argv[5] : false;
   document.cookie = name + "=" + escape (value) +
     ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
     ((path == null) ? "" : ("; path=" + path)) +
     ((domain == null) ? "" : ("; domain=" + domain)) +
     ((secure == true) ? "; secure" : "");
   }

function SetCookie2 (name, value) 
   {
   var argv = SetCookie2.arguments;
   var argc = SetCookie2.arguments.length;
   var expires = (2 < argc) ? argv[2] : null;
   var path = (3 < argc) ? argv[3] : null;
   var domain = (4 < argc) ? argv[4] : null;
   var secure = (5 < argc) ? argv[5] : false;
   document.cookie = name + "=" + escape (value) +
     ((expires == null) ? "" : ("; expires=" +  (24 * 60 * 60 * 1000 * 365))) +
     ((path == null) ? "" : ("; path=" + path)) +
     ((domain == null) ? "" : ("; domain=" + domain)) +
     ((secure == true) ? "; secure" : "");
   }

function DisplayInfo() 
 {
 if (GetCookie ('PK') == null)
  { 	
   document.write('<table border=0 cellpadding=0 cellspacing=0 background=../../images/login_bg.gif>');
   document.write('<form  action=javascript:CtrLogin('+'"login"'+') name=formLogin>');
   document.write('<tr>');
   document.write('<td width=15 rowspan=3>&nbsp;</td>');
   document.write('</tr>');
   document.write('<tr>');
   document.write('<td colspan=3 height=35 width=135 valign=top>');
   document.write('<b>UserName:</b><br>');
   document.write('<input name=UserIDText autocomplete=off maxlenght=64 border=0 size=17>');
   document.write('</td>');
   document.write('</tr>');
   document.write('<tr>');
   document.write('<td width=110 valign=top height=48>');
   document.write('<b>Password:</b><br>');
   document.write('<input type=Password name=PassText maxlenght=64 border=0 size=14>');
   document.write('<input type=hidden name=AZ>');
   document.write('<input type=hidden name=PRO>');
   document.write('<input type=hidden name=TOT>');
   document.write('<input type=hidden name=CAR>');
   document.write('</td>');
   document.write('<td width=30><input type="image" border="0" name="imageField" src="/images/login_submit.gif" width=30> </td>');
   document.write('</tr>');
   document.write('</form>');
   document.write('</table>');
   document.write('&nbsp;&nbsp;Area Privata');
   //document.write('&nbsp;&nbsp;<a href='+'javascript:ActionLink('+'"utereg"'+')'+'>Registrati ora</a><br>');
   //document.write('&nbsp;&nbsp;<a href="javascript:ForgotMyPassword()">Non ricordi la password?</a>');
  }
 else
  {
   document.write('<table width=155 border=0 cellpadding=0 cellspacing=0 background=../../images/logout_bg.gif>');
   document.write('<tr>');
   document.write('<td width=15 height=35 rowspan=3 >&nbsp;</td>');
   document.write('</tr>');
   document.write('<tr>');
   document.write('<td colspan=3 height=13 width=135 valign=top>');
   document.write('<a href="javascript:ReLogin()">La mia Home</a>');
   document.write('</td>');
   document.write('</tr>');
   document.write('<tr>');
   document.write('<td width=115 valign=top height=20>Chiudi sessione');
   document.write('</td>');
   document.write('<td width=25>');
   document.write('<a href='+'javascript:ActionLinkPK('+'"logout"'+',"mercato")'+'>');
   document.write('<img src=../../images/logout_submit.gif border=0></a>');
   document.write('</td>');
   document.write('</tr>');
   document.write('</table>'); 
 } 
}

function DisplayInfo2(v1) 
 {
  document.write('<table width=50 border=0 cellpadding=0 cellspacing=0 >');
  document.write('<tr>');
  if (v1=='')
   {
    document.write('<td><a href="javascript:DisplayInfo2()">Come funziona...</a></td>');

   }
  document.write('</tr>');
  document.write('</table>');
  document.location.reload;
}

function Logout() 
 {
   var expdate = new Date();
   expdate.setTime(expdate.getTime());
   SetCookie("PK", '', expdate, "/", null, false);
   SetCookie("AZ", '', expdate, "/", null, false);
   document.location.href = '../../index.asp';
}

function ReLogin() 
 {
   	var expdate = new Date();
   	expdate.setTime(expdate.getTime());
	var Lival = GetCookie ('LI');
   	var Pkval = GetCookie ('PK');
	document.location.href='../../bin/mercato'+TipoPrgMercato+Lival+'?PK='+Pkval+''+LoginAZ+'';
 }

function IndexGo()
 {
  document.location.href='../../index.asp'; 
 }

// fine pubbliche



function ForgotMyPassword(id) {
  if (id == null )
    {window.open("http://borsino.uniprom.it/invpass.htm","ForgotMyPassword","height=200,width=300,menubar=0,resizable=0,scrollbars=0,status=0");}
  else
    {document.MyPassword.action="http://borsino.uniprom.it/binpub/upfmail.exe/viamail";}
} 

function openVideo() {
  window.open("video/64_144.wmv","video"," height=425 ,width=450, top=20, left=20 menubar=0,resizable=0,scrollbars=0,status=0");
}

<!-- Hide from old browsers
var NN3 = false;
<!-- company_menu

	home = new Image(89,50);
        home.src = "../../images/bt_home_off.gif";

        homeon = new Image(89,50);
        homeon.src = "../../images/bt_home_on.gif"; 

	negozio = new Image(89,43);
        negozio.src = "../../images/bt_neg_off.gif";

        negozioon = new Image(89,43);
        negozioon.src = "../../images/bt_neg_on.gif";

	messaggi = new Image(88,42);
        messaggi.src = "../../images/bt_msg_off.gif";

        messaggion = new Image(88,42);
        messaggion.src = "../../images/bt_msg_on.gif";

	chisiamo = new Image(88,42);
        chisiamo.src = "../../images/bt_chisiamo_off.gif";

        chisiamoon = new Image(88,42);
        chisiamoon.src = "../../images/bt_chisiamo_on.gif";

	stampa = new Image(88,42);
        stampa.src = "../../images/bt_stampa_off.gif";

        stampaon = new Image(88,42);
        stampaon.src = "../../images/bt_stampa_on.gif";

	privacy = new Image(88,42);
        privacy.src = "../../images/bt_privacy_off.gif";

        privacyon = new Image(88,42);
        privacyon.src = "../../images/bt_privacy_on.gif";        

	condizioni = new Image(88,42);
        condizioni.src = "../../images/bt_condizioni_off.gif";

        condizionion = new Image(88,42);
        condizionion.src = "../../images/bt_condizioni_on.gif";

	sicurezza = new Image(88,42);
        sicurezza.src = "../../images/bt_sicurezza_off.gif";

        sicurezzaon = new Image(88,42);
        sicurezzaon.src = "../../images/bt_sicurezza_on.gif";

	info = new Image(88,42);
        info.src = "../../images/bt_info_off.gif";

        infoon = new Image(88,42);
        infoon.src = "../../images/bt_info_on.gif";

	produzione = new Image(88,42);
        produzione.src = "../../images/bt_produzione_off.gif";

        produzioneon = new Image(88,42);
        produzioneon.src = "../../images/bt_produzione_on.gif";

	prezzi = new Image(88,42);
        prezzi.src = "../../images/bt_prezzi_off.gif";

        prezzion = new Image(88,42);
        prezzion.src = "../../images/bt_prezzi_on.gif";

	toscana = new Image(88,42);
        toscana.src = "../../images/bt_toscana_off.gif";

        toscanaon = new Image(88,42);
        toscanaon.src = "../../images/bt_toscana_on.gif";

        legge = new Image(88,42);
        legge.src = "../../images/bt_legge_off.gif";

        leggeon = new Image(88,42);
        leggeon.src = "../../images/bt_legge_on.gif";

	title = new Image(88,42);
        title.src = "../../images/bt_title_off.jpg";

        titleon = new Image(88,42);
        titleon.src = "../../images/bt_title_on.jpg";

function on3(name)   
 {
   document[name].src = eval(name + "on.src");
 }

function off3(name)  {
        document[name].src = eval(name + ".src");
}
NN3 = true;

function on(name)  {
        if (NN3) on3(name);
}
function off(name)  {
        if (NN3) off3(name);
}


// STEFANO		STEFANO		STEFANO		STEFANO		STEFANO		STEFANO		STEFANO		STEFANO		STEFANO
var OggCookie = GetCookie('NumOgg');
var SpeCookie = GetCookie('TotSpe');

function Character(parola,numero) {    
   var pasN = parola.length;
   var appN = parola.charAt(pasN-1);	  
   if (!((appN=='0')||(appN=='1')||(appN=='2')||(appN=='3')||(appN=='4')||
   (appN=='5')||(appN=='6')||(appN=='7')||(appN=='8')||(appN=='9')))
    { 
	  document.all['textfield' + numero].value='1'; 
    }	
}

function MostraNeg(nom) {
	/*if (nom == 'HOME') {
		window.open('../../bin/negozio.exe/neg','_parent','');
	}

	if (nom == 'CARR') {
		window.open('../../bin/negozio.exe/AddCar?Pro='+pro+'&Qua='+qua+'','_parent','');
	}

	if (!((nom=='HOME')||(nom=='CARR'))) {
    		window.open('../../bin/negozio.exe/start?Cons='+nom+'','_parent','');
	}*/
	window.open('../../negozio/corneg.asp?Cons='+nom+'','_parent','');

}

function Controllo(valor,valorecam,num,pro){  
  if (valor == -1) {
  		if (valorecam<=0) {
			alert('Valore non valido');
			document.all['textfield' + num].value='1';
		}
		else {
			MostraNeg('CARR',pro,valorecam);
		}
  }
  else {
   		if (valorecam > valor) {
      		alert('Valore non valido');
	   		document.all['textfield' + num].value='1';
		}
		else { 
				if (valorecam<=0) {
					alert('Valore non valido');
	   				document.all['textfield' + num].value='1';
				}
				else {
					MostraNeg('CARR',pro,valorecam);
				}
  		} 	        
  } 
}

function CancellaProd(cod) {
     window.open('../../bin/negozio.exe/canc?Cod='+cod+'','_parent','');	
}

function Carrello(val) {
	document.write('<table width="147" border="0" height="76" cellpadding="0" cellspacing="0" align="center">');
	document.write('<FORM method="post" action="../../bin/negozio.exe/VediCar">');
	document.write('  <tr> ');
	document.write('    <td colspan="2" background="../../images/carr_bgu.gif" height="11"></td>');
	document.write('  </tr>');
	document.write('  <tr> ');
	document.write('    <td width="121" background="../../images/carr_bg.gif" height="46" align="right" > ');
	document.write('      <img src="../../images/Neg_qua.gif" width="16" height="16" vspace="0" hspace="0">&nbsp; ');
	document.write('      <input type="text" name="Ogg" value="'+OggCookie+'" border=0 style="width:60pt;text-align:right" disabled>');
	document.write('	  <br>');
	document.write('	  <img src="../../images/Neg_euro.gif" width="16" height="16" vspace="0" hspace="0">&nbsp;');
	document.write('	  <input type="text" name="Spe" value="'+SpeCookie+'" border=0 style="width:60pt;text-align:right" disabled>');
	document.write('    </td>');
	document.write('    <td rowspan="2" width="26" background="../../images/carr_bgr.gif" valign="bottom"> ');
	document.write('      <input type="image" border="0" name="carre" src="../../images/carr_submit.gif" width="25" height="25" align="absbottom">  ');
	document.write('    </td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td width="122" height="19" background="../../images/carr_bgd.gif">&nbsp;</td>');
	document.write('  </tr>');
	document.write('</FORM>');	
	document.write('</table>');	
}

function prod(val) {
	//window.open('../../bin/negozio.exe/prodotto?pro='+val+'','product','height=196,width=400,menubar=0,resizable=0,scrollbars=1,status=0');
	//window.open('../../bin/negozio.exe/prodotto?pro='+val+'','_parent','');
	window.open('../../negozio/prodotto.asp?pro='+val+'','_parent','');
}

function Vendi() {
	window.open('../../bin/negozio.exe/vendi','_parent','');
}

function OpenTab() {
	document.write('<table width="538" align="center" border=0 cellpadding=1 cellspacing=1>');
	document.write('<tr align="center">');
	document.write('    <td bgcolor="#BFC8E3" width="344"><b>&nbsp;Descrizione&nbsp;</b></td>');
	document.write('    <td bgcolor="#BFC8E3" width="76"><b>&nbsp;Produttore&nbsp;</b></td>');
	document.write('    <td bgcolor="#BFC8E3" width="50"><b>&nbsp;Prezzo&nbsp;</b></td>');
	document.write('    <td bgcolor="#BFC8E3" width="40"><b>&nbsp;Disp.&nbsp;</b></td>');
	document.write('	<td bgcolor="#BFC8E3" width="28"><b>&nbsp;Q.tà&nbsp;</b></td>');
	document.write('</tr>');	
}

function CloseTab() {
	document.write('</table>');
	document.write('<br><br>');	
}

function Cerca(v1) {
	window.open('../../bin/negozio.exe/cerca?Des=' + v1 + '','_parent','');
}

function  Produttore(v1) {
	window.open('../../bin/negozio.exe/prodre?Des=' + v1 + '','_parent','');
}


function Ric(v1) {
	var wdt = 538;
	if(v1=='H') { wdt = 450; }

    document.write('<table border="0" cellpadding="0" cellspacing="1" width="'+wdt+'" height="30" bgcolor="#000000" align="center">');
	document.write('<tr><td>');
	document.write('	<table border="0" cellpadding="0" cellspacing="1" width="'+(wdt-2)+'" height="28" bgcolor="#FFFFFF">');
	document.write('	<tr>');
	document.write('		<td valign="middle" width="100"> ');
	document.write('			&nbsp;<b>Ricerca prodotti:</b> ');
	document.write('		</td>');
	document.write('		<td width="78">');
	document.write('			&nbsp;<input type="text" name="ricerca" border=0 style="width:74px">');
	document.write('		</td>');
	document.write('		<td width="30">');
	document.write('			<a href="javascript:Cerca(ricerca.value)"> ');
	document.write('			<img src="../../images/search.gif" border="0" vspace="0" hspace="0" > ');
	document.write('			</a>');
	document.write('		</td>');
	document.write('		<td>');
	document.write('			Per ricercare un prodotto inserire la parola chiave relativa alla denominazione del prodotto.');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	</table>');
	document.write('</td></tr>');
	document.write('</table> ');
}
// fine STEFANO


// INIZIO JAVA MENU NEGOZIO

<!--	check browser	-->
	NS4=(document.layers) ? true : false;
	IE4=(document.all)?true:false;
	ver4 = (NS4 || IE4) ? true : false;
	function popUp(){return};
	function popDown(){return};
	areCreated=false;
	if (!ver4) event=null;

<!--	paint new menu	-->
	if (ver4) {
	menuWidth = 70;
	childOverlap = 3;
	childOffset = 5;
	perCentOver = null;
	secondsVisible = 0.5;
	fntCol = "#ffffff";
	overFnt = "#2B897E";
	fntSiz = "9px";
	fntWgh = "normal";
	fntSty = "normal";
	fntFam = "verdana";
	backCol = "#2B897E";
	overCol = "#cdc4a3";
	linHgt = "normal";
	borWid = 1;
	borCol = "#2B897E"
	borSty = "outset";
	imgSrc = "";
	imgSiz = 1;
	}
	
	
	arMenu1 = new Array(
	//"Olio di semi","../../bin/negozio.exe/start?Cons=conserve - olio di semi",0,
	//"Olio d'oliva","../../bin/negozio.exe/start?Cons=conserve - olio d'oliva",0
	"Olio di semi","../../negozio/corneg.asp?Cons=conserve - olio di semi",0,
	"Olio d'oliva","../../negozio/corneg.asp?Cons=conserve - olio d'oliva",0
	)
	
	arMenu2 = new Array(
	//"Filetti","../../bin/negozio.exe/start?Cons=affumicati - filetti",0,
	//"Tranci","../../bin/negozio.exe/start?Cons=affumicati - tranci",0,
	//"Affettato","../../bin/negozio.exe/start?Cons=affumicati - affettato",0
	"Filetti","../../negozio/corneg.asp?Cons=affumicati - filetti",0,
	"Tranci","../../negozio/corneg.asp?Cons=affumicati - tranci",0,
	"Intero","../../negozio/corneg.asp?Cons=affumicati - intero",0,
	"Affettato","../../negozio/corneg.asp?Cons=affumicati - affettato",0
	)
	
	arMenu3 = new Array(
	"Negozio","../../bin/negozio.exe/neg",0,
	"Carrello","../../bin/negozio.exe/VediCar",0
	)
	
	arMenu4 = new Array(
	"Negozio","../../bin/negozio.exe/neg",0,
	"Svuota carrello","../../bin/negozio.exe/canc?Cod=ALL",0
	)
	
	
	if (perCentOver != null) {
	childOverlap = (perCentOver/100) * menuWidth
}
mSecsVis = secondsVisible*200;

semi = ";";
styleStr = "<STYLE TYPE='text/css'>"
styleStr += ".items {"
styleStr += "width:" + menuWidth + semi
styleStr += "color:"+ fntCol + semi
styleStr += "font-size:"+ fntSiz + semi
styleStr += "font-weight:"+ fntWgh + semi
styleStr += "font-style:"+ fntSty + semi
styleStr += "font-family:"+ fntFam + semi
styleStr += "border-width:" + borWid + semi
styleStr += "border-color:" + borCol + semi
styleStr += "border-style:" + borSty + semi
styleStr += "line-height:" + linHgt + semi
styleStr += "}"
styleStr += "</STYLE>";
 
document.write(styleStr);

imgStr = "<IMG SRC=" + imgSrc + " WIDTH=" + imgSiz + " HEIGHT=" + imgSiz +" BORDER=0 VSPACE=2 ALIGN=RIGHT>"

topCount = 1;
areCreated = false;
isOverMenu = false;
currentMenu = null;
allTimer = null;

function menuSetup(hasParent,lastItem,openCont,openItem) {

	this.menuOver = menuOver;
	this.menuOut = menuOut;

	this.onmouseover = this.menuOver;
	this.onmouseout = this.menuOut;

	this.showIt = showIt;
	this.keepInWindow = keepInWindow;

	this.hideTree = hideTree
	this.hideParents = hideParents;
	this.hideChildren = hideChildren;
	this.hideTop = hideTop;
	
	this.hasChildVisible = false;
	this.isOn = false;
	
	this.hideTimer = null;

	if (hasParent) {
		this.hasParent = true;
		this.parentMenu = openCont;
		this.parentItem = openItem;
		this.parentItem.child = this;
	}
	else {
		this.hasParent = false;
		this.hideSelf = hideSelf;
	}

	if (NS4) {
		this.fullHeight = lastItem.top + lastItem.document.height;
		this.clip.bottom = this.fullHeight;
	}
	else {
	    this.fullHeight = lastItem.style.pixelTop + lastItem.offsetHeight;
		this.showIt(false);
		this.onselectstart = cancelSelect;
		this.moveTo = moveTo;
		this.moveTo(0,0);
	}
}

function itemSetup(arrayPointer,whichArray) {

	this.itemOver = itemOver;
	this.itemOut = itemOut;
	this.onmouseover = this.itemOver;
	this.onmouseout = this.itemOut;

	this.dispText = whichArray[arrayPointer];
	this.linkText = whichArray[arrayPointer + 1];
	this.hasMore = whichArray[arrayPointer + 2];

	if (this.linkText.length > 0) {
		this.linkIt = linkIt;
		if (NS4) {
			this.onfocus = this.linkIt;
		}
		else {
			this.onclick = this.linkIt;
			this.style.cursor = "hand";
		}
	}
      
	if (this.hasMore) {
		htmStr = imgStr + this.dispText;
	}
	else {
		htmStr = this.dispText;
	}

	if (NS4) {
		layStr = "<SPAN CLASS=items>" + htmStr+ "</SPAN>";
		this.document.write(layStr);
		this.document.close();

		this.bgColor = backCol;
		this.clip.right = menuWidth;
		this.visibility = "inherit";
		this.container = this.parentLayer;

		if (arrayPointer == 0) {
			this.top = 0;
		}
		else {
			this.top = this.prevItem.top + this.prevItem.document.height - borWid;
		}
		this.left = 0;
	}
	else {
		this.className = "items";
		this.style.padding = 3;
		this.innerHTML = htmStr;

		this.style.backgroundColor = backCol; 
		this.container = this.offsetParent;

		if (arrayPointer == 0) {
			this.style.pixelTop = 0;
		}
		else {
			this.style.pixelTop = this.prevItem.style.pixelTop + this.prevItem.offsetHeight - borWid;
		}
		this.style.pixelLeft = 0;
	}
}

function makeElement(whichEl,whichContainer) {
	if (arguments.length==1)
		whichContainer = (NS4) ? window : document.body;

	if (NS4) {
		eval(whichEl + "= new Layer(menuWidth,whichContainer)");
	}
	else {
		elStr = "<DIV ID=" + whichEl + " STYLE='position:absolute'></DIV>";
		whichContainer.insertAdjacentHTML("BeforeEnd",elStr);
	}

	return eval(whichEl);
}

function makeTop() {
	while(eval("window.arMenu" + topCount)) {
		topArray = eval("arMenu" + topCount);
		topName = "elMenu" + topCount;

		topMenu = makeElement(topName);
    	topMenu.setup = menuSetup;

		topItemCount = 0;
		for (i=0; i<topArray.length; i+=3) {
			topItemCount++;
			status = "Creazione menu in corso, attendere per favore: " + topCount + " / " + topItemCount;
			topItemName = "item" + topCount + "_" + topItemCount;
			topItem = makeElement(topItemName,topMenu);

			if (topItemCount >1)
				topItem.prevItem = eval("item" + topCount + "_" + (topItemCount-1));

			topItem.setup = itemSetup;
			topItem.setup(i,topArray);

			if (topItem.hasMore) makeSecond();
		}
		
		topMenu.setup(false,topItem);
		topCount++
	}

	status = (topCount-1) + " Creazione del menu completata"
	areCreated = true;
}

function linkIt() {
	location.href = this.linkText;
}

function showIt(on) {
	if (NS4) {this.visibility = (on) ? "show" : "hide"}
		else {this.style.visibility = (on) ? "visible" : "hidden"}
}

function keepInWindow() {
	scrBars = 20;

	if (NS4) {
		winRight = (window.pageXOffset + window.innerWidth) - scrBars;
		rightPos = this.left + menuWidth;
   
		if (rightPos > winRight) {
			if (this.hasParent) {
				parentLeft = this.parentMenu.left;
				newLeft = ((parentLeft-menuWidth) + childOverlap);
				this.left = newLeft;
			}
			else {
				dif = rightPos - winRight;
				this.left -= dif;
			}
		}

		winBot = (window.pageYOffset + window.innerHeight) - scrBars;
		botPos = this.top + this.fullHeight;

		if (botPos > winBot) {
			dif = botPos - winBot;
			this.top -= dif;
		}
	}
	else {
    	winRight = (document.body.scrollLeft + document.body.clientWidth) - scrBars;
		rightPos = this.style.pixelLeft + menuWidth;
	
		if (rightPos > winRight) {
			if (this.hasParent) {
				parentLeft = this.parentMenu.style.pixelLeft;
				newLeft = ((parentLeft - menuWidth) + childOverlap);
				this.style.pixelLeft = newLeft;
			}
			else {
				dif = rightPos - winRight;
				this.style.pixelLeft -= dif;
			}
		}

		winBot = (document.body.scrollTop + document.body.clientHeight) - scrBars;
		botPos = this.style.pixelTop + this.fullHeight;

		if (botPos > winBot) {
			dif = botPos - winBot;
			this.style.pixelTop -= dif;
		}
	}
}

function popUp(menuName,e,n){
	if (!areCreated) return;

	hideAll();
	currentMenu = eval(menuName);

	if (n == '1') {	
		currentMenu.moveTo(((document.body.offsetWidth-780)/2)+201,136);
	}

	if (n == '2') {	
		currentMenu.moveTo(((document.body.offsetWidth-780)/2)+457,136);
	}
	
	if( (n == '3')||(n == '4')){	
		currentMenu.moveTo(((document.body.offsetWidth-780)/2)+653,136);
	}

	currentMenu.keepInWindow()
	currentMenu.isOn = true;
	currentMenu.showIt(true);
}

function popDown(menuName){ 
	if (!areCreated) return;
	whichEl = eval(menuName);
	whichEl.isOn = false;
	whichEl.hideTop();
}

function menuOver() {
	this.isOn = true;
	isOverMenu = true;
	currentMenu = this;
	if (this.hideTimer) clearTimeout(this.hideTimer);
}

function menuOut() {
	if (IE4 && event.srcElement.contains(event.toElement)) return;
	this.isOn = false;
	isOverMenu = false;
	if (IE4) allTimer = setTimeout("currentMenu.hideTree()",10); 
}

function itemOver(){
	if (IE4 && event.srcElement.tagName == "IMG") return;

	if (NS4) {
		this.bgColor = overCol;
	}
	else {
		this.style.backgroundColor = overCol;
		this.style.color = overFnt;
	}
	
	if (this.container.hasChildVisible) {
		this.container.hideChildren(this);
	}            

	if(this.hasMore) {
		if (NS4) {
			this.childX = this.container.left + (menuWidth - childOverlap);
			this.childY = this.pageY + childOffset;
		}
		else {
			this.childX = this.container.style.pixelLeft + (menuWidth - childOverlap);
			this.childY = this.style.pixelTop + this.container.style.pixelTop + childOffset;
		}

		this.child.moveTo(this.childX,this.childY);
		this.child.keepInWindow();
		this.container.hasChildVisible = true;
		this.container.visibleChild = this.child;
		this.child.showIt(true);
	}
}


function itemOut() {
    if (IE4 && (event.srcElement.contains(event.toElement)
     || (event.fromElement.tagName=="IMG" && event.toElement.contains(event.fromElement))))
        return;

	if (NS4) {
		this.bgColor = backCol;
		if (!isOverMenu) {
			allTimer = setTimeout("currentMenu.hideTree()",10);
		}
	}
	else {
		this.style.backgroundColor = backCol;
		this.style.color = fntCol;
	}
}

function hideAll() {
	for(i=1; i<topCount; i++) {
		temp = eval("elMenu" + i);
		temp.isOn = false;
		if (temp.hasChildVisible) temp.hideChildren();
		temp.showIt(false);
	}	
}

function hideTree() { 
	allTimer = null;
	if (isOverMenu) return;
	if (this.hasChildVisible) {
		this.hideChildren();
	}
	this.hideParents();
}

function hideChildren(item) {
	if (this.visibleChild.hasChildVisible) {
		this.visibleChild.visibleChild.showIt(false);
		this.visibleChild.hasChildVisible = false;
	}

	if (!this.isOn || !item.hasMore || this.visibleChild != this.child) {
		this.visibleChild.showIt(false);
		this.hasChildVisible = false;
	}
}

function hideParents() {     

	if (this.hasParent) {
		this.showIt(false);
		if (this.parentMenu.hasParent) {
			this.parentMenu.isOn = false;		
			this.parentMenu.showIt(false);
			this.parentMenu.parentMenu.isOn = false;
			whichEl = this.parentMenu.parentMenu
		}
		else {
			this.parentMenu.isOn = false;
			whichEl = this.parentMenu;
		}
	}
	else {
		whichEl = this;
	}

	whichEl.hideTop();
}

function hideTop() {
	whichEl = this;
	this.hideTimer = setTimeout("whichEl.hideSelf()",mSecsVis);
}

function hideSelf() {
	this.hideTimer = null;
	if (!this.isOn && !isOverMenu) { 
		this.showIt(false);
	}
}

function cancelSelect(){return false}

function moveTo(xPos,yPos) {
	this.style.pixelLeft = xPos;
	this.style.pixelTop = yPos;
}

window.onload = makeTop;
	
function publicMsg() {
  window.open("../../new_message.asp","msg"," height=320 ,width=400, top=20, left=20 menubar=0,resizable=0,scrollbars=0,status=0");
	}
	
function messPublic()
 {			
	if (document.formIns.ProdText.value=="")    {alert ('Campo "Categoria prodotto" valore obbligatorio ! - The "Product category field"  it is compulsory !') ; vstato='N';}
	if (document.formIns.DescText.value=="")     {alert ('Campo "Oggetto" valore obbligatorio ! - The "Object field"  it is compulsory !') ; vstato='N';}
	if (document.formIns.TestoTextarea.value=="")     {alert ('Campo "Testo del Messaggio" valore obbligatorio ! - The "Text of the message field"  it is compulsory !') ; vstato='N';}

 
 else 	
	{
	document.formIns.method='POST';		
	document.formIns.action='../../bin/mercato.exe/messpublic';
	document.formIns.submit();
	}
}	
	
	
