// JavaScript Document
function nuevoAjax(){
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 comp(){
var contenedor;
var s=document.getElementById("selectcom").options[document.getElementById("selectcom").selectedIndex].value;
contenedor = document.getElementById('consumer');
ajax=nuevoAjax();
ajax.open("GET", "ajax/formr.php?is="+s, true);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
contenedor.innerHTML = ajax.responseText
}
}
ajax.send(null)
}

function trueckeck(){
var c=0
if(document.form1.privacy.checked == false){
c=1
}
if(c==0){
document.form1.submit(); 
}
}




