function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function RP_Fill_Fields(partnum,name,price) 
{ //v3.0
  // MM_setTextOfTextfield('chassis_part_num','',partnum);
  // MM_setTextOfTextfield('chassis_price','',price);
  // MM_setTextOfTextfield('chassis_name','',name);
  for (var LoopIndex = 0; LoopIndex < document.form1.select_partnum.length; LoopIndex++)
  {
    if (document.form1.select_partnum.options[LoopIndex].text == partnum) document.form1.select_partnum.selectedIndex=LoopIndex;
  }
  RP_Select('1');
}

function RP_Select (input) 
{ //v3.0
  if (input == 1) index=document.form1.select_partnum.selectedIndex;
  if (input == 2) index=document.form1.select_name.selectedIndex;
  // if (input == 3) index=document.form1.select_price.selectedIndex;
  document.form1.select_partnum.selectedIndex=index;
  document.form1.select_name.selectedIndex=index;
  // document.form1.select_price.selectedIndex=index;
}