function sendContact()
{
  if (this.email != undefined && this.email.value == '') {
	alert('Debes ingresar tu dirección de correo');
	return false;
  }
  
  if (this.msg_content.value == '') {
	alert('Debes ingresar un mensaje');
	this.msg_content.focus();
	return false;
  }
  new Ajax.Updater( 'ctn_confirm_msg',
				     this.action,
					 { asynchronous:true,
					   evalScripts:true,
					   onLoading:function(request, json)
					   { $('ctn_confirm_msg').update('<div align=\"center\"><img src=\"' + small_loader +'\" alt=\"Cargando\" /></div>')
					   },
					   parameters:Form.serialize(this)
					 });
  if (this.email != undefined) {
	  this.email.value = '';
  }
  this.subject.value = '';
  this.msg_content.value = '';
  //this.subject.focus();
  return false;
}
function initSendContact()
{
  
  var frm_ad_contact = $('frm_ad_contact');
  //alert (frm_ad_contact);
  if (frm_ad_contact != undefined) {
    frm_ad_contact.onsubmit = sendContact;
  }
  	
}

Event.observe(window, 'load', initSendContact, false);