// build js file var calpop = new CalendarPopup("caldiv"); calpop.showNavigationDropdowns(); calpop.setCssPrefix("CAL"); calpop.addDisabledDates(null,"2012-02-04"); womOn(); if(_craandesigns_domain == "movingorbit.com"){ //INTERNATIONAL_LINK = "http://movingorbit.com/International_Movers.html"; TRUCKING_LINK = "http://movingorbit.com/Truck_Rental.html"; SELF_SERVICE = "http://www.movingorbit.com/self_moving_services.html"; STORAGE ="http://www.movingorbit.com/Storage.html"; }else{ STORAGE = "http://www.movingorbit.com/Storage.html"; } function storeZip(item, item2){ if(document.MovingForm.zip_hidden.value == "from") document.MovingForm.zip.value = item; else document.MovingForm.movingZip.value = item; } var auto = false; var alarmOwn = false; var alarmRent = false; function setAuto(){ auto = !auto; } function toggleAuto(item){ var d = document.getElementById('auto_shipping'); if(item == 'yes'){ d.style.display = 'block'; auto = true; } else { d.style.display = 'none'; auto = false; } } function toggleOwnRent(item){ if(item == 'own'){ var d = document.getElementById('alarm_own'); d.style.display = 'block'; d = document.getElementById('alarm_rent'); d.style.display = 'none'; alarmOwn = true; } else { var d = document.getElementById('alarm_rent'); d.style.display = 'block'; d = document.getElementById('alarm_own'); d.style.display = 'none'; alarmRent = false; } } function toggleStorage(item){ if(item == 'yes'){ wantStorage = true; } else { wantStorage = false; } } var wantStorage = false; function setStorageBoolean(){ wantStorage = !wantStorage; } function doMoveType(item){ if(item == "international" ){ //window.location = INTERNATIONAL_LINK; doFullService(); doHideAutoshipping(); doHideStorage(); doInternational(); } if(item == "auto_shipping" ){ doHideAutoshipping(); doHideStorage(); doHideInternational(); doAutoshipping(); } if(item == "residential" || item == "office" || item == "small" || item == "last_minute"){ doHideAutoshipping(); doHideStorage(); doHideInternational(); doFullService(); } if(item == "uload" ){ window.location = SELF_SERVICE; } if(item == "storage"){ if(STORAGE != ""){ window.location = STORAGE; }else{ doHideAutoshipping(); doHideFullService(); doHideInternational(); doStorage(); } } if(item == "truck_rental"){ window.location = TRUCKING_LINK; } } function radioValid(field, radios, text) { radios=radios-1; var varChecked=false; for(i=0;i<=radios;i++) { if(field[i].checked) { varChecked=true; } } if (varChecked==false){ field[0].focus(); return "Please select " + text + ".\n"; }else{ return ""; } } function selectValid(field, text) { if (field[0].selected){ field.focus(); return "Please select a " + text + ".\n"; }else{ return ""; } } function emailValid(mailfield, len) { var email = mailfield.value; var filter =/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/; if (!filter.test(email)) { return 'Please provide a valid email address'; } return ''; } function lengthValid(field, len, text) { if (field.value.length < len) { field.focus(); return "Please enter a valid " + text + ".\n"; }else{ return ""; } } function getSelectValue(field){ var item = field.selectedIndex; if (item == -1) return ""; else return (field.options[item].value == "") ? field.options[item].text : field.options[item].value; } function doValidate(form){ valid = ""; validtype = selectValid(form.type,"Type of move"); var item = form.type.value; if( validtype.length > 0){ alert(validtype); return false; } if(item == "international" ){ valid += selectValid(form.access,"Size of move"); var field = getObject("mcountry"); valid += selectValid(field,"Moving to Country"); if(getSelectValue(field) == "USA"){ valid += lengthValid(form.movingZip, 5,"Moving to zip"); } field = getObject("fromcountry"); valid += selectValid(field,"Moving from Country"); if(getSelectValue(field) == "USA"){ valid += lengthValid(form.zip, 5,"Moving from zip"); } } if(item == "auto_shipping" || auto){ valid += lengthValid(form.zip, 5,"Moving from zip"); valid += lengthValid(form.movingZip, 5,"Moving to zip"); valid += lengthValid(form.model, 2, "Make of the car"); valid += lengthValid(form.modelType,2,"Model Type"); valid += selectValid(form.carType,"Car type"); valid += lengthValid(form.year,4,"Year (YYYY)"); valid += radioValid(form.modelStatus,2,"Is the vehicle in running condition?"); } if(item == "residential" || item == "office" || item == "uload" || item == "small" || item == "last_minute"){ valid += selectValid(form.access,"Size of move"); valid += lengthValid(form.zip, 5,"Moving from zip"); valid += lengthValid(form.movingZip, 5,"Moving to zip"); valid += radioValid(form.want_auto,2,"Would you like an auto shipping Quote is required"); } if(item == "storage"){ valid += selectValid(form.storageType,"Storage Type"); valid += lengthValid(form.zip, 5,"Zip Code"); valid += selectValid(form.estimatedTime, "Estimated Time"); valid += selectValid(form.storageReason, "Storage Reason"); var st = getSelectValue(form.storageType); if(st == "storage"){ valid += selectValid(form.estimateSize, "Size Needed"); }else{ valid += selectValid(form.storageContainer, "Container Location"); } } valid += emailValid(form.email, 2); // valid += lengthValid(form.name, 5,"Full Name"); var fullname = form.name.value.split(" "); if(fullname.length < 2) valid += "Please enter a Full Name (e.g.: John Doe)\n"; valid += lengthValid(form.phone, 10,"Phone") valid += checkdate(document.MovingForm.datestr); //if(calculateFutureDate()) // valid += "Please enter a Future date, your move needs to be at least 1 day in advance\n"; if(valid.length > 0){ alert(valid); return false; } return true; } function doCountry(){ var field = getObject("fromcountry"); if(getSelectValue(field) == "USA") doZipFrom(); else doHideZipFrom(); } function doToCountry(){ var field = getObject("mcountry"); if(getSelectValue(field) == "USA") doZipTo(); else doHideZipTo(); } function doZipFrom(){ z = getObject("zipbox"); z.style.display = "block"; } function doHideZipFrom(){ z = getObject("zipbox"); z.style.display = "none"; } function doZipTo(){ z = getObject("ziptobox"); z.style.display = "block"; } function doHideZipTo(){ z = getObject("ziptobox"); z.style.display = "none"; } function doInternational(){ i = getObject("country_box"); i.style.display = "block"; i = getObject("country_box_to"); i.style.display = "block"; doToCountry(); doCountry(); } function doHideInternational(){ i = getObject("country_box"); i.style.display = "none"; i = getObject("country_box_to"); i.style.display = "none"; } function doAutoshipping(){ w = getObject("auto_shipping"); w.style.display = "block"; al = getObject("auto_shipping_link_box"); al.style.display = "none"; doZipFrom(); doZipTo(); } function doHideAutoshipping(){ w = getObject("auto_shipping"); w.style.display = "none"; al = getObject("auto_shipping_link_box"); al.style.display = "block"; doHideZipFrom(); doHideZipTo(); } function doFullService(){ w = getObject("weightbox"); w.style.display = "block"; doHideAutoshipping(); doZipFrom(); doZipTo(); } function doHideFullService(){ w = getObject("weightbox"); w.style.display = "none"; al = getObject("auto_shipping_link_box"); al.style.display = "none"; doHideZipFrom(); doHideZipTo(); } function doStorage(){ w = getObject("storage_type"); w.style.display = "block"; doZipFrom(); doHideZipTo(); doStorageType(); } function doHideStorage(){ w = getObject("storage_type"); w.style.display = "none"; doHideZipFrom(); doHideZipTo(); } function doStorageType(){ if(getSelectValue(document.MovingForm.storageType) == "mobile_storage"){ getObject("location_box").style.display = "block"; getObject("estimate_size_box").style.display = "none"; }else if(getSelectValue(document.MovingForm.storageType) == "storage"){ getObject("estimate_size_box").style.display = "block"; getObject("location_box").style.display = "none"; } } function calculateFutureDate(){ var input = document.MovingForm.datestr; //Set the two dates today=new Date(); var yearfield=input.value.split("-")[0]; var monthfield=input.value.split("-")[1]; var dayfield=input.value.split("-")[2]; var furture = new Date(yearfield, monthfield-1, dayfield); //Month is 0-11 in JavaScript //Set 1 day in milliseconds var one_day=1000*60*60*24; //Calculate difference btw the two dates, and convert to days if(Math.ceil(( furture.getTime() - today.getTime() )/(one_day)) > 0) return false; return true; } function checkdate(input){ var validformat=/^\d{4}-\d{2}-\d{2}$/ //Basic check for format validity var returnval=false if (!validformat.test(input.value)) return "Invalid Date Format (yyyy-MM-dd).\n"; else{ //Detailed check for valid date ranges var yearfield=input.value.split("-")[0]; var monthfield=input.value.split("-")[1]; var dayfield=input.value.split("-")[2]; var dayobj = new Date(yearfield, monthfield-1, dayfield) if ((dayobj.getMonth()+1!=monthfield)||(dayobj.getDate()!=dayfield)||(dayobj.getFullYear()!=yearfield)) return "Invalid date (yyyy-MM-dd)\n"; else returnval=true } if (returnval==false) input.select() return ""; } document.write(''); document.write('

FREE Moving Quote

'); document.write('
'); document.write(''); if(typeof(window['formtype']) != 'undefined')document.write(''); document.write('Type of move: *

Size of move: *
Storage type:*

Storage Time:*

Storage Reason:*
Container Location:
Size needed:
Approximate move date: *
Click Here to Pick up the timestamp
Country From:
'); document.write('
Moving From Zip Code: *
Zip Finder

Country To:

Moving to Zip Code: *
Zip Finder
make:

model:

type of vehicle:

year:

is the vehicle in running condition?
Yes No

Email *

Name: *

Phone: *


Yes, would like to receive moving tips & offers?

Privacy Policy



Validate TRUSTe privacy certification
' + '
');