// JavaScript Document
function Validate()
{
var x = document.caller.ph.value;
var y = document.caller.check.value;

if (y != ""){
alert("Invalid number"); 
return false;
}

if(isNaN(x)|| x.indexOf(" ")!=-1){
alert("Enter numeric value");
return false; 
}
if (x.length != 10){
alert("Please enter 10 digits number"); 
return false;
}
if (x.indexOf('1300')==0){
alert("Sorry. The system does not accept 1300 numbers.");
return false
}
if (x.indexOf('1800')==0){
alert("Sorry. The system does not accept 1800 numbers.");
return false
}
if (x.indexOf('1900')==0){
alert("Sorry. The system does not accept 1900 numbers.");
return false
}
if (x.indexOf('0386442438')==0){
alert("Sorry. The number you have entered is for sample only");
return false
}
if (x.indexOf('00')==0){
alert("Invalid Number. Please check your number and try again.");
return false
}
if (x.charAt(0)!="0"){
alert("Your phone number should start with 0 ");
return false
}
}
