function AdminAccForm_Validator(theForm)
{
	if("" == theForm.invoice.value)
    {
        alert("Please enter the Invoice No. !");
        theForm.invoice.focus();
        return(false)
    }
   
    if("" == theForm.payment.value)
    {
        alert("Please enter the Total Payment !");
        theForm.payment.focus();
        return(false)
    }
}

function EditVasForm_Validator(theForm)
{
	if("" == theForm.name.value)
    {
        alert("Please enter the Value Added Service Name !");
        theForm.name.focus();
        return(false)
    }
   
    if("" == theForm.desc.value)
    {
        alert("Please enter the Value Added Service Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.chargerate.value)
    {
        alert("Please enter the Value Added Service Charge Rate !");
        theForm.chargerate.focus();
        return(false)
    }
   
    if("" == theForm.chargetype.value)
    {
        alert("Please enter the Value Added Service Charge Type !");
        theForm.chargetype.focus();
        return(false)
    }
    
    if("" == theForm.startdate.value)
    {
        alert("Please choose the Value Added Service Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please choose the Value Added Service End Date !");
        theForm.enddate.focus();
        return(false)
    }
}

function FirstTimeForm_Validator(theForm)
{
	if("" == theForm.acc_num.value)
    {
        alert("Please enter your Account Number !");
        theForm.acc_num.focus();
        return(false)
    }
    
    if("" == theForm.nric.value)
    {
        alert("Please enter your Identification Number !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.username.value)
    {
        alert("Please enter your Preferred Username !");
        theForm.username.focus();
        return(false)
    }
    
    if("" == theForm.password1.value)
    {
        alert("Please enter your Preferred Password !");
        theForm.password1.focus();
        return(false)
    }
    
    if("" == theForm.password2.value)
    {
        alert("Please enter the Confirmed Password !");
        theForm.password2.focus();
        return(false)
    }
}


function ForgetPWForm_Validator(theForm)
{
	if("" == theForm.acc_num.value)
    {
        alert("Please enter your Account Number !");
        theForm.acc_num.focus();
        return(false)
    }
    
    if("" == theForm.nric.value)
    {
        alert("Please enter your Identification Number !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.username.value)
    {
        alert("Please enter your Username !");
        theForm.username.focus();
        return(false)
    }
}


function CustEditForm_Validator(theForm)
{
	if("" == theForm.name.value)
    {
        alert("Please enter your Full Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.dob.value)
    {
        alert("Please enter your Date of Birth !");
        theForm.dob.focus();
        return(false)
    }
    
    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select your Gender !");
       	return(false)
   	}
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	}  
   	
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select your Race !");
       	return(false)
   	} 
   	
    if("" == theForm.nric.value)
    {
        alert("Please enter your NRIC No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.phone.value)
    {
        alert("Please enter your Phone No. !");
        theForm.phone.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter your Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter your Email Address !");
        theForm.email.focus();
        return(false)
    }
    
    if("" == theForm.corr_add.value)
    {
        alert("Please enter your Correspondent Address !");
        theForm.corr_add.focus();
        return(false)
    }
    
    if("" == theForm.corr_city.value)
    {
        alert("Please enter your Correspondent City !");
        theForm.corr_city.focus();
        return(false)
    }
    
    if("none" == theForm.corr_state.value)
    {
        alert("Please select your Correspondent State !");
        return(false)
    }
    
    if("" == theForm.corr_postcode.value)
    {
        alert("Please enter your Correspondent Postcode !");
        theForm.corr_postcode.focus();
        return(false)
    }
    
    if("none" == theForm.corr_country.value)
    {
        alert("Please select your Correspondent Country !");
        return(false)
    }
}

function DataRPdetailForm_Validator(theForm)
{    
	if("none" == theForm.data_rp.value)
    {
        alert("Please select a Data Rate Plan !");
        theForm.data_rp.focus();
        return(false)
    }
    
	if("" == theForm.name.value)
    {
        alert("Please enter the Data Rate Plan Detail Name !");
        theForm.name.focus();
        return(false)
    }
    
	if("" == theForm.desc.value)
    {
        alert("Please enter the Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.seq.value)
    {
        alert("Please enter the Sequence !");
        theForm.seq.focus();
        return(false)
    }
    
	if("" == theForm.startrange.value)
    {
        alert("Please enter the Start Range !");
        theForm.startrange.focus();
        return(false)
    }
    
    if("" == theForm.endrange.value)
    {
        alert("Please enter the End Range !");
        theForm.endrange.focus();
        return(false)
    }
    
	if("" == theForm.block.value)
    {
        alert("Please enter the Block Size !");
        theForm.block.focus();
        return(false)
    }
    
    if("" == theForm.charge.value)
    {
        alert("Please enter the Charge Per Block !");
        theForm.charge.focus();
        return(false)
    }
    
	if("" == theForm.startdate.value)
    {
        alert("Please select a Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please select a End Date !");
        theForm.enddate.focus();
        return(false)
    }
}

function AddCustVasForm_Validator(theForm)
{    
	if("none" == theForm.name.value)
    {
        alert("Please select a Value Added Service !");
        theForm.name.focus();
        return(false)
    }
}

function AddCustDepForm_Validator(theForm)
{    
	if("none" == theForm.name.value)
    {
        alert("Please select a Deposit Detail !");
        theForm.name.focus();
        return(false)
    }
}

function AddInven1Form_Validator(theForm)
{    
	if("none" == theForm.cust.value)
    {
        alert("Please select a Customer !");
        theForm.cust.focus();
        return(false)
    }
    
	if("none" == theForm.iproduct.value)
    {
        alert("Please select a Inventory Product !");
        theForm.iproduct.focus();
        return(false)
    }
    
	if("none" == theForm.status.value)
    {
        alert("Please select the Status !");
        theForm.status.focus();
        return(false)
    }
}

function EditInven1Form_Validator(theForm)
{    
	if("none" == theForm.iproduct.value)
    {
        alert("Please select a Inventory Product !");
        theForm.iproduct.focus();
        return(false)
    }
    
	if("none" == theForm.status.value)
    {
        alert("Please select the Status !");
        theForm.status.focus();
        return(false)
    }
}

function EditInven2Form_Validator(theForm)
{    
	if("none" == theForm.status.value)
    {
        alert("Please select the Status !");
        theForm.status.focus();
        return(false)
    }
}

function Form_Validator(theForm)
{
	if((false == theForm.greet[0].checked) && (false == theForm.greet[1].checked) && (false == theForm.greet[2].checked) && (false == theForm.greet[3].checked))
   	{
       	alert("Please select your Prefix !");
       	return(false)
   	} 
   	

    if("" == theForm.name.value)
    {
        alert("Please enter your Name !");
        theForm.name.focus();
        return(false)
    }

    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select your Gender !");
       	return(false)
   	} 

    if("" == theForm.nric.value)
    {
        alert("Please enter your NRIC No. or Passport No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.contact.value)
    {
        alert("Please enter your Contact No. !");
        theForm.contact.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter your Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter your Email Address !");
        theForm.email.focus();
        return(false)
    }
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	} 
   	
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select your Race !");
       	return(false)
   	} 

	if("" == theForm.unitno.value)
    {
        alert("Please enter your Saffron Unit No. !");
        theForm.unitno.focus();
        return(false)
    }
   
    if("" == theForm.address.value)
    {
        alert("Please enter your Permanent Address !");
        theForm.address.focus();
        return(false)
    }
    
    if("" == theForm.city_state.value)
    {
        alert("Please enter your City or State !");
        theForm.city_state.focus();
        return(false)
    }
    
    if("" == theForm.postcode.value)
    {
        alert("Please enter your Postcode !");
        theForm.postcode.focus();
        return(false)
    }
    
    if((false == theForm.ievoice.checked) && (false == theForm.iedata.checked) && (false == theForm.callfwd.checked) && (false == theForm.callbar.checked) && (false == theForm.itembill.checked) && (false == theForm.supacc.checked) && (false == theForm.service_others.checked))
   	{
       	alert("Please select at least one Services !");
       	return(false)
   	} 
}

function supForm_Validator(theForm)
{
	if((false == theForm.greet[0].checked) && (false == theForm.greet[1].checked) && (false == theForm.greet[2].checked) && (false == theForm.greet[3].checked))
   	{
       	alert("Please select your Prefix !");
       	return(false)
   	} 
   	

    if("" == theForm.name.value)
    {
        alert("Please enter your Name !");
        theForm.name.focus();
        return(false)
    }

    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select your Gender !");
       	return(false)
   	} 

    if("" == theForm.nric.value)
    {
        alert("Please enter your NRIC No. or Passport No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.contact.value)
    {
        alert("Please enter your Contact No. !");
        theForm.contact.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter your Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter your Email Address !");
        theForm.email.focus();
        return(false)
    }
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	} 
   	
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select your Race !");
       	return(false)
   	} 

   
    if("" == theForm.address.value)
    {
        alert("Please enter your Permanent Address !");
        theForm.address.focus();
        return(false)
    }
    
    if("" == theForm.city_state.value)
    {
        alert("Please enter your City or State !");
        theForm.city_state.focus();
        return(false)
    }
    
    if("" == theForm.postcode.value)
    {
        alert("Please enter your Postcode !");
        theForm.postcode.focus();
        return(false)
    }
    
    if((false == theForm.ievoice.checked) && (false == theForm.iedata.checked) && (false == theForm.callfwd.checked) && (false == theForm.callbar.checked) && (false == theForm.itembill.checked) && (false == theForm.supacc.checked) && (false == theForm.service_others.checked))
   	{
       	alert("Please select at least one Services !");
       	return(false)
   	} 
}


function EditCust1Form_Validator(theForm)
{
	if("Supp" == theForm.acctype.value)
	{
		if("" == theForm.parentacc.value)
	    {
	        alert("Please enter the Parent Account No. !");
	        theForm.parentacc.focus();
	        return(false)
	    }
	}
	
    if("" == theForm.name.value)
    {
        alert("Please enter the customer Full Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.dob.value)
    {
        alert("Please enter the customer Date of Birth !");
        theForm.dob.focus();
        return(false)
    }
    
    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select the customer Gender !");
       	return(false)
   	} 
   	
    if("" == theForm.nric.value)
    {
        alert("Please enter the customer NRIC No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.phone.value)
    {
        alert("Please enter the customer Phone No. !");
        theForm.phone.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter the customer Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter the customer Email Address !");
        theForm.email.focus();
        return(false)
    }
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	} 
    
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select the customer Race !");
       	return(false)
   	} 
    
    if("" == theForm.corr_add.value)
    {
        alert("Please enter the customer Correspondent Address !");
        theForm.corr_add.focus();
        return(false)
    }
    
    if("" == theForm.corr_postcode.value)
    {
        alert("Please enter the customer Correspondent Postcode !");
        theForm.corr_postcode.focus();
        return(false)
    }
}

function EditNewCustForm_Validator(theForm)
{
	if("Supp" == theForm.acctype.value)
	{
		if("" == theForm.parentacc.value)
	    {
	        alert("Please enter the Parent Account No. !");
	        theForm.parentacc.focus();
	        return(false)
	    }
	}
        
    if("" == theForm.name.value)
    {
        alert("Please enter the customer Full Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.dob.value)
    {
        alert("Please enter the customer Date of Birth !");
        theForm.dob.focus();
        return(false)
    }
    
    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select the customer Gender !");
       	return(false)
   	} 
   	
    if("" == theForm.nric.value)
    {
        alert("Please enter the customer NRIC No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.phone.value)
    {
        alert("Please enter the customer Phone No. !");
        theForm.phone.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter the customer Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter the customer Email Address !");
        theForm.email.focus();
        return(false)
    }
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	} 
    
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select the customer Race !");
       	return(false)
   	} 
    
    if("" == theForm.corr_add.value)
    {
        alert("Please enter the customer Correspondent Address !");
        theForm.corr_add.focus();
        return(false)
    }
    
    if("" == theForm.corr_postcode.value)
    {
        alert("Please enter the customer Correspondent Postcode !");
        theForm.corr_postcode.focus();
        return(false)
    }
}

function EditNewSuppForm_Validator(theForm)
{
	if("Supp" == theForm.acctype.value)
	{
		if("" == theForm.parentacc.value)
	    {
	        alert("Please enter the Parent Account No. !");
	        theForm.parentacc.focus();
	        return(false)
	    }
	}
        
    if("" == theForm.name.value)
    {
        alert("Please enter the customer Full Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.dob.value)
    {
        alert("Please enter the customer Date of Birth !");
        theForm.dob.focus();
        return(false)
    }
    
    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select the customer Gender !");
       	return(false)
   	} 
   	
    if("" == theForm.nric.value)
    {
        alert("Please enter the customer NRIC No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.phone.value)
    {
        alert("Please enter the customer Phone No. !");
        theForm.phone.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter the customer Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter the customer Email Address !");
        theForm.email.focus();
        return(false)
    }
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	} 
    
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select the customer Race !");
       	return(false)
   	} 
    
    if("" == theForm.corr_add.value)
    {
        alert("Please enter the customer Correspondent Address !");
        theForm.corr_add.focus();
        return(false)
    }
    
    if("" == theForm.corr_postcode.value)
    {
        alert("Please enter the customer Correspondent Postcode !");
        theForm.corr_postcode.focus();
        return(false)
    }
}


function EditCustForm_Validator(theForm)
{
	if("none" == theForm.status.value)
    {
        alert("Please select the Status !");
        theForm.status.focus();
        return(false)
    }
    
    if("none" == theForm.category.value)
    {
        alert("Please select a Category !");
        theForm.category.focus();
        return(false)
    }
    
    if("none" == theForm.acctype.value)
    {
        alert("Please select an Account Type !");
        theForm.acctype.focus();
        return(false)
    }
    
	if("Supp" == theForm.acctype.value)
	{
		if("" == theForm.parentacc.value)
	    {
	        alert("Please enter the Parent Account No. !");
	        theForm.parentacc.focus();
	        return(false)
	    }
	}
	
	if("none" == theForm.project.value)
    {
        alert("Please select a Project !");
        theForm.project.focus();
        return(false)
    }
    
    if("none" == theForm.package.value)
    {
        alert("Please select a Package !");
        theForm.package.focus();
        return(false)
    }
    
    if("none" == theForm.product.value)
    {
        alert("Please select a Product !");
        theForm.product.focus();
        return(false)
    }

	 if(("1" == theForm.product.value) || ("2" == theForm.product.value) || ("4" == theForm.product.value))
	{
	if("" == theForm.voiceusername.value) {
        	alert("Please enter the Intercom Number !");
        	theForm.voiceusername.focus();
        	return(false)
	}
    }

	
    if("" == theForm.name.value)
    {
        alert("Please enter the customer Full Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.dob.value)
    {
        alert("Please enter the customer Date of Birth !");
        theForm.dob.focus();
        return(false)
    }
    
    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select the customer Gender !");
       	return(false)
   	} 
   	
    if("" == theForm.nric.value)
    {
        alert("Please enter the customer NRIC No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.phone.value)
    {
        alert("Please enter the customer Phone No. !");
        theForm.phone.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter the customer Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter the customer Email Address !");
        theForm.email.focus();
        return(false)
    }
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	} 
    
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select the customer Race !");
       	return(false)
   	} 
    
    if("" == theForm.corr_add.value)
    {
        alert("Please enter the customer Correspondent Address !");
        theForm.corr_add.focus();
        return(false)
    }
    
    if("none" == theForm.corr_city.value)
    {
        alert("Please select the customer Correspondent City !");
        theForm.corr_city.focus();
        return(false)
    }
    
    if("none" == theForm.corr_state.value)
    {
        alert("Please select the customer Correspondent State !");
        theForm.corr_state.focus();
        return(false)
    }
    
    if("" == theForm.corr_postcode.value)
    {
        alert("Please enter the customer Correspondent Postcode !");
        theForm.corr_postcode.focus();
        return(false)
    }
    
    if("none" == theForm.corr_country.value)
    {
        alert("Please select the customer Correspondent Country !");
        theForm.corr_country.focus();
        return(false)
    }
}

function CustForm_Validator(theForm)
{
	if("none" == theForm.status.value)
    {
        alert("Please select the Status !");
        theForm.status.focus();
        return(false)
    }
    
    if("none" == theForm.acctype.value)
    {
        alert("Please select an Account Type !");
        theForm.acctype.focus();
        return(false)
    }
    
	if("Supp" == theForm.acctype.value)
	{
		if("" == theForm.parentacc.value)
	    {
	        alert("Please enter the Parent Account No. !");
	        theForm.parentacc.focus();
	        return(false)
	    }
	}
    
    if("none" == theForm.category.value)
    {
        alert("Please select a Category !");
        theForm.category.focus();
        return(false)
    }
    if("none" == theForm.project.value)
    {
        alert("Please select a Project !");
        theForm.project.focus();
        return(false)
    }
    
    if("none" == theForm.package.value)
    {
        alert("Please select a Package !");
        theForm.package.focus();
        return(false)
    }
    
    if("none" == theForm.product.value)
    {
        alert("Please select a Product !");
        theForm.product.focus();
        return(false)
    }

	 if(("1" == theForm.product.value) || ("2" == theForm.product.value) || ("4" == theForm.product.value))
	{
	if("" == theForm.voiceusername.value) {
        	alert("Please enter the Intercom Number !");
        	theForm.voiceusername.focus();
        	return(false)
	}
    }
    
    if("" == theForm.name.value)
    {
        alert("Please enter the customer Full Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.dob.value)
    {
        alert("Please enter the customer Date of Birth !");
        theForm.dob.focus();
        return(false)
    }
    
    if((false == theForm.gender[0].checked) && (false == theForm.gender[1].checked))
   	{
       	alert("Please select the customer Gender !");
       	return(false)
   	} 
   	
    if("" == theForm.nric.value)
    {
        alert("Please enter the customer NRIC No. !");
        theForm.nric.focus();
        return(false)
    }
    
    if("" == theForm.phone.value)
    {
        alert("Please enter the customer Phone No. !");
        theForm.phone.focus();
        return(false)
    }
    
    if("" == theForm.mobile.value)
    {
        alert("Please enter the customer Mobile No. !");
        theForm.mobile.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter the customer Email Address !");
        theForm.email.focus();
        return(false)
    }
 
    if((false == theForm.nation[0].checked) && (false == theForm.nation[1].checked))
   	{
       	alert("Please select your Nationality !");
       	return(false)
   	} 
    
   	if((false == theForm.race[0].checked) && (false == theForm.race[1].checked) && (false == theForm.race[2].checked) && (false == theForm.race[3].checked))
   	{
       	alert("Please select the customer Race !");
       	return(false)
   	} 
    
    if("" == theForm.corr_add.value)
    {
        alert("Please enter the customer Correspondent Address !");
        theForm.corr_add.focus();
        return(false)
    }
    
    if("none" == theForm.corr_city.value)
    {
        alert("Please select the customer Correspondent City !");
        theForm.corr_city.focus();
        return(false)
    }
    
    if("none" == theForm.corr_state.value)
    {
        alert("Please select the customer Correspondent State !");
        theForm.corr_state.focus();
        return(false)
    }
    
    if("" == theForm.corr_postcode.value)
    {
        alert("Please enter the customer Correspondent Postcode !");
        theForm.corr_postcode.focus();
        return(false)
    }
    
    if("none" == theForm.corr_country.value)
    {
        alert("Please select the customer Correspondent Country !");
        theForm.corr_country.focus();
        return(false)
    }
}



function ProjectForm_Validator(theForm)
{
	if("" == theForm.name.value)
    {
        alert("Please enter the Project Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.prefix.value)
    {
        alert("Please enter the Project Prefix !");
        theForm.prefix.focus();
        return(false)
    }
    
    if("" == theForm.desc.value)
    {
        alert("Please enter the Project Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.startdate.value)
    {
        alert("Please choose the Project Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please choose the Project End Date !");
        theForm.enddate.focus();
        return(false)
    }
}

function ProdForm_Validator(theForm)
{
	if("" == theForm.name.value)
    {
        alert("Please enter the Product Name !");
        theForm.name.focus();
        return(false)
    }
   
    if("" == theForm.desc.value)
    {
        alert("Please enter the Product Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.startdate.value)
    {
        alert("Please choose the Product Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please choose the Product End Date !");
        theForm.enddate.focus();
        return(false)
    }
}

function PackageForm_Validator(theForm)
{
	if("none" == theForm.proj_id.value)
    {
        alert("Please select a Project !");
        theForm.proj_id.focus();
        return(false)
    }
    
	if("" == theForm.name.value)
    {
        alert("Please enter the Package Name !");
        theForm.name.focus();
        return(false)
    }
   
    if("" == theForm.desc.value)
    {
        alert("Please enter the Package Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.startdate.value)
    {
        alert("Please choose the Package Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please choose the Package End Date !");
        theForm.enddate.focus();
        return(false)
    }
}

function iDeviceForm_Validator(theForm)
{
	if("" == theForm.name.value)
    {
        alert("Please enter the Inventory Device Name !");
        theForm.name.focus();
        return(false)
    }
   
    if("" == theForm.desc.value)
    {
        alert("Please enter the Inventory Device Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.serial.value)
    {
        alert("Please enter the Inventory Device Serial No. !");
        theForm.serial.focus();
        return(false)
    }
   
    if("" == theForm.mac.value)
    {
        alert("Please enter the Inventory Device Mac Address !");
        theForm.mac.focus();
        return(false)
    }
    
    if("" == theForm.startdate.value)
    {
        alert("Please choose the Warranty Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please choose the Warranty End Date !");
        theForm.enddate.focus();
        return(false)
    }
}

function VasForm_Validator(theForm)
{
	if("" == theForm.name.value)
    {
        alert("Please enter the Value Added Service Name !");
        theForm.name.focus();
        return(false)
    }
   
    if("" == theForm.desc.value)
    {
        alert("Please enter the Value Added Service Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.chargerate.value)
    {
        alert("Please enter the Value Added Service Charge Rate !");
        theForm.chargerate.focus();
        return(false)
    }
   
    if("" == theForm.chargetype.value)
    {
        alert("Please enter the Value Added Service Charge Type !");
        theForm.chargetype.focus();
        return(false)
    }
    
    if("" == theForm.startdate.value)
    {
        alert("Please choose the Value Added Service Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please choose the Value Added Service End Date !");
        theForm.enddate.focus();
        return(false)
    }
}

function BulletinForm_Validator(theForm)
{
	if("" == theForm.title.value)
    {
        alert("Please enter the Bulletin Title !");
        theForm.title.focus();
        return(false)
    }
   
    if("" == theForm.bulletin.value)
    {
        alert("Please enter the Bulletin Content !");
        theForm.bulletin.focus();
        return(false)
    }
}


function PwForm_Validator(theForm)
{
	if("" == theForm.password1.value)
	{
   	 	alert("Please enter your New Password !");
   	 	theForm.password1.focus();
   	 	return(false)
	}

	if("" == theForm.password2.value)
	{
   	 	alert("Please enter your Confirmed Password !");
   	 	theForm.password2.focus();
   	 	return(false)
	}
}

function UsernameForm_Validator(theForm)
{
	if("" == theForm.username.value)
	{
   	 	alert("Please enter a Username to check !");
   	 	theForm.username.focus();
   	 	return(false)
	}
}
	
function DataRPForm_Validator(theForm)
{
	//if("none" == theForm.package.value)
    //{
    //    alert("Please select a Package !");
    //    theForm.package.focus();
    //    return(false)
    //}
    
	if("" == theForm.name.value)
    {
        alert("Please enter the Data Rate Plan Name !");
        theForm.name.focus();
        return(false)
    }
   
    if("" == theForm.desc.value)
    {
        alert("Please enter the Data Rate Plan Description !");
        theForm.desc.focus();
        return(false)
    }
    
    if("" == theForm.mincharge.value)
    {
        alert("Please enter the Minimum Charge !");
        theForm.mincharge.focus();
        return(false)
    }
   
    if("" == theForm.freeusage.value)
    {
        alert("Please enter the Free Usage !");
        theForm.freeusage.focus();
        return(false)
    }
    
    if("" == theForm.maxcharge.value)
    {
        alert("Please enter the Maximum Usage !");
        theForm.maxcharge.focus();
        return(false)
    }
    
    if("" == theForm.startdate.value)
    {
        alert("Please choose the Data Rate Plan Start Date !");
        theForm.startdate.focus();
        return(false)
    }
    
    if("" == theForm.enddate.value)
    {
        alert("Please choose the Data Rate Plan End Date !");
        theForm.enddate.focus();
        return(false)
    }

}


function feedbackForm_Validator(theForm)
{
    if("" == theForm.name.value)
    {
        alert("Please enter your Name !");
        theForm.name.focus();
        return(false)
    }
    
    if("" == theForm.email.value)
    {
        alert("Please enter your Email Address !");
        theForm.email.focus();
        return(false)
    }

    if("" == theForm.contact.value)
    {
        alert("Please enter your Contact No. !");
        theForm.contact.focus();
        return(false)
    }
    
    if("" == theForm.feedback.value)
    {
        alert("Please enter your Feedback or Comment !");
        theForm.feedback.focus();
        return(false)
    }
}
