function newAjax()
{
    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 suscribe()
{
      sw=true;
    if(!is_validate ('subs_name', 'text', 'input1', 'input1', true, 'Nombre es requerido', 'Error de tipo')) sw=false; 
    if(!is_validate ('subs_email', 'email', 'input1', 'input1', true, 'E-mail es requerido', 'E-mail es incorrecto')) sw=false; 
    if (sw) 
        {
            var subs_name = document.getElementById('subs_name').value;
            var subs_email = document.getElementById('subs_email').value;
            var divBulletin = document.getElementById('divBulletin');
            var divWait = document.getElementById('divWait');
            divBulletin.innerHTML = divWait.innerHTML;
                    ajax = newAjax();
                    ajax.open("POST", "/conacine/code/execute/suscribeAdd.php",true);        
                    ajax.onreadystatechange=function() {
                                                          if (ajax.readyState==4) { 
                                                            divBulletin.innerHTML=ajax.responseText;
                                                            }
                                                        }  
                    ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                    ajax.send('subs_name='+subs_name+'&subs_email='+subs_email);
        }
}