//Place Time/Date Stamp
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate = new Date();
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
weekday= myweekday;
myyear= mydate.getFullYear();
year = myyear;
myhours = mydate.getHours();
ampmhour = (myhours > 12) ? myhours - 12 : myhours;
ampm = (myhours >= 12) ? ' PM' : ' AM';
mytime = mydate.getMinutes();
myminutes = ((mytime < 10) ? ':0' : ':') + mytime;
if(myday == 0)
day = " Sunday, ";
else if(myday == 1)
day = " Monday, ";
else if(myday == 2)
day = " Tuesday, ";
else if(myday == 3)
day = " Wednesday, ";
else if(myday == 4)
day = " Thursday, ";
else if(myday == 5)
day = " Friday, ";
else if(myday == 6)
day = " Saturday, ";
if(mymonth == 0) {
month = "January ";}
else if(mymonth ==1)
month = "February ";
else if(mymonth ==2)
month = "March ";
else if(mymonth ==3)
month = "April ";
else if(mymonth ==4)
month = "May ";
else if(mymonth ==5)
month = "June ";
else if(mymonth ==6)
month = "July ";
else if(mymonth ==7)
month = "August ";
else if(mymonth ==8)
month = "September ";
else if(mymonth ==9)
month = "October ";
else if(mymonth ==10)
month = "November ";
else if(mymonth ==11)
month = "December ";
// End -->
// Place MouseOver Script
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >= 3) ||
 (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3";
else br = "n2";

if (br== "n3"){
img1on = new Image();
img1on.src = "images/nav/aboutUs2.gif";
img2on = new Image();
img2on.src = "images/nav/contract2.gif";
img3on = new Image();
img3on.src = "images/nav/welding2.gif";
img4on = new Image();
img4on.src = "images/nav/case2.gif";
img5on = new Image();
img5on.src = "images/nav/contact2.gif";
img6on = new Image();
img6on.src = "images/nav/facility2.gif";
img7on = new Image();
img7on.src = "images/nav/home2.gif";
img8on = new Image();
img8on.src = "images/nav/quality2.gif";

img1off = new Image();
img1off.src = "images/nav/aboutUs.gif";
img2off = new Image();
img2off.src = "images/nav/contract.gif";
img3off = new Image();
img3off.src = "images/nav/welding.gif";
img4off = new Image();
img4off.src = "images/nav/case.gif";
img5off = new Image();
img5off.src = "images/nav/contact.gif";
img6off = new Image();
img6off.src = "images/nav/facility.gif";
img7off = new Image();
img7off.src = "images/nav/home.gif";
img8off = new Image();
img8off.src = "images/nav/quality.gif";

}

function imgAct(imgName) {
 if (br == "n3") {
 document[imgName].src = eval(imgName + "on.src");
 }
}
function imgInact(imgName) {
 if (br == "n3") {
 document[imgName].src = eval(imgName + "off.src");
 }
}
// -->
//Contact Form Validation
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.name.value == "")
  {
    alert("Please enter your Name.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.company.value == "")
  {
    alert("Please enter the name of your Company.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.address.value == "")
  {
    alert("Please enter your Address.");
    theForm.address.focus();
    return (false);
  }

  if (theForm.city.value == "")
  {
    alert("Please enter the City.");
    theForm.city.focus();
    return (false);
  }

  if (theForm.state.value == "")
  {
    alert("Please enter the State or Province.");
    theForm.state.focus();
    return (false);
  }

  if (theForm.zip.value == "")
  {
    alert("Please enter the Zip or Postal Code.");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.country.value == "")
  {
    alert("Please enter the Country.");
    theForm.country.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("Please enter your Work Phone Number.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter your Email Address.");
    theForm.email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@-_.";
  var checkStr = theForm.email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter a valid Email Address.");
    theForm.email.focus();
    return (false);
  }
  return (true);
}
//End Validation