function ValidateContactForm()
{
    var myForm;
    myForm=document.forms[1];
    if(myForm.name.value=="")
    {
        alert("Enter your name!");
        myForm.name.focus();
        return false;
    }
		
		if ( (myForm.email.value != "") && (myForm.email.value.indexOf ('@',0) == -1 || myForm.email.value.indexOf ('.',0) == -1)){      
              alert("Email address seems incorrect.");
              myForm.email.focus();
              return false;
    }
		
    if(myForm.email.value=="")
    {
        alert("Enter your E-mail!");
        myForm.email.focus();
        return false;
    }
    if(myForm.message.value=="")
    {
        alert("Enter your message!");
        myForm.message.focus();
        return false;
    }

}
function externalLinks()
{
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

