function externalLinks() 
{ 
   var anchor;

   if (!document.getElementsByTagName) { return; }

   var anchors = document.getElementsByTagName("a");
 
   for (var i = 0; i < anchors.length; i++) 
   { 
      anchor = anchors[i]; 
      
      if (anchor.getAttribute("href") && anchor.getAttribute("rel") === "external") 
      {
         anchor.target = "_blank"; 
      }
   } 
} 


function contactformSubmit()
{
   if (Validate('contactform'))
   {
      document.contactform.submit();
   }
}

function estimatequotationformSubmit()
{
   if (Validate('estimatequotationform'))
   {
      document.estimatequotationform.submit();
   }
}

window.onload = externalLinks;
