	
		
	function validateForm() {
		with (document.main) {
		
		
			if (access_key.value.length == 0) {
				alert("Access Key is required.");
				access_key.value = '';
				access_key.focus();
				return false;
			}
			
			if (password.value.length == 0) {
				alert("Password is required.")
				password.value = '';
				password.focus();
				return false;          
			}
				
										
		}
	}
	
		
		
	function CheckSpecialChar(obj)
		{
		   var string = obj.value;
		   var re = new RegExp("[^A-Za-z0-9 ]");
		   var isin = re.test(string);
		   	   if (isin)
					{
					alert("No Special characters allowed : ' & ; ! -- # % ");
					obj.value = '';
					obj.focus();
					
					}
				else
					return true;
		}
		
		
		
		
		function cancelClick() {				
		window.location = '/financial_products/manufactured_home_loans/new_home_loans/index.cfm';
	}