function checkrequired(which) {
         var pass=true;
         if (document.images) {
                 radiopass = false;
                 for (i=0;i<which.length;i++) {
                     var tempobj=which.elements[i];

                     if (tempobj.type=="textarea"){
                            if(tempobj.value==''){
                                pass= false;
                            }else{
                                 desc = tempobj.value;
                                 if(desc.length > 500){
                                     alert("Your description has exceeded 500 words. Please shorten the description and try again.");
                                     return false;
                                 }
                            }
                     }else if(tempobj.type=="text"){
                        if(tempobj.value == ''){
                            pass = false;
                        }else{
                               var reg = new RegExp("^[0-9]*[\.]?[0-9]?[0-9]?$");
                               var test = reg.test(tempobj.value);
                               if(!test){
                                  alert("Please enter a valid, numeric price in the 'Price' field. If you would like to list the price as free, please enter '0' in the 'Price' field.");
                                  return false;
                               }else{
                                   var num = new Number(tempobj.value);
                                   if(num == NaN){
                                      alert("Please enter a valid, numeric price in the 'Price' field. If you would like to list the price as free, please enter '0' in the 'Price' field.");
                                      return false;
                                   }else if(num.valueOf() > 500){
                                         alert("The price you have listed is greater than $500. Only items less than $500 can be submitted. If you would like to sell an item over $500, please place classified ad by clicking the 'Classified Ad' link in the left links menu of northcountrynow.com.");
                                         return false;
                                   }
                               }
                        }

                     }else if(tempobj.type =="select-one"){
                          if(tempobj.value.substring(0,1) == "-" || tempobj.value==""){
                             pass = false;
                          }
                     }

                     if(pass == false){
                      break;
                     }
                }

         }

         if (!pass) {
            shortFieldName=tempobj.name.toUpperCase();
            alert("Please make sure the " + shortFieldName + " field was properly completed.");
            return false;
         }
         else{
             return true;
         }

}




