
function check_query(){
	var val = $("#query").val();
	if(val.length < 1){
		return false;
	}else{
		return true;
	}
}


function send_post(){
       $("#email_form").hide();
       $("#captcha_form").hide();
       $("#texto_span").hide();

       var salida=true;

       if( document.f1.FCKeditor1.value.length < 10 ){
               $("#texto_span").show();
               salida = false;
       }

       if( document.f1.alerta.checked==1 ){
               var email = document.f1.email
               var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
               if (!filter.test(email.value)) {
                       $("#email_form").show();
                       email.focus()
                       salida = false;
               }
       }

		if(document.f1.captcha_code){
		if( document.f1.captcha_code.value.length < 4 ){
			   $("#captcha_form").show();
			   document.f1.captcha_code.focus()
			   salida = false;
		}
		}

       if(salida){document.f1.submit();}
}


function send_post_contact(){
	
       $("#email_form").hide();
       $("#captcha_form").hide();
       $("#texto_span").hide();

       var salida=true;

       if( $("#txt").val().length < 10 ){
               $("#texto_span").show();
               salida = false;
       }

	   var email = document.f1.email
	   var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	   if (!filter.test(email.value)) {
			   $("#email_form").show();
			   email.focus()
			   salida = false;
	   }

		if(document.f1.captcha_code){
		if( document.f1.captcha_code.value.length < 4 ){
			   $("#captcha_form").show();
			   document.f1.captcha_code.focus()
			   salida = false;
		}
		}

       if(salida){document.f1.submit();}
	
}