

function checkvalue(value) {
	if(value == '' || value == null) return false;
	else return true;
}

function buy_formvalidation(theForm) {
	var why = "Please complete the following required fields as we will need this basic information in order to assist you.\n\n";
	
	if(checkvalue(!theForm.first_name.value))  					why += "First Name is required.\n";
	if(checkvalue(!theForm.last_name.value))  					why += "Last Name is required.\n";
	if(checkvalue(!theForm.home_phone.value)) 					why += "Home Phone is required.\n";
	if(checkvalue(!theForm.street_address.value))				why += "Street Address is required.\n";
	if(checkvalue(!theForm.city.value))							why += "City is required.\n";
	if(checkvalue(!theForm.zip.value))							why += "Zip is required.\n";
	if(checkvalue(!theForm.state.selectedIndex))				why += "State is required.\n";
	
	if (why != "Please complete the following required fields as we will need this basic information in order to assist you.\n\n") {
	   alert(why);
	   return false;
	}
	
	return true;
}