function SendMail(f)
	{
	 
	 // Validate Question
	 if( f.txtName.value == "")
		{
		 alert("Please type your Name!!");
		 f.txtName.focus();
		 return;
		 }
		 
	// Validate e-mail
	if(f.txtEmail.value == "")
		{
		 alert("Please type your email!!");
		 f.txtEmail.focus();
		 return;
		}
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(f.txtEmail.value))
		{
		 	
		 //return (true);
		}
		else 
		{ 
		  alert("Invalid E-mail Address! Please re-enter.")
		  return;
		}
		
	 // Validate subjects
	 
	 if( f.txtComment.value == "")
		{
		 alert("Please type a requirement!!");
		 f.txtComment.focus();
		 return;
		 }
		 else
		 	f.submit();
	
	 	
		
	}


function getObject(obj) {
  var theObj;
  if(document.all) {
    if(typeof obj=="string") {
      return document.all(obj);
    } else {
      return obj.style;
    }
  }
  if(document.getElementById) {
    if(typeof obj=="string") {
      return document.getElementById(obj);
    } else {
      return obj.style;
    }
  }
  return null;
}

//Contador de caracteres.
function Contar(entrada,salida,texto,caracteres) {
  var entradaObj=getObject(entrada);
  var salidaObj=getObject(salida);
  var longitud=caracteres - entradaObj.value.length;
  if(longitud <= 0) {
    longitud=0;
    texto='<span class="disable"> '+texto+' </span>';
    entradaObj.value=entradaObj.value.substr(0,caracteres);
  }
  salidaObj.innerHTML = texto.replace("{CHAR}",longitud);
}


//Blocking HTML tags.
function BlockKey()
{
 var isNS4 = (navigator.appName=="Netscape")?1:0;
 if(!isNS4)
	{
	 if ((event.keyCode == 60) || (event.keyCode == 62))
		 event.returnValue = false;
	 }
  else
	{
	 if ((event.which == 60) || (event.which == 62))
	 return false;
	 }	
 }