// add this to the submit button of the form....     onClick="return validate_form( );""

function validate_form ( )
{
	valid = true;
	sRequired="The following information is required:\n\n"
	
	if ( document.myform.Name.value.length < 1 )
        {
				sRequired+="- Please enter your name.\n"
                valid = false;
        }
		
		if ( document.myform.Company.value.length < 1 )
        {
				sRequired+="- Please enter your company.\n"
                valid = false;
        }
		
		
		if ( document.myform.Title.value.length < 1 )
        {
				sRequired+="- Please enter your title\n"
                valid = false;
        }
		

		if((document.myform.Email.value.indexOf("@")==-1) || (document.myform.Email.value.indexOf(".")==-1))
		{
		sRequired+= "- Please enter a valid email address.\n"
		valid = false;
		}
	
		
		if (!valid){
			alert(sRequired);	
		}


        return valid;
}

function removeSpaces(string) {
	var tstring = "";
	string = '' + string;
	splitstring = string.split(" ");
	for(i = 0; i < splitstring.length; i++)
	tstring += splitstring[i];
	return tstring;
}

// to strip spaces, add this to input field.....   onblur="this.value=removeSpaces(this.value);"