<!--
// Sri Sathya System
// http://www.sathsys.com
// No part of this snippet should be used without written permission of Sri Sathya System.
// For queries write to jSnip@sathsys.com

function frmVldate() {

  if(document.den.ud1.selectedIndex == 0) {
 	alert("Please select your Title");
	document.den.ud1.focus();
	return false;
  }

 if(!chkField("ud2", "Your Name Can't be left Empty. Please enter your Name","t", "\n\nIncorrect Name! Please recheck.\n\n\nNote\n *The characters a-z A-Z ,. are only allowed\n *Name should start with a character",1)) return false;
  if(document.den.ud2.value.length > 50) {
 	alert("The Number of characters in the Name field has exceeded the limit of 50.\n\nMake sure that you don't have more than 50 characters.");
	document.den.ud2.focus();
	return false;
  }

  if(document.den.ud3.value.length > 50) {
 	alert("The Number of characters in the Town/Country field has exceeded the limit of 50.\n\nMake sure that you don't have more than 50 characters.");
	document.den.ud3.focus();
	return false;
  }

  if(document.den.ud4.value.length > 10) {
 	alert("The Number of characters in the Postcode field has exceeded the limit of 10.\n\nMake sure that you don't have more than 10 characters.");
	document.den.ud4.focus();
	return false;
  }

  if(!chkField("ud5", "E-Mail Can't be left Empty. Please enter your E-Mail to proceed","e", "Either the E-Mail you've entered is incorrect or it contains invalid Characters.\n\nNote:\n *The E-Mail should be in you@domain.com format. \n *The characters _-.@ 0-9 a-z A-Z are only allowed",1)) return false;
  if(document.den.ud5.value.length > 50) {
 	alert("The Number of characters in the Email field has exceeded the limit of 50.\n\nMake sure that you don't have more than 50 characters and your email is correct.");
	document.den.ud5.focus();
	return false;
  }

  if(document.den.ud6.value.length > 15) {
 	alert("The Number of characters in the Reference field has exceeded the limit of 15.\n\nMake sure that you don't have more than 15 characters.");
	document.den.ud6.focus();
	return false;
  }

  if(!confirm('Is your email address: \n\n' + document.den.ud5.value + '\n\ncorrect and that you want to proceed with the Scam Exam?\n\nImportant Note:\nPlease double check that this email address as displayed above is completely correct in every detail, and if not please select "Cancel", make changes to your email address and then resubmit')) {
	document.den.ud5.focus();
	return false;
  }

  return true;
}
// http://www.sathsys.com
-->