function validateContinue(thisform)
{
	with(thisform)
	{
		if(txtBigCases.value!='' && isNaN(txtBigCases.value))
		{
			showError('Big Cases','Numbers');
			txtBigCases.focus();
			return false;
		}
		if(txtMidiumCases.value!='' && isNaN(txtMidiumCases.value))
		{
			showError('Medium Cases','Numbers');
			txtMidiumCases.focus();
			return false;
		}
		if(txtSmallCases.value!='' && isNaN(txtSmallCases.value))
		{
			showError('Small Cases','Numbers');
			txtSmallCases.focus();
			return false;
		}
		if(txtPickupDate.value=='')
		{
			showAlert('Pickup Date');
			txtPickupDate.focus();
			return false;
		}
		
		if(hour.value=='Hour' || minute.value=='Minute')
		{
			showAlert('Pickup Time');
			hour.focus();
			return false;
		}
		
		if(txtPickupAddress.value=='')
		{
			showAlert('Pickup Address');
			txtPickupAddress.focus();
			return false;
		}
		if(txtPostCode.value=='')
		{
			showAlert('Pickup Post Code');
			txtPostCode.focus();
			return false;
		}
		if(txtDestinationAddress.value=='')
		{
			showAlert('Destination Address');
			txtDestinationAddress.focus();
			return false;
		}
		
	}
}
function showAlert(msg)
{
	var pickup_date=document.getElementById("pickup_date");
	var pickup_time=document.getElementById("pickup_time");
	var pickup_address=document.getElementById("pickup_address");
	var destination_address=document.getElementById("destination_address");
	var pickup_postcode=document.getElementById("pickup_postcode");
	pickup_date.innerHTML='<strong><font color="#ffa803">Pickup Date*</font><strong>';
	pickup_time.innerHTML='<strong><font color="#ffa803">Pickup Time*</font></strong>';
	pickup_address.innerHTML='<strong><font color="#ffa803">Pickup Address*</font></strong>';
	destination_address.innerHTML='<strong><font color="#ffa803">Destination Address*</font></strong>';
	pickup_postcode.innerHTML='<strong><font color="#ffa803">Post Code*</font></strong>';
	alert('Please fill the '+msg+' field');
	return;
}
function showError(msg,errType)
{
	alert("Invalid data for "+msg+". Only "+errType+" are allowed!");
	return;
}
function Back()
{
	var flag=window.confirm("Click OK to go back, Cancel to stop");
	if(flag==true)
		document.backShowPrice.submit();
}
