// JavaScript Document

		function chkFName( obj )
		{
			var fname = obj.value;
			
			var spc_pos = fname.indexOf( " " );
			if ( spc_pos != -1 && spc_pos != fname.length-1 )
			{
				return false;
			}
			
			return true;
		}
		function chkLName( obj )
		{
			var lname = obj.value;
			
			var spc_pos = lname.indexOf( " " );
			if ( spc_pos != -1 && spc_pos != lname.length-1 )
			{
				return false;
			}
			if ( lname.indexOf( "-" ) != -1 )
			{
				return false;
			}
			
			return true;
		}
		function doSubmit()
		{
			//alert( 'We apologize for the inconvenience ... but our site is currently unavailable as a result of some emergency database maintenance.  We will resume service in approx. 2 hrs. (10/8/2009 3:51 PM EDT)' );
			//return false;
			
			var frm = document.forms[0];
			
			if ( frm.stf__firstname.value == "" )
			{
				alert( "First Name is required" );
				frm.stf__firstname.focus();
				return false;
			}
			if ( !chkFName( frm.stf__firstname ) )
			{
				alert( "Please use first name only, do not add middle name or initials or spaces" );
				frm.stf__firstname.focus();
				return false;
			}
			if ( frm.stf__lastname.value == "" )
			{
				alert( "Last Name is required" );
				frm.stf__lastname.focus();
				return false;
			}
			if ( !chkLName( frm.stf__lastname ) )
			{
				alert( "Please provide last name only, No hyphenated names, Jr. or Generation or spaces, for hyphenated or two surnames use the first surname only." );
				frm.stf__lastname.focus();
				return false;
			}
			if ( frm.stf__state.options[ frm.stf__state.selectedIndex ].value == "" )
			{
				alert( "State is required" );
				frm.stf__state.focus();
				return false;
			}
			if ( frm.captcha.value == "" )
			{
				alert( "You must verify the image first" );
				frm.captcha.focus();
				return false;
			}
			
			frm.submit();
		}
		function Zsealkj3qf4af(){
			var loc = String( window.location );
			var vld = 'http://www.integrascan.com';
			var hsh = null;
			var fldname = null;
			//check to see if the domain is valid
			if ( loc.substring(7,vld.length) != vld )
			{
				$.get('/_proxyprev.php?act=invalid_domain&value=' + escape( loc ) );
				
				/*
				//make the call to our server-side script to generate and return the hash
				$.get('/_proxyprev.php', function(data) {
				  //$('div#AF32lkfa3f3q3ASD').html+=data;
				  $('#AF32lkfa3f3q3ASD').append( data );
				});
				*/
			}
		}
