//Download Form

function downloadForm()

{
	if (document.dform.first.value.length < 1)
  {
		alert ("Please enter your First Name")		
  document.dform.first.focus ();	
		return (false);
  }

	if (document.dform.last.value.length < 1)
  {
		alert ("Please enter your Last Name")		
  document.dform.last.focus ();	
		return (false);
  }

	if (document.dform.email.value == "" ||
     document.dform.email.value.indexOf ('@', 0) == -1 ||
     document.dform.email.value.indexOf ('.', 0) == -1)
  {
		alert ("Please enter a valid email address in the form 'name@domain.com.'")		
  document.dform.email.focus ();	
		return (false);
  }
	if (document.dform.email.value.indexOf (' ', 0) != -1 ||
     document.dform.email.value.indexOf ('"', 0) != -1 ||
     document.dform.email.value.indexOf (',', 0) != -1)
  {
		alert ("Spaces, commas and quotes are not allowed in email addresses")		
  document.dform.email.focus ();	
		return (false);
  }
	if (document.dform.phone.value == "")

  {
		alert ("Please enter your phone number.")		
  document.dform.phone.focus ();	
		return (false);
  }

	if (document.dform.company.value.length <= 2)
  {
		alert ("Please enter the your Company name")		
  document.dform.company.focus ();	
		return (false);
  }
}



//Check Form

function checkForm()

{
	if (document.anyform.first.value.length < 1)
  {
		alert ("Please enter your First Name")		
  document.anyform.first.focus ();	
		return (false);
  }

	if (document.anyform.last.value.length < 1)
  {
		alert ("Please enter your Last Name")		
  document.anyform.last.focus ();	
		return (false);
  }

	if (document.anyform.email.value == "" ||
     document.anyform.email.value.indexOf ('@', 0) == -1 ||
     document.anyform.email.value.indexOf ('.', 0) == -1)
  {
		alert ("Please enter a valid email address in the form 'name@domain.com.'")		
  document.anyform.email.focus ();	
		return (false);
  }
	if (document.anyform.email.value.indexOf (' ', 0) != -1 ||
     document.anyform.email.value.indexOf ('"', 0) != -1 ||
     document.anyform.email.value.indexOf (',', 0) != -1)
  {
		alert ("Spaces, commas and quotes are not allowed in email addresses")		
  document.anyform.email.focus ();	
		return (false);
  }

	if (document.anyform.phone.value.length <= 7)
  {
		alert ("Please enter your phone number in the form '123-123-1234.'")		
  document.anyform.phone.focus ();	
		return (false);
  }

	if (document.anyform.phone.value == "")

  {
		alert ("Please enter your phone number in the form '123-123-1234.'")		
  document.anyform.phone.focus ();	
		return (false);
  }
	if (document.anyform.phone.value.indexOf (' ', 0) != -1 ||
     document.anyform.phone.value.indexOf ('(', 0) != -1 ||
     document.anyform.phone.value.indexOf (')', 0) != -1)
  {
		alert ("Please enter your phone number in the form '123-123-1234.'")		
  document.anyform.phone.focus ();	
		return (false);
  }

	if (document.anyform.issue.value.length = 0)
  {
		alert ("Please enter your support issue")		
  document.anyform.address.focus ();	
		return (false);
  }
	if (document.anyform.city.value.length <= 2)
  {
		alert ("Please enter the your City")		
  document.anyform.city.focus ();	
		return (false);
  }

	if (document.anyform.state.value.length < 2)
  {
		alert ("Please enter your State")		
  document.anyform.state.focus ();	
		return (false);
  }

	if (document.anyform.zip.value.length < 5)
  {
		alert ("Please enter your 5-digit Zipcode")		
  document.anyform.zip.focus ();	
		return (false);
  }

	if (document.anyform.textarea.value.length < 2)
  {
		alert ("Please enter your support issue.")		
  document.anyform.textarea.question.focus ();	
		return (false);
  }
	if (document.anyform.product.value.indexOf ('-----CHOOSE-----', 0) != -1)
  {
		alert ("Please select your COI product.")		
  document.anyform.product.focus ();	
		return (false);
  }
}
