function objetoAjax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
  		}
	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function asignaPrecio(id_prod, clases, atributos){
	//Mostrara un mensaje si la combinacion escogida tiene oferta
	divPrecio= document.getElementById('capa_precio');		//donde se mostrará el resultado
	divPrecio.style.display='block';
	//campo = document.FrmAtrib.precio_prod.value;		//donde se mostrará el resultado
	ajax1 = objetoAjax();									//instanciamos el objetoAjax
	//clavea = document.QForm.lstMake.value;

	ajax1.open("POST", "asigna_precio.php",true);
	ajax1.onreadystatechange=function() {
		if (ajax1.readyState==4) {
			//mostrar resultados en esta capa
			divPrecio.innerHTML = ajax1.responseText;   
		}
	}
	ajax1.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	//enviando los valores
 	ajax1.send("idProd="+id_prod+"&clases="+clases+"&atributos="+atributos);
}