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

JavaScript Source File -- Created with SAPIEN Technologies PrimalSCRIPT (TM)

NAME: work_order.js

AUTHOR: Rustom Rawat , AWS
DATE  : 9/7/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 workOrder()
{
var form = window.document.frmWorkOrder
	if (form.AccountID.value == "" || form.AccountID.value.length < 10)
	{
	alert("Please enter your emailID which you had \n" +
	"registered with us while placing order \n" +
	"in the \"AccountID\" field.");
	form.AccountID.focus();
	return false;
	}
	if (form.Domain.value == "" || form.Domain.value.length < 6)
	{
	alert("Please enter the domain name to be setup \n" +
	"in the \"Domain Name\" field.");
	form.Domain.focus();
	return false;
	}
	var radioSelected = false;
	for (i = 0;  i < form.OS.length;  i++)
	{
      if (form.OS[i].checked)
	  radioSelected = true;
	}
	if (!radioSelected)
	{
      alert("Please opt for Operating System from the \"Server OS\" field.");
      return (false);
	}
return true;
}