function VisualizzaErrore2(param)
{
	if( window.document.all) {
		if(param.charAt(0) == "E" ) 
		{ 
		window.parent.top.document.frames['mainfrm_centrale'].document.frames['topFrame'].document.all.form_board_err.style.backgroundColor ="#FFFF99";
		window.parent.top.document.frames['mainfrm_centrale'].document.frames['topFrame'].document.all.form_board_err.style.color ="#FF0000"; 
		}
		else
		{
		window.parent.top.document.frames['mainfrm_centrale'].document.frames['topFrame'].document.all.form_board_err.style.backgroundColor ="#E0EADB";
		window.parent.top.document.frames['mainfrm_centrale'].document.frames['topFrame'].document.all.form_board_err.style.color ="#6A715B"; 
		} 
	   window.parent.top.document.frames['mainfrm_centrale'].document.frames['topFrame'].document.all.form_board_err.value=param.substring(1, param.length);
	}	else {
		var labErrore = window.parent.top.document.documentElement.childNodes[1].childNodes[3].contentDocument.documentElement.childNodes[1].childNodes[3].childNodes[1].contentDocument.getElementById('form_board_err');
		if(param.charAt(0) == "E" ) 
		{ 
		labErrore.style.backgroundColor ="#FFFF99";
		labErrore.style.color ="#FF0000";
		}
		else
		{
		labErrore.style.backgroundColor ="#E0EADB";
		labErrore.style.color ="#6A715B";
		} 
		labErrore.value=param.substring(1, param.length);	
	}
	
   

}


function SalvaPosizione()
{
   window.document.all.y_pos.value = document.body.scrollTop;
}


function addCart( idprod, posizione )
{
   var qta;
   if( window.document.getElementById('qta'+posizione.toString()) ) {
      qta="idProd=" + idprod + "&qtaProd=" + window.document.getElementById('qta'+posizione.toString()).value;
      window.document.getElementById('qta'+posizione.toString()).value="";
      }
   else
      qta="idProd=" + idprod ;
   window.open('msg_addcart.aspx?'+qta, '_blank','width=350,height=240');
}