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;



   function ValidateForm(f){

      with(f){
         if (isEmpty(_1_Name.value)) {
            alert("Please enter your Name");
            _1_Name.focus();
            return false;
         }

         if (isEmpty(_2_Email_From.value)) {
            alert("Please enter your Email Address");
            _2_Email_From.focus();
            return false;
         }

         if ( !isEmail(_2_Email_From.value) ) {
            alert("Please enter a valid Email Address.");
            _2_Email_From.focus();
            return false;
         }
		 
		 if (isEmpty(_3_Phone.value)) {
            alert("Please enter your phone number");
            _3_Phone.focus();
            return false;
         }
		 
		if (isEmpty(_4_Address.value)) {
            alert("Please enter your Address");
            _4_Address.focus();
            return false;
         }
		 
		if (isEmpty(_5_Suburb.value)) {
			alert("Please enter your Suburb");
			_5_Suburb.focus();
			return false;
		 }
		 
		 if (isEmpty(_6_State.value)) {
			alert("Please enter your Suburb");
			_6_State.focus();
			return false;
		 }
		 
		 if (isEmpty(_7_Comments.value)) {
			alert("Please enter your Enquiry");
			_7_Comments.focus();
			return false;
		 }	
       
   	}
   return true;
 }