/* jQuery Scroll*/ 
function smoothScroll() {
	if($.browser.opera){$('html').animate({
		scrollTop: $('#work').offset().top
	}, 2000);
}
	else $('html,body').animate({
		scrollTop: $('#work').offset().top
	}, 2000);
}


/* Contact Form Validation */
function validateContact(frmCaptcha) {
  if(frmCaptcha.name.value == "") {
    alert("Please enter your Name.");
    frmCaptcha.name.focus();
	return false;
  }
  if(frmCaptcha.company.value == "") {
    alert("Please enter your Company Name.");
    frmCaptcha.company.focus();
	return false;
  }
  if(frmCaptcha.title.value == "") {
    alert("Please tell us your Title.");
    frmCaptcha.title.focus();
	return false;
  }
  if(frmCaptcha.phone.value == "") {
    alert("Please provide a Telephone Number.");
    frmCaptcha.phone.focus();
	return false;
  }
  if(frmCaptcha.fax.value == "") {
    alert("Please provide a Fax Number (enter 'None' if you do not have one)");
    frmCaptcha.fax.focus();
	return false;
  }
  if(frmCaptcha.emailAddy.value == "") {
    alert("Please enter an Email Address.");
    frmCaptcha.emailAddy.focus();
	return false;
  }
  if(frmCaptcha.emailAddy.value.indexOf('@',0) < 0) {
    alert("Please enter a valid Email Address.");
    frmCaptcha.emailAddy.focus();
	return false;
  }
  if(frmCaptcha.number.value == "") {
    alert("Please enter the Verification Code.");
    frmCaptcha.number.focus();
	return false;
  }
  return true;
}

/* Next Script */