	function check_the_form_page_01(phone_only) {
		var fill_this = "Please fill this out :\n";
		var errors = 0;
		
		
		
		// check the phone only
		if(phone_only==true) {
							//phone 
							if(this.document.forms['0'].elements['phone'].value.length<10) {
								fill_this+="Phone\n";
								errors++;
										mark_red('phone');
							}else {
								mark_black('phone');
							}
		}else {
				//first name
				if(this.document.forms['frmestimate'].elements['fname'].value.length<2) {
					fill_this+="First Name\n";
					errors++;
					mark_red('fname');
				}else {
					mark_black('fname');
				}
						//last name
				if(this.document.forms['0'].elements['lname'].value.length<2) {
					fill_this+="Last Name\n";
					errors++;
							mark_red('lname');
				}else {
					mark_black('lname');
				}
						//phone 
				if(this.document.forms['0'].elements['phone'].value.length<10) {
					fill_this+="Phone\n";
					errors++;
							mark_red('phone');
				}else {
					mark_black('phone');
				}
						//email name
				if(this.document.forms['0'].elements['email'].value.length<6) {
					fill_this+="E-mail\n";
					errors++;
							mark_red('email');
				}else {
					mark_black('email');
				}
				
				
								//orig address
				if(this.document.forms['0'].elements['orig_address'].value.length<3) {
					fill_this+="Origin Address\n";
					errors++;
							mark_red('orig_address');
				}else {
					mark_black('orig_address');
				}
								//orig city
				if(this.document.forms['0'].elements['orig_city'].value.length<2) {
					fill_this+="Origin City\n";
					errors++;
							mark_red('orig_city');
				}else {
					mark_black('orig_city');
				}
								//orig state
				if(this.document.forms['0'].elements['orig_state'].value=='none') {
					fill_this+="Origin State\n";
					errors++;
							mark_red('orig_state');
				}else {
					mark_black('orig_state');
				}
								//orig zip
				if(this.document.forms['0'].elements['orig_zip'].value.length<5) {
					fill_this+="Origin Zip\n";
					errors++;
							mark_red('orig_zip');
				}else {
					mark_black('orig_zip');
				}
				
				//destination
								//dest address
				if(this.document.forms['0'].elements['dest_address'].value.length<3) {
					fill_this+="Destination Address\n";
					errors++;
							mark_red('dest_address');
				}else {
					mark_black('dest_address');
				}
								//dest city
				if(this.document.forms['0'].elements['dest_city'].value.length<2) {
					fill_this+="Destination City\n";
					errors++;
							mark_red('dest_city');
				}else {
					mark_black('dest_city');
				}
								//dest state
				if(this.document.forms['0'].elements['dest_state'].value=='none') {
					fill_this+="Destination State\n";
					errors++;
							mark_red('dest_state');
				}else {
					mark_black('dest_state');
				}
								//dest zip
				if(this.document.forms['0'].elements['dest_zip'].value.length<5) {
					fill_this+="Destination Zip\n";
					errors++;
							mark_red('dest_zip');
				}else {
					mark_black('dest_zip');
				}
				
										//dest city
				if(this.document.forms['0'].elements['dest_city'].value.length<2) {
					fill_this+="Destination City\n";
					errors++;
							mark_red('dest_city');
				}else {
					mark_black('dest_city');
				}
				//                moving dates
				/////////////////////////////////////////////////////////////
				if((this.document.forms['0'].elements['move_date'].value=='mm/dd/yyyy')||
					(this.document.forms['0'].elements['move_date'].value.length<10	)) {
					fill_this+="Moving Date\n";
					errors++;
							mark_red('move_date');
				}else {
					mark_black('move_date');
				}
				
				if((this.document.forms['0'].elements['move_date_alt'].value=='mm/dd/yyyy') ||
					(this.document.forms['0'].elements['move_date_alt'].value.length<10)){
					fill_this+="Alternate Moving Date\n";
					errors++;
							mark_red('move_date_alt');
				}else {
					mark_black('move_date_alt');
				}
		}//end checking phone only

		
		
		
		if(errors>0) {
			fill_this ="Some fields have not been filled out correctly.\nThey are marked red.\nPlease correct them and submit again\n"
			window.alert(fill_this);
			return false;
		}
		return true;
	}

		function mark_red(object) {
			var obj = this.document.getElementById(object);		
			obj.style.color='#ff0033';		
		}
		
		function mark_black(object) {
			var obj = this.document.getElementById(object);		
			obj.style.color='#000000';
		}		