function Validate(oForm)
{	
	if (oForm.BondType.value == 0)
	{
		alert("Please select your Prize Bond Type");
		oForm.BondType.focus();
		return false;
	}
	
	if (oForm.From.value.length > 0)
	{
		if (oForm.From.value.length != 6 || isNaN(oForm.From.value))
		{
			alert("The bond number in 'From' field is invalid");
			oForm.From.focus();
			return false;
		}
	}
	else
	{
		if (oForm.To.value.length > 0)
		{
			alert("Starting bond number must be specified");
			oForm.From.focus();
			return false;
		}
	}

	if (oForm.To.value.length > 0)
	{
		if (oForm.To.value.length != 6 || isNaN(oForm.To.value))
		{
			alert("The bond number in 'To' field is invalid");
			oForm.To.focus();
			return false;
		}
	}
	else
	{
		if (oForm.From.value.length > 0)
		{
			alert("Ending bond number must be specified");
			oForm.To.focus();
			return false;
		}
	}

	if (parseInt(oForm.From.value) > parseInt(oForm.To.value))
	{
		alert("The bond number in 'From' field must be smaller than the bond number in 'To' field");
		oForm.From.focus();
		return false;
	}
	
	if (oForm.From.value.length == 0 && oForm.To.value.length == 0 && oForm.List.value.length == 0)
	{
		alert("Please enter some values to search");
		return false;
	}
	
	return true;
}