<!-- hide script from old browsers

 var digits = "0123456789";
// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()- ";
// characters which are allowed in international phone numbers
// (a leading + is OK)
var validWorldPhoneChars = phoneNumberDelimiters + "+";
// Minimum no of digits in an international phone no.
var minDigitsInIPhoneNumber = 11;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag)
{   var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function checkInternationalPhone(strPhone){
s=stripCharsInBag(strPhone,validWorldPhoneChars);
return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}
function call_back()
{
   var company1,company1ln,i,flag;
	  flag=0;

 if (document.callback.name.value==0)  
	 {
		 alert('Please Enter your Name.');
		 document.callback.name.focus();
		 return false;
	 } 
	var Phone=document.callback.phone
		 
	if ((Phone.value==null)||(Phone.value==""))
	{
		alert("Please Enter your Telephone Number.")
		Phone.focus()
		return false
	}
	if (checkInternationalPhone(Phone.value)==false)
	{
		alert("Please Enter a Valid Landline or Mobile Number (without spaces).")
		Phone.focus()
		return false
	}
      
	if (document.callback.postcode.value==0)  	
	{
		alert("Please Enter your Postcode (without spaces).")
		document.callback.postcode.focus();
		return false
	   } 
	if (document.callback.accident.value==0)  
	 {
		 alert('Please Select the Accident type.');
		 document.callback.accident.focus();
		 return false;
	 } 
	 if (document.callback.callon.value==0)  
	 {
		 alert('Please Select Call on.');
		 document.callback.callon.focus();
		 return false;
	 } 
	 if (document.callback.callat.value==0)  
	 {
		 alert('Please Select Call at.');
		 document.callback.callat.focus();
		 return false;
	 }  
}
	
// end hiding script from old browsers -->