//<!--
function CheckBlanks(){
	if(document.postfrm.fullname.value == ""){
  		alert("Please enter your Full Name")
  		document.postfrm.fullname.focus();
  		return false;
  	}
	if(document.postfrm.address.value == ""){
  		alert("Please enter your Address")
  		document.postfrm.address.focus();
  		return false;
  	}
	if(document.postfrm.city.value == ""){
  		alert("Please enter your City")
  		document.postfrm.city.focus();
  		return false;
  	}
	if(document.postfrm.dayphone.value == ""){
  		alert("Please enter your Daytime phone number")
  		document.postfrm.dayphone.focus();
  		return false;
  	}
	if(document.postfrm.eveningphone.value == ""){
  		alert("Please enter your Evening phone number")
  		document.postfrm.eveningphone.focus();
  		return false;
  	}
	if(document.postfrm.email.value == ""){
  		alert("Please enter your Email Address")
  		document.postfrm.email.focus();
  		return false;
  	}

	checkCheckBoxesAreas();
	checkCheckBoxesProducts();
	checkDropdown_HeardAboutUs(postfrm.hearabout.selectedIndex);
	checkDropdown_TimeSlot(postfrm.timeslot.selectedIndex);
	
	GetMonthSelected(postfrm.mnth.selectedIndex);
	GetDaySelected(postfrm.dy.selectedIndex);
	GetYearSelected(postfrm.yrs.selectedIndex);
	return true;
}

function checkCheckBoxesAreas() {
	var results = 0;
	for (i=0, n=postfrm.areas.length; i<n; i++) {
  		if (postfrm.areas[i].checked) {
      		var checkvalue = postfrm.areas[i].value;
      		results++;
			//break;
   		}
	}
	if (results == 0) {
		alert ('Please select at least one area within the home.');
		return false;
	}
}

function checkCheckBoxesProducts() {
	var results = 0;
	for (i=0, n=postfrm.products.length; i<n; i++) {
  		if (postfrm.products[i].checked) {
      		var checkvalue = postfrm.products[i].value;
      		results++;
			//break;
   		}
	}
	if (results == 0) {
		alert ('Please select at least one Product category.');
		return false;
	}
}

function checkDropdown_HeardAboutUs(choice) {
    if (choice == 0) {
       alert ('Please tell us how you heard about us.\n');
	   return false;
    }
}

function checkDropdown_TimeSlot(choice) {
    if (choice == 0) {
       alert ('Please select a Time Slot.\n');
	   return false;
    }
} 

function GetDaySelected(choice) {
    if (choice == "" || choice > 31 || choice < 1) {
       alert ('Please select a Day of the Week for your appointment.\n');
	   return false;
    }
} 

function GetMonthSelected(choice) {
    if (choice == "" || choice > 12 || choice < 1) {
       alert ('Please select a Month for your appointment.\n');
	   return false;
    }
}

function GetYearSelected(choice) {
    if (choice == "") {
		choice = postfrm.yrs[0].selected;
       //alert ('Please select a Year for your appointment. ' + choice);
	   //return false;
    }
} 

//-->
