var kk_clear = new Array();
function kk_clear_field(thisId) {
 if(!kk_clear[thisId.form.name]) {
  thisId.value = '';
  kk_clear[thisId.form.name] = true;
 } 
}


function get_product_lines(thisId) {
 var pl =  document.getElementById("product_lines");
 var plf =  document.getElementById("product_lines_field");
 var Id = thisId.options[thisId.selectedIndex].value;
 if(array = product_lines[Id]) {
  pl.style.display = 'block';
  plf.options.length = 2;
  for(i = 0; i < array.length; i++) {
    plf.options[i + 2] = new Option(array[i][1], array[i][0]);
  }
 }
}
