<!-- validateandsubmit.js -->
<!-- Shorewest Real Estate -->
<!-- Updated: 03/30/2004 -->

  function noEntry(objname, objDesc) {
     mt=objname.value;
     if ((mt.length<1)||(mt.substring(0,6)=="******")) {
       return false;
     }
     else {
        return true;
     }
  }

  function noEntrySelect(objname,objDesc) {
     mt=objname
     if ((objname.length<1)||(objname.substring(0,6)=="******")) {
       return false;
     }
     else {
        return true;
     }
  }

  function validateandsubmit( f ) {
       var count = 0;
        
         if ( noEntrySelect(getSelectedDesc(document.form1.ImprovementType), " ") == true )
                {
                   count++;
                }


         if ( count < 1  ) {
           alert("You Must Enter a specific Property Type to continue:\r\n");
             return false;
        }

  }

      function getSelected(o_SelectList) {
       var s_selectListing = "";
     var boxLength = o_SelectList.length;

    var count = 0;
    if (boxLength != 0) {
      for (i = 0; i < boxLength; i++) {
        if (count == 0) {
           if (o_SelectList[i].selected == true) {
                      // alert("Selected Value 1:\r\n" + o_SelectList.options[i].value);
             s_selectListing = o_SelectList.options[i].value;
             count++;
           }
        }
        else {
            if (o_SelectList[i].selected == true) {
                      // alert("Selected Value 1:\r\n" + o_SelectList.options[i].value);
             s_selectListing = s_selectListing + "," + o_SelectList.options[i].value;
             count++;
          }
        }
      }
    }
       return s_selectListing;
  }
    function getSelectedDesc(o_SelectList) {
       var s_selectListing = "";
     var boxLength = o_SelectList.length;

    var count = 0;
    if (boxLength != 0) {
      for (i = 0; i < boxLength; i++) {
        if (count == 0) {
           if (o_SelectList[i].selected == true) {
             // alert("Selected Value 1:\r\n" + o_SelectList.options[i].text);
             s_selectListing = o_SelectList.options[i].text;
             count++;
           }
        }
        else {
            if (o_SelectList[i].selected == true) {
           //   alert("Selected Value 2:\r\n" + o_SelectList.options[i].text);
             s_selectListing = s_selectListing + "," + o_SelectList.options[i].text;
             count++;
          }
        }
      }
    }
       return s_selectListing;
  }
