// JavaScript Document
<!-- Begin validation script
//----------------------------------------
// Clears field if the default value is there.
//----------------------------------------
			function clear_field(field)
			{    
			if (field.value==field.defaultValue)    
			{        
			field.value=''    
			}
			}
//----------------------------------------
// Checks field to see if any information
// was entered. If not, the default value
// is reentered.
//----------------------------------------
			function check_field(field)
			{    
			if (field.value=='' ||    field.value==' ')    
			{        field.value=field.defaultValue    }
			}
//----------------------------------------
// Validates the form. If a field fails the
// validation, The form is not submitted.
//----------------------------------------
			function validate_form()
			{
//----------------------------------------
// Validates the First & Last Name field.
//----------------------------------------    
/*			if 
			(document.forms[0].fname.value==document.forms[0].fname.defaultValue ||    
			document.forms[0].fname.value.indexOf(' ',0)==0)    
			{        
			alert('\nNo First Name entered.')        
			document.forms[0].fname.select()        
			document.forms[0].fname.focus()        
			return false    
			}
if 
			(document.forms[0].lname.value==document.forms[0].lname.defaultValue ||    
			document.forms[0].lname.value.indexOf(' ',0)==0)    
			{        
			alert('\nNo Last Name entered.')        
			document.forms[0].lname.select()        
			document.forms[0].lname.focus()        
			return false    
			}*/
//----------------------------------------
// Validates the Comments field.
//----------------------------------------    
			if 
			(document.forms[0].comments.value==document.forms[0].comments.defaultValue ||   
			document.forms[0].comments.value.indexOf(' ',0)==0)    
			{        
			alert('\nPlease enter your name, location and your question below')        
			document.forms[0].comments.select()        
			document.forms[0].comments.focus()        
			return false    
			}


//----------------------------------------
// Validates the Email field.
//----------------------------------------    
			if (document.forms[0].From_Email.value=="")    
			{        
			alert('\nNo Email Address entered.')        
			document.forms[0].From_Email.select()        
			document.forms[0].From_Email.focus()        
			return false    
			}        
			if (document.forms[0].From_Email.value.indexOf('@',0)==-1 ||        
			document.forms[0].From_Email.value.indexOf('.',0)==-1)        
			{            
			alert('\nInvalid Email Address.')            
			document.forms[0].From_Email.select()            
			document.forms[0].From_Email.focus()            
			return false        }
			
//----------------------------------------
// Prompts user for confirmation
//----------------------------------------    
			else    
			{                  
			return true   
			
			}}
//----------------------------------------
// End of validation script 
-->

