$(document).ready(function() {
/*  $(".formainput").val("");
//  $(".formainput[value!='']").css("background","none"); //Fondo blanco
  $(".formainput").mouseover(function() {
      var myClass = $(this).attr("id");
      if ($(this).get(0).value=="") {
        $(this).removeClass(myClass);
      }
    });
  $(".formainput").focusin(function() {
      var myClass = $(this).attr("id");
      if ($(this).get(0).value=="") {
        $(this).removeClass(myClass);
      }
    });
  $(".formainput").keypress(function() {
      var myClass = $(this).attr("id");
      if ($(this).get(0).value=="") {
        $(this).removeClass(myClass);
      }
    });
  $(".formainput").mouseout(function() {
      var myClass = $(this).attr("id");
      if ($(this).get(0).value=="") {
        $(this).addClass(myClass);
      }
  });
  $(".formainput").focusout(function() {
      var myClass = $(this).attr("id");
      if ($(this).get(0).value=="") {
        $(this).addClass(myClass);
      }
  });
  $(".formainput").blur(function() {
      var myClass = $(this).attr("id");
      if ($(this).get(0).value=="") {
        $(this).addClass(myClass);
      }
  });
  $(".formainput").change(function() {
      var myClass = $(this).attr("id");
      if ($(this).get(0).value=="") {
        $(this).addClass(myClass);
      } else {
        $(this).removeClass(myClass);
      }
  });*/
  
  
  $("#form_index_datos_personales").submit(function(event) {
    event.preventDefault();
//    muestra_ajax(document.getElementById('divpop'),'<?= base_url(); ?>index.php/registro/mini_datos_personales','post');
  	cposcura=document.createElement('div');
  	cposcura.id='negra';
  	cpmensaje=document.createElement('div');
  	cpmensaje.id='pop';
  	cposcura.onclick=destruye_ajax;
		cpmensaje.style.top='0px';
		//o.appendChild(cpmensaje);
		cpmensaje.style.left=parseInt((document.documentElement.clientWidth/2)-237.5)+'px';
		cpmensaje.style.top=document.documentElement.scrollTop+parseInt(document.documentElement.clientHeight/4)+'px';
		document.body.appendChild(cposcura);
		document.body.appendChild(cpmensaje);
//    $("body").append("<div id='negra' onclick='destruye_ajax()'></div><div id='pop'></div>");
    _Llamada_Ajax_nova($("#form_index_datos_personales").attr("action"),"#form_index_datos_personales","#pop");
  });
  
  $(".right_arrow").hover(
    function() {
  },
    function() {
  });
  
});
