<!--




var dtCh= "/";
var minYear=1900;
var maxYear=2100;
function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    return true;
}
function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}
function daysInFebruary (year){
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strDay=dtStr.substring(0,pos1)
	var strMonth=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1)
	strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1)
	strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1)
	strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		alert("The date format should be : dd/mm/yyyy")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		alert("Please enter a valid month")
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day >	daysInMonth[month])
	{
		alert("Please enter a valid day")
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
			alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		alert("Please enter a valid date")
		return false
	}
return true
}
function numbersonly()
{
if (event.keyCode<48||event.keyCode>57)
return false
}
function FormValidator(theForm)
{



	if(document.form1.firstName.value.length==0)
		{
			alert("First Name Empty");
			document.form1.firstName.focus();
			return false;
		}

	

	if(document.form1.lastName.value.length==0)
		{
		alert("Last Name Empty");
		document.form1.lastName.focus();
		return false;
		}

	if(document.form1.emailid.value.length==0)
		{
		alert("E-Mail ID Empty");
		document.form1.emailid.focus();
		return false;
		}

	if(document.form1.emailid.value.length!=0)
		{
		if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form1.emailid.value))
			{ ; }
		else{
		alert ("Invalid E-mail Address! Please re-enter.");
		document.form1.emailid.focus();
		return false;
		    }
		}



	if(document.form1.pickup_Address2.value.length==0)
		{
		alert("H.No/Street Empty");
		document.form1.pickup_Address2.focus();
		return false;
		}

	if(document.form1.pickup_city.value.length==0)
		{
		alert("city Empty");
		document.form1.pickup_city.focus();
		return false;
		}


	


	if(document.form1.pickup_Mobile.value.length==0)
		{

		alert("Mobile phone Empty");
		document.form1.pickup_Mobile.focus();
		return false;
		}




	if(document.form1.pickup_State.value.length ==0)
		{

		alert("State Field Empty");
		document.form1.pickup_State.focus();
		return false;
		}

	if(document.form1.pickup_Floor_level.value.length ==0)
		{
		
		alert("Floor Level Empty");
		document.form1.pickup_Floor_level.focus();
		return false;
		}
	if(document.form1.pickup_Country.value.length ==0)
		{
		
		alert("Country Empty");
		document.form1.pickup_Country.focus();
		return false;
		}

	
	
	
if(document.form1.delivery_city.value.length ==0)
		{
		
		alert("City Empty");
		document.form1.delivery_city.focus();
		return false;
		}
		

if(document.form1.delivery_State.value.length ==0)
		{
		
		alert("State Empty");
		document.form1.delivery_State.focus();
		return false;
		}

if(document.form1.delivery_Country.value.length ==0)
		{

		alert("Country Empty");
		document.form1.delivery_Country.focus();
		return false;
		}

	
