/*****************************************************
 * Common Javascript functions                       *
 *****************************************************/

function np() {
 return void(0)
}

function chkForm() {
 email = document.getElementById("email")
 fullName = document.getElementById("fullName")
 company = document.getElementById("company")
 title = document.getElementById("title")
 countryId = document.getElementById("countryId")

 var chkFilter=/\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/;
 if (!(chkFilter.test(email.value))) {
  alert("Please enter a valid Email");
  email.focus();
  return false;
 }

 if (fullName.value == "") {
  alert("Please enter your Full Name");
  fullName.focus();
  return false;
 }

 if (company.value == "") {
  alert("Please enter your Company");
  company.focus();
  return false;
 }

 if (title.value == "") {
  alert("Please enter your Title");
  title.focus();
  return false;
 }

 if (countryId.value == "0") {
  alert("Please enter your Country");
  countryId.focus();
  return false;
 }
}

function chkDownload() {
 email = document.getElementById("email")
 orderNum = document.getElementById("orderNum")

 var chkFilter=/\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/;
 if (!(chkFilter.test(email.value))) {
  alert("Please enter a valid Email");
  email.focus();
  return false;
 }

 if (orderNum.value == "") {
  alert("Please enter your Order number");
  orderNum.focus();
  return false;
 }
}