function countproducts() {
     max = 1501;
     anz = document.pdmorder.productsarea.value.length+1;
     document.pdmorder.productsshow.value = max - anz;
     if(anz >= max){
          document.getElementById("productsarea").style.color="#ed1c23";
     } else
     if(anz < max) {
     document.getElementById("productsarea").style.color="#717171";
     }
}
function countreferences() {
     max = 501;
     anz = document.pdmorder.referencesarea.value.length+1;
     document.pdmorder.referencesshow.value = max - anz;
     if(anz >= max){
          document.getElementById("referencesarea").style.color="#ed1c23";
     } else
     if(anz < max) {
     document.getElementById("referencesarea").style.color="#717171";
     }
}
