function AddTo(theSel, sumFieldName){
var n =  document.prod.qty.value;
var m = document.prod.productpr.value;
var z = n * m;

  var theForm = theSel.form;
  var total = 0;
  for(var i=0;i<selList.length;i++){
	var selVal = theForm[selList[i]].value.split(/[~]/);
	if(selVal.length==2){
	 selVal = selVal[1].replace(/[^\d\.]/g,"")*1;
   } else {
	 selVal = 0;
   }
	total += selVal;
	q = total/1 * n;
  }
  theForm[sumFieldName].value = (q/1 + z/1).toFixed(2);
}