function validateForm()
{
	var f=document.theform;
	var b_correct;
	b_correct=true;
	
	/*alert(f.checkpptw.checked);*/

//	if(b_correct && !f.checkbox1.checked && !f.checkbox2.checked && !f.checkbox3.checked)
//	{
	/*if(b_correct && !f.checkbox1.checked && !f.checkbox3.checked)
	{

alert("Please check the boxes on the top of the form.");
		f.checkbox1.focus();
		b_correct=false;
	}	*/

	if(b_correct && f.firstname.value =="")
	{
		alert("Please enter your first name");
		f.firstname.focus();
		b_correct=false;
	}	
	if(b_correct && f.lastname.value =="")
	{
		alert("Please enter your last name");
		f.lastname.focus();
		b_correct=false;
	}	
	
	if(b_correct && f.phone.value == "")
	{
		alert("Please enter your phone number");
		f.phone.focus();
		b_correct=false;
	}	

	if(b_correct && (f.email.value)=="") 
	{
		
		alert("enter a valid email address");
		f.email.focus();
		b_correct=false;
	}
	
	if(b_correct)
	{
		//alert(func_is_email(objForm.txt_email.value));
		
		if(!func_is_email(f.email.value))
		{
			alert("Please enter a valid e-mail address.");
			f.email.focus();
			b_correct = false;
		}
	}

	if(b_correct && (f.country.value)=="") 
	{
		
		alert("Please enter your country");
		f.country.focus();
		b_correct=false;
	}

	if(b_correct && (f.state.value)=="") 
	{
		
		alert("Please enter your state");
		f.state.focus();
		b_correct=false;
	}

	if(b_correct==true)
	{
		f.submit();
	}
	else
	{
		return b_correct;
	}	
}

function validateRequestForm()
{
	var f=document.theform;
	var b_correct;
	b_correct=true;



	if(b_correct && f.firstname.value =="")
	{
		alert("Please enter your first name");
		f.firstname.focus();
		b_correct=false;
	}	
	if(b_correct && f.lastname.value =="")
	{
		alert("Please enter your last name");
		f.lastname.focus();
		b_correct=false;
	}	
	
	if(b_correct && f.phone.value == "")
	{
		alert("Please enter your phone number");
		f.phone.focus();
		b_correct=false;
	}	

	if(b_correct && (f.email.value)=="") 
	{
		
		alert("enter a valid email address");
		f.email.focus();
		b_correct=false;
	}
	
	if(b_correct)
	{
		//alert(func_is_email(objForm.txt_email.value));
		
		if(!func_is_email(f.email.value))
		{
			alert("Please enter a valid e-mail address.");
			f.email.focus();
			b_correct = false;
		}
	}

	if(b_correct && f.contacttime.value =="")
	{
		alert("Please tell us the best time to reach you");
		f.contacttime.focus();
		b_correct=false;
	}	


	/*alert(f.checkpptw.checked);*/
	if(b_correct && f.interestlevel.value =="")
	{
		alert("Please Rate your Interest Level");
		f.interestlevel.focus();
		b_correct=false;
	}	
	
		if(b_correct && f.invest.value=="")
	{
		alert("Please enter the amount you can invest");
		f.invest.focus();
		b_correct=false;
	}	
	
	

	if(b_correct && !f.checkbox2.checked && !f.checkbox3.checked)
	{

alert("Please check the boxes on the top of the form.");
		f.checkbox2.focus();
		b_correct=false;
	}	


	
	if(b_correct==true)
	{
		f.submit();
	}
	else
	{
		return b_correct;
	}	
}