/*

	if(document.form1.pickup_city.value.length ==0)
		{
		alert("City Field Empty");
		document.form1.pickup_city.focus();
		return false;
		}
	if(document.form1.pickup_country.value.length ==0)
		{
		alert("Country Field Empty");
		document.form1.pickup_country.focus();
		return false;
		}
	var dt=document.form1.pickup_packing_date;
	if (isDate(dt.value)==false)
			{
			dt.focus()
			return false
			}
	if(document.form1.delivery_Address.value.length ==0)
		{
		alert("Deliver To House Number Empty");
		document.form1.delivery_Address.focus();
		return false;
		}
	if(document.form1.delivery_state.value.length ==0)
		{
		alert("Deliver To State Empty");
		document.form1.delivery_state.focus();
		return false;
		}
	if(document.form1.delivery_city.value.length ==0)
		{
		alert("Deliver To City Empty");
		document.form1.delivery_city.focus();
		return false;
		}
	if(document.form1.delivery_country.value.length ==0)
		{
		alert(" Delivery Country Name Empty");
		document.form1.delivery_country.focus();
		return false;
		}
	var dt=document.form1.delivery_moving_date;
		if (isDate(dt.value)==false)
		{
		dt.focus()
		return false
		}
if(((document.form1.Ancillary_Value_1.value.length!=0)||(document.form1.Ancillary_Uplift_Town_1.value.length!=0)||(document.form1.Ancillary_Uplift_Date1.value.length!=0)||(document.form1.Ancillary_Delivery_Town_1.value.length!=0)||	(document.form1.Ancillary_Delivery_Date1.value.length!=0)) &&(document.form1.Ancillary_Details_1.value.length==0))
{
alert("Plese Fill the Main Anchillary Detail Field First.");
document.form1.Ancillary_Details_1.focus();
return false;
}
if(((document.form1.Ancillary_Value_2.value.length!=0)||(document.form1.Ancillary_Uplift_Town_2.value.length!=0)||(document.form1.Ancillary_Uplift_Date2.value.length!=0)||(document.form1.Ancillary_Delivery_Town_2.value.length!=0)||	(document.form1.Ancillary_Delivery_Date2.value.length!=0)) &&(document.form1.Ancillary_Details_2.value.length==0))
{
alert("Plese Fill the Main Anchillary Detail Field First.");
document.form1.Ancillary_Details_2.focus();
return false;
}
if(((document.form1.Ancillary_Value_3.value.length!=0)||(document.form1.Ancillary_Uplift_Town_3.value.length!=0)||(document.form1.Ancillary_Uplift_Date3.value.length!=0)||(document.form1.Ancillary_Delivery_Town_3.value.length!=0)||	(document.form1.Ancillary_Delivery_Date3.value.length!=0)) &&(document.form1.Ancillary_Details_3.value.length==0))
{
alert("Plese Fill the Main Anchillary Detail Field First.");
document.form1.Ancillary_Details_3.focus();
return false;
}
if(((document.form1.Ancillary_Value_4.value.length!=0)||(document.form1.Ancillary_Uplift_Town_4.value.length!=0)||(document.form1.Ancillary_Uplift_Date4.value.length!=0)||(document.form1.Ancillary_Delivery_Town_4.value.length!=0)||	(document.form1.Ancillary_Delivery_Date4.value.length!=0)) &&(document.form1.Ancillary_Details_4.value.length==0))
{
alert("Plese Fill the Main Anchillary Detail Field First.");
document.form1.Ancillary_Details_4.focus();
return false;
}
if(document.form1.Ancillary_Details_1.value.length !=0)
{
if(document.form1.Ancillary_Value_1.value.length ==0)
{
alert("Ancillary Value 1 Empty");
document.form1.Ancillary_Value_1.focus();
return false;
}
if(document.form1.Ancillary_Uplift_Town_1.value.length ==0)
{
alert("Town Empty");
document.form1.Ancillary_Uplift_Town_1.focus();
return false;
}
var dt=document.form1.Ancillary_Uplift_Date1;
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
if(document.form1.Ancillary_Delivery_Town_1.value.length ==0)
{
alert("Town Empty");
document.form1.Ancillary_Delivery_Town_1.focus();
return false;
}
var dt=document.form1.Ancillary_Delivery_Date1;
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
}
if(document.form1.Ancillary_Details_2.value.length !=0)
{
if(document.form1.Ancillary_Value_2.value.length ==0)
{
alert("Value Empty");
document.form1.Ancillary_Value_2.focus();
return false;
}
if(document.form1.Ancillary_Uplift_Town_2.value.length ==0)
{
alert("Uplift Town Empty");
document.form1.Ancillary_Uplift_Town_2.focus();
return false;
}
var dt=document.form1.Ancillary_Uplift_Date2
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
if(document.form1.Ancillary_Delivery_Town_2.value.length ==0)
{
alert("Delivery Town Empty");
document.form1.Ancillary_Delivery_Town_2.focus();
return false;
}
var dt=document.form1.Ancillary_Delivery_Date2;
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
}
if(document.form1.Ancillary_Details_3.value.length !=0)
{
if(document.form1.Ancillary_Value_3.value.length ==0)
{
alert("Value Empty");
document.form1.Ancillary_Value_3.focus();
return false;
}
if(document.form1.Ancillary_Uplift_Town_3.value.length ==0)
{
alert("Uplifat Town Empty");
document.form1.Ancillary_Uplift_Town_3.focus();
return false;
}
var dt=document.form1.Ancillary_Uplift_Date3;
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
if(document.form1.Ancillary_Delivery_Town_3.value.length ==0)
{
alert("Delivery Town Empty");
document.form1.Ancillary_Delivery_Town_3.focus();
return false;
}
var dt=document.form1.Ancillary_Delivery_Date3;
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
}
if(document.form1.Ancillary_Details_4.value.length !=0)
{
if(document.form1.Ancillary_Value_4.value.length ==0)
{
alert("Value Empty");
document.form1.Ancillary_Value_4.focus();
return false;
}
if(document.form1.Ancillary_Uplift_Town_4.value.length ==0)
{
alert("Uplift Town Empty");
document.form1.Ancillary_Uplift_Town_4.focus();
return false;
}
var dt=document.form1.Ancillary_Uplift_Date4;
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
if(document.form1.Ancillary_Delivery_Town_4.value.length ==0)
{
alert("Delivery Town Empty");
document.form1.Ancillary_Delivery_Town_4.focus();
return false;
}
var dt=document.form1.Ancillary_Delivery_Date4;
if (isDate(dt.value)==false)
{
dt.focus()
return false
}
}
if(document.form1.otherItem1_qty.value.length !=0)
{
if(document.form1.otherItem1.value.length ==0)
{
alert("Other Item1  Empty");
document.form1.otherItem1.focus();
return false;
}
}
if(document.form1.otherItem1.value.length !=0)
{
if(document.form1.otherItem1_qty.value.length ==0)
{
alert("Other Item1 Qty Empty");
document.form1.otherItem1_qty.focus();
return false;
}
}
if(document.form1.specialCare1_qty.value.length !=0)
{
if(document.form1.specialCare1.value.length==0)
{
alert("SpecialCare1 Empty");
document.form1.specialCare1.focus();
return false;
}
}
if(document.form1.specialCare1.value.length!=0)
{
if(document.form1.specialCare1_qty.value.length ==0)
{
alert("SpecialCare1 Qty Empty");
document.form1.specialCare1_qty.focus();
return false;
}
}
if(document.form1.otherItem2_qty.value.length !=0)
{
if(document.form1.otherItem2.value.length ==0)
{
alert("Item2 Empty");
document.form1.otherItem2.focus();
return false;
}
}
if(document.form1.otherItem2.value.length !=0)
{
if(document.form1.otherItem2_qty.value.length ==0)
{
alert(" Item2 Qty Empty");
document.form1.otherItem2_qty.focus();
return false;
}
}
if(document.form1.specialCare2.value.length !=0)
{
if(document.form1.specialCare2_qty.value.length ==0)
{
alert(" SpecialCare2 Qty Empty");
document.form1.SpecialCare2_qty.focus();
return false;
}
}
if(document.form1.specialCare2_qty.value.length !=0)
{
if(document.form1.specialCare2.value.length ==0)
{
alert(" SpecialCare2  Empty");
document.form1.specialCare2.focus();
return false;
}
}
if(document.form1.otherItem3_qty.value.length!=0)
{
if(document.form1.otherItem3.value.length ==0)
{
alert("Item3 Empty");
document.form1.otherItem3.focus();
return false;
}
}
if(document.form1.otherItem3.value.length !=0)
{
if(document.form1.otherItem3_qty.value.length==0)
{
alert("Item3 Qty Empty");
document.form1.otherItem3_qty.focus();
return false;
}
}
if(document.form1.specialCare3_qty.value.length !=0)
{
if(document.form1.specialCare3.value.length ==0)
{
alert("Special3 Empty");
document.form1.specialCare3.focus();
return false;
}
}
if(document.form1.specialCare3.value.length !=0)
{
if(document.form1.specialCare3_qty.value.length ==0)
{
alert("Special3 Qty Empty");
document.form1.specialCare3_qty.focus();
return false;
}
}
if(document.form1.otherItem4.value.length !=0)
{
if(document.form1.otherItem4_qty.value.length==0)
{alert("Item 4 empty");
document.form1.otherItem4_qty.focus();
return false;
}
}
if(document.form1.otherItem4_qty.value.length!=0)
{
if(document.form1.otherItem4.value.length ==0)
{
alert("Other Item Field empty");
document.form1.otherItem4.focus();
return false;
}
}
if(document.form1.specialCare4.value.length!=0)
{
if(document.form1.specialCare4_qty.value.length==0)
{
alert("Special4 Qty Empty");
document.form1.specialCare4_qty.focus();
return false;
}
}
if(document.form1.specialCare4_qty.value.length!=0)
{
if(document.form1.specialCare4.value.length==0)
{
alert("Special4 Empty");
document.form1.specialCare4.focus();
return false;
}
}
*/
alert("Thank You. You will receive the quote as soon as possible");
document.form1.submit();

}

-->