<!-- 


a1=new Image(95,52); a1.src="/wes/images/home_off.jpg"
a2=new Image(95,52); a2.src="/wes/images/home_on.jpg"
a3=new Image(95,52); a3.src="/wes/images/home_down.jpg"
a4=new Image(95,52); a4.src="/wes/images/about_off.jpg"
a5=new Image(95,52); a5.src="/wes/images/about_on.jpg"
a6=new Image(95,52); a6.src="/wes/images/about_down.jpg"
a7=new Image(95,52); a7.src="/wes/images/services_off.jpg"
a8=new Image(95,52); a8.src="/wes/images/services_on.jpg"
a9=new Image(95,52); a9.src="/wes/images/services_down.jpg"
a10=new Image(95,52); a10.src="/wes/images/portfolio_off.jpg"
a11=new Image(95,52); a11.src="/wes/images/portfolio_on.jpg"
a12=new Image(95,52); a12.src="/wes/images/portfolio_down.jpg"
a13=new Image(95,52); a13.src="/wes/images/contact_us_off.jpg"
a14=new Image(95,52); a14.src="/wes/images/contact_us_on.jpg"
a15=new Image(95,52); a15.src="/wes/images/contact_us_down.jpg"
a16=new Image(254,237); a16.src="/wes/images/main_keyboard.jpg"


function changeImage( imageName, newImageSRC )
{
  document.images[imageName].src = newImageSRC
}

function ExplorerFix()
{
  for ( a in document.links )
    document.links[a].onfocus = document.links[a].blur;
}

if ( document.all ) {
  document.onmousedown = ExplorerFix;
}


function IsEmailValid(FormName,ElemName)  //Checks validity of email
{
  var EmailOk  = true
  var Temp     = document.forms[FormName].elements[ElemName]
  var AtSym    = Temp.value.indexOf('@')
  var Period   = Temp.value.lastIndexOf('.')
  var Space    = Temp.value.indexOf(' ')
  var Quote    = Temp.value.indexOf('\'')
  var Length   = Temp.value.length - 1   // Array is from 0 to length-1
  
  if ( (AtSym < 1) ||                     // '@' cannot be in first position
      (Period <= AtSym+1) ||             // Must be atleast one valid char btwn '@' and '.'
      (Period == Length ) ||             // Must be atleast one valid char after '.'
      (Space  != -1)      ||             // No empty spaces permitted
      (Quote != -1)       ||             // No Quotation Allowed
      (Length == 0) )                    // Must be something in Email Field
     {  
        EmailOk = false
        alert('Please enter a valid e-mail address!')
        Temp.focus()
     }
  return EmailOk
}
//-->
