// JavaScript Document ----   BASIC VALIDATIONS  -----

//  1) Email validation ---------------
function checkEmailFormat(str) 
	{
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
			testresults=true
		else
			{
				//alert("Please input a valid email address!")
				testresults=false
			}
		return (testresults)
	}
// --------------------------------------

//  2) Empty validation ------------------
function isEmpty(s)
	{   
		return ((s == null) || (s.length == 0))
	}
// ----------------------------------------

//  3) Checking for White space -------------
function isWhitespace(s)
	{   
		var reWhitespace = /^\s+$/;
		return (isEmpty(s) || reWhitespace.test(s));
	}
// -----------------------------------------------
//  4) 