	<!-- 
	var wChild = null;
	var wLoaded = false;

	function wOpen(cookie, w, h){
		xLeft=(screen.width)?(screen.width-w)/2:0;
		xTop=(screen.height)?(screen.height-h)/2:0;
		xSettings = 'height='+h+',width='+w+',top='+xTop+',left='+xLeft+',minbutoom=no,scalable=no,scrollbars=yes,resizable=no'
		wChild = window.open(cookie,"cookie",xSettings);
		if(wChild.window.focus){wChild.window.focus();}
		wLoaded = true;
		}

	function wClose(){
		if (wLoaded){
			wChild.close();
			wLoaded = false;
			}
		}

	function nostock(file){
		window.open(file,'423424','status=0,toolbar=0,menubar=0,scrollbars=0,directories=0,left=100,top=100,width=400,height=200');
		}

	function formHandler(strUrl){
		var selcateg = document.ctgForm.luz.options[document.ctgForm.luz.selectedIndex].value;
		window.location.href = strUrl + selcateg;
		}

	var Ajax;
	if(window.XMLHttpRequest)
		Ajax=new XMLHttpRequest(); //mozilla
	else if(window.ActiveXObject)
		Ajax=new ActiveXObject("Microsoft.XMLHTTP"); //microsoft
		
function cargaURL(codiproducte)
{
	val = document.getElementById('tam_id').value; 
	

	var cod = codiproducte; 

    var valordepende = document.getElementById('grosor') 
	
	if (valordepende==null)
	{
		var x = null;
	}
	else{    var x = valordepende.value;}
	
	Ajax.open("GET", "buscarpreu.php?art_id="+cod+"&tam_id="+val); 
	Ajax.onreadystatechange = function()
	{
		if (Ajax.readyState!=4)return;
		if (Ajax.status==200)
		{
			document.getElementById('mostrapreu').innerHTML = Ajax.responseText;
		}
	}
	Ajax.send(null)
}
function cargaCombo(codiproducte)
{
	Ajax.open("GET", "cargar_combo.php?clr_id="+codiproducte); 
	Ajax.onreadystatechange = function()
	{
		if (Ajax.readyState!=4)return;
		if (Ajax.status==200)
		{
			document.getElementById('mostrarCombo').innerHTML = Ajax.responseText;
		}
	}
	Ajax.send(null)

}