function skipField(oControl, oControlNext, iLength)
{
	if (oControl.value.length >= iLength)
	{
		oControlNext.focus();
	}
}

function WriteABICode(abicode)
{
	document.main.abicode.value = abicode;

    //alert('ABI Code = ' + abicode);

	document.main.txtEstValue.focus();
}

//function titleSelected()
//{
//    var objTitle = document.main.ddTitle;
//    var objMarital = document.main.ddmaritalStatus;

//	if (objTitle.options[objTitle.selectedIndex].value == "Miss")
//	{
//		objMarital.selectedIndex = 6;
//	}
//}

//function showdvla()
//{
//	var thismake = document.main.make.options[document.main.make.selectedIndex].text;
//	var thismodel = document.main.model.options[document.main.model.selectedIndex].text;
//	var thisprecisemodel  = document.main.precisemodel.options[document.main.precisemodel.selectedIndex].text;
//	var thisyear = document.main.year.options[document.main.year.selectedIndex].text;
//}

//function ValidatePCBranchForm()
//{
//    //validates the childform
//	
//	var pcErr = '';
//	var objPostCode = document.main.PCBranchLookup1_txtFullPostCode;
//	
//	if(objPostCode.value.length <=4)
//	{
//	pcErr += 'Please confirm your full postcode \n';
//	}
//	
//	if(pcErr.length > 0)
//	{
//		alert(pcErr);
//		return false;				
//	}
//	else
//		return true;
//}

//function checkPurchaseDateagainstYearofManufacture()
//{
//    //alert(document.main.txtPurchaseYear.value);
//    //alert(document.main.year.options[document.main.year.selectedIndex].text);

//	if (document.main.year.selectedIndex >0)
//	{
//		if (document.main.txtPurchaseYear.value.length ==4)
//		{
//			if (parseInt(document.main.txtPurchaseYear.value) < parseInt(document.main.year.options[document.main.year.selectedIndex].text))
//			{
//				return true;
//			}
//		}
//	}
//}

//function checkAllNumbersandLength(obj, minLength)
//{
//	if ((obj.value == null)||(obj.value == ""))
//	{
//		return true;
//	}
//	else
//	{
//		if (obj.value.length >= minLength)
//		{
//			if (isInteger(obj.value)==false)
//			{
//				return true;
//			}
//			else
//			{
//				return false;
//			}
//		}
//		else
//		{
//			return true;
//		}
//	}
//}

//function checkAnnualMileage(obj,minLength,minAmount)
//{
//	if  (checkAllNumbersandLength(obj,minLength))
//	{
//		return true;
//	}
//	else
//	{
//		if (obj.value < minAmount)
//		{
//			return true;
//		}
//		
//	}
//}

//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;
//}

