		   function checkvalues(thisform)
		   {
		   
			with (thisform)
			{
			
				if (checkfield(firstname,"First Name must be filled out!")==false)
				{
					firstname.focus();
					return false;
				}
				
				if (checkfield(lastname,"Last Name must be filled out!")==false)
				{
					lastname.focus();
					return false;
				}
				
				if (checkfield(email,"Email must be filled out!")== 
				 
					false) { 
					email.focus();
					return 
					false;					
					
					
					
					} 
					} } 
function checkfield(thefield,alerttxt){with(thefield){if(value==null||value=="")
					{
						alert(alerttxt);
						return false;
				}
				
				else 
				{
					return true
				}
			}

		   }
		   
		   
		   
		   	


				// check multi checkboxes based on the name passed in.
				function CheckMultiple(name) 
				{
					theFrm = document.frmSS;
					for (var i=0; i < theFrm.length; i++) 
					{
						fldObj = theFrm.elements[i];
						var fieldnamecheck=fldObj.name.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
					return false;
				}


				function CheckSS()
				{
					theFrm = document.frmSS;

					hasDot = theFrm.Email.value.indexOf(".");
					hasAt = theFrm.Email.value.indexOf("@");
					
					if (hasDot == -1 || hasAt == -1)
					{
						alert("Please enter a valid email address.");
						theFrm.Email.focus();
						theFrm.Email.select();
						return false;
					}

					
									valcheck = document.getElementById("Fields[1]");
									if (valcheck.value == "") {
										alert("Please enter a value for the 'First Name' field.");
										valcheck.focus();
										valcheck.select();
										return false;
									} else {
										var minsize_1 = 0;
										var maxsize_1 = 100;
										var fieldlength = 0;
										fieldlength = valcheck.value.length;
										if (fieldlength < minsize_1) {
											alert("You must enter a value for the 'First Name' field longer than " + minsize_1 + " characters");
											valcheck.focus();
											return false;
										}
										if (fieldlength > maxsize_1) {
											alert("You must enter a value for the 'First Name' field no longer than " + maxsize_1 + " characters");
											valcheck.focus();
											return false;
										}
									}
								
					return true;
				}


