// get max values from selected min value in form

function getMaxSF(theForm){
	//alert("getting maxSF");
	var minSF = 0;
	var maxSF = 0;
	for (i=0, n=theForm.sqftmin.length; i<n; i++) {
        if (theForm.sqftmin[i].checked) {
            minSF = theForm.sqftmin[i].value;
            break;
        } 
    }
    if (minSF==7000) {
    	theForm.sqftmax.value=25999;
    }
    else if (minSF==26000) {
    	theForm.sqftmax.value=50999;
    }
    else if (minSF==51000) {
    	theForm.sqftmax.value=100999;
    }
	else if (minSF==101000) {
    	theForm.sqftmax.value=999999;
    }
    else {
    	alert ("Please Select Building Size");
    	return false;
    }
    //alert ("Range = " + minSF + " to " + theForm.sqftmax.value);
	return true;
}


function getMaxAcres(theForm){
	//alert("getting maxAcres");
	var minAcres = 0;
	var maxAcres = 0;
	for (i=0, n=theForm.acremin.length; i<n; i++) {
        if (theForm.acremin[i].checked) {
            minAcres = theForm.acremin[i].value;
            break;
        } 
    }
    if (minAcres==1) {
    	theForm.acremax.value=25;
    }
    else if (minAcres==26) {
    	theForm.acremax.value=50;
    }
    else if (minAcres==51) {
    	theForm.acremax.value=100;
    }
	else if (minAcres==101) {
    	theForm.acremax.value=99999;
    }
    else {
    	alert ("Please Select Acreage");
    	return false;
    }
    //alert ("Range = " + minAcres + " to " + theForm.acremax.value);
	return true;
}

