/* =========================================================================

NAME: feedback.js

AUTHOR: Rustom Rawat , Access Web Solutions
DATE  : 6/9/03

COPYRIGHT (c) 2003 Access Web Solutions.

COMMENT: AWS grants you a royalty free license to use or modify this 
		 software provided that this copyright notice appears on all copies.
 		 This software is provided "AS IS," without a warranty of any kind.

============================================================================ */

function feedback()
{
var form = window.document.frmFeedback
	if (form.Name.value == "" || form.Name.value.length < 4)
	{
	alert("Please enter your name in the \"Name\" field.");
	form.Name.focus();
	return false;
	}
	if (form.Email.value == "" || form.Email.value.length < 8)
	{
	alert("Please enter your email address in the \"Email\" field.");
	form.Email.focus();
	return false;
	}
	var radioSelected = false;
	for (i = 0;  i < form.saleNdeveloptment.length;  i++)
	{
      if (form.saleNdeveloptment[i].checked)
	  radioSelected = true;
	}
	if (!radioSelected)
	{
      alert("Please rate our sale and development service from the \"Sale and Development\" field.");
      return (false);
	}
	/*
	if (form.supportService.value == "")
	{
	alert("Please select service/s for which \n" +
	"this feedback is being filled from \n" +
	"the \"Feedback Marked For\" field.");
	form.supportService.focus();
	return false;
	} */
return true;
}