<!--
function chknotnull(x)
{
	myflag=false
	if (x=="")
		return false;
	else
	{
		for (i=0;i<x.length;i++)
		{
			if (x.charAt(i).indexOf(" ")<0)
				myflag=true;
		}
		return myflag;
	}
return true;
}

function Entry(){
  if((!document.form.Member[0].checked)&&(!document.form.Member[1].checked)){
    alert("Please select if you are a member.");
    document.form.Member[0].focus();
    return (false);
  }
  if(!chknotnull(document.form.Name.value)){
    alert("Please enter your name.");
    document.form.Name.focus();
    return (false);
  }
  if(!chknotnull(document.form.ContactNo.value)){
    alert("Please enter your contact no.");
    document.form.ContactNo.focus();
    return (false);
  }
  if(document.form.Member[0].checked){
    if(!chknotnull(document.form.MembershipNo.value)){
      alert("Please enter your membership no.");
      document.form.MembershipNo.focus();
      return (false);
    }
  }
  if(!chknotnull(document.form.EmailAddress.value)){
    alert("Please enter your email address.");
    document.form.EmailAddress.focus();
    return (false);
  }
  if(chknotnull(document.form.EmailAddress.value) && !chknotnull(document.form.ConfirmAddress.value)){
		alert("Please re-enter your email address for confirmation.");
	    document.form.ConfirmAddress.focus();
    	return (false);
  }
  else if(chknotnull(document.form.EmailAddress.value) && chknotnull(document.form.ConfirmAddress.value)){
		if(document.form.EmailAddress.value != document.form.ConfirmAddress.value){
			alert("Wrong confirmation of email address. Please re-enter your email address.");
			document.form.ConfirmAddress.focus();
		    return (false);
		}		  
  } // else statement block
  
  myOption = -1;
	for (i=document.form.Package.length-1; i > -1; i--) {
		if (document.form.Package[i].checked) {
			myOption = i; i = -1;
		}
	}
	if (myOption == -1) {
	alert("Please select a package.");
	return false;
	}



//  if(!chknotnull(document.form.Fax.value)){
//    alert("Please enter your fax no.");
//    document.form.Fax.focus();
//    return (false);
//  }
//  if(!chknotnull(document.form.InvoiceNo.value)){
//    alert("Please enter your invoice no.");
//    document.form.InvoiceNo.focus();
//    return (false);
//  }
//  if(!chknotnull(document.form.TotalAmt.value)){
//    alert("Please enter the total amount.");
//    document.form.TotalAmt.focus();
//    return (false);
//  }
  if(document.form.FerryTime.value == "Select One"){
    alert("Please select a ferry time from Singapore to Batam.");
    document.form.FerryTime.focus();
    return (false);
	
  }
    if(document.form.FerryTimeBatam.value == "Select One"){
    alert("Please select a ferry time from Batam to Singapore.");
    document.form.FerryTimeBatam.focus();
    return (false);
  }
	if(!chknotnull(document.form.PName1.value)){
    alert("Please enter the name of passenger.");
    document.form.PName1.focus();
    return (false);
  }
  if(!chknotnull(document.form.PassNo1.value)){
    alert("Please enter the passport no.");
    document.form.PassNo1.focus();
    return (false);
  }
  if(!chknotnull(document.form.Nationality1.value)){
    alert("Please enter the nationality.");
    document.form.Nationality1.focus();
    return (false);
  }
   
  if(!chknotnull(document.form.Handicap1.value)){
    alert("Please enter your handicap.");
    document.form.Handicap1.focus();
    return (false);
  }  
  	if(!chknotnull(document.form.PName2.value)){
    alert("Please enter the name of passenger.");
    document.form.PName2.focus();
    return (false);
  }
  if(!chknotnull(document.form.PassNo2.value)){
    alert("Please enter the passport no.");
    document.form.PassNo2.focus();
    return (false);
  }
  if(!chknotnull(document.form.Nationality2.value)){
    alert("Please enter the nationality.");
    document.form.Nationality2.focus();
    return (false);
  }
    if(!chknotnull(document.form.Handicap2.value)){
    alert("Please enter your handicap.");
    document.form.Handicap2.focus();
    return (false);
  }
  
  	if(!chknotnull(document.form.PName3.value)){
    alert("Please enter the name of passenger.");
    document.form.PName3.focus();
    return (false);
  }
  if(!chknotnull(document.form.PassNo3.value)){
    alert("Please enter the passport no.");
    document.form.PassNo3.focus();
    return (false);
  }
  if(!chknotnull(document.form.Nationality3.value)){
    alert("Please enter the nationality.");
    document.form.Nationality3.focus();
    return (false);
  }
    if(!chknotnull(document.form.Handicap3.value)){
    alert("Please enter your handicap.");
    document.form.Handicap3.focus();
    return (false);
  }
  	if(!chknotnull(document.form.PName4.value)){
    alert("Please enter the name of passenger.");
    document.form.PName4.focus();
    return (false);
  }
  if(!chknotnull(document.form.PassNo4.value)){
    alert("Please enter the passport no.");
    document.form.PassNo4.focus();
    return (false);
  }
  if(!chknotnull(document.form.Nationality4.value)){
    alert("Please enter the nationality.");
    document.form.Nationality4.focus();
    return (false);
  }
    if(!chknotnull(document.form.Handicap4.value)){
    alert("Please enter your handicap.");
    document.form.Handicap4.focus();
    return (false);
  }
  
  	/*if(!chknotnull(document.form.PName5.value)){
    alert("Please enter the name of passenger.");
    document.form.PName5.focus();
    return (false);
  }
  if(!chknotnull(document.form.PassNo5.value)){
    alert("Please enter the passport no.");
    document.form.PassNo5.focus();
    return (false);
  }
  if(!chknotnull(document.form.Nationality5.value)){
    alert("Please enter the nationality.");
    document.form.Nationality5.focus();
    return (false);
  }*/
/*
  if(!chknotnull(document.form.UPrice1.value)){
    alert("Please enter the unit price.");
    document.form.UPrice1.focus();
    return (false);
  }
  if(!chknotnull(document.form.TicNo1.value)){
    alert("Please enter the ticket no.");
    document.form.TicNo1.focus();
    return (false);
  }
*/
  return (true);
}
//-->