<!--Begin //
// var iitem1,iitem2,iitem3,iitem4,iitem5;
var arrayindex_bone=new Array();
var arrayindex_cpu=new Array();
var arrayindex_mem=new Array();
var arrayindex_hdd=new Array();
var arrayindex_fdd=new Array();
var arrayindex_cdrom=new Array();
var arrayindex_vga=new Array();
var arrayindex_os=new Array();
var arrayindex_os1=new Array();
var arrayindex_kb=new Array();
var arrayindex_mouse=new Array();
var arrayindex_speaker=new Array();
pre_system=0;
function reset_it(){
 reset_item(document.CPU,'div_cpu1','div_cpu2');
 reset_item(document.MEM,'div_mem1','div_mem2');
 reset_item(document.HDD,'div_hdd1','div_hdd2');
 reset_item(document.FDD,'div_fdd1','div_fdd2');
 reset_item(document.CDROM,'div_cdrom1','div_cdrom2');
 reset_item(document.VGA,'div_vga1','div_vga2');
 reset_item(document.OS,'div_os1','div_os2');
 reset_item(document.OS1,'div_os11','div_os21');
 reset_item(document.KB,'div_kb1','div_kb2');
 reset_item(document.MOUSE,'div_mouse1','div_mouse2');
 reset_item(document.SPEAKER,'div_speaker1','div_speaker2');
}

function reset_item(SECTION,div1,div2){
var i;
  for (i = SECTION.ITEM.options.length; i >= 0; i--) {
  SECTION.ITEM.options[i] = null; 
  }
  SECTION.ITEM.options[0]= new Option("NO SELECTIONS");
  SECTION.description.value='';
  SECTION.price.value='';
  document.getElementById(div1).innerHTML=' <img src="../img1/no_image.jpg" width="100" height="100" border="0">';
  document.getElementById(div2).innerHTML='0 Product Found';
  initform();
}

function getbarebone(doc,section, model){
pdata_bone(model);
iprice(doc.ITEM,doc.price,section);
initform();
}

function init_load(){
	getradio(document.CPU,'cpu');
    getradio(document.MEM,'mem');
    getradio(document.HDD,'hdd');
    getradio(document.CDROM,'cdrom');
    getradio(document.VGA,'vga');
}

function setCheckedValue(radioObj, newValue) { //document.MB.item5, ALL
	if(!radioObj)
		return;
	var radioLength = radioObj.length;
	if(radioLength == undefined) {
		radioObj.checked = (radioObj.value == newValue.toString());
		return;
	}
	for(var i = 0; i < radioLength; i++) {
		radioObj[i].checked = false;
		if(radioObj[i].value == newValue.toString()) {
			radioObj[i].checked = true;
		}
	}
}

function getradio(doc,section){
getRadios(doc,section);
iprice(doc.ITEM,doc.price,section);
initform();
}

function loadbarebone(barebone_model){ 
 document.BAREBONE.model.value=barebone_model;
 pdata_bone(barebone_model);
 iprice(document.BAREBONE.ITEM,document.BAREBONE.price,'barebone');
}
function loadcpu(cpu_model){ 
 document.CPU.model.value=cpu_model;
 pdata('ALL','ALL','ALL','ALL','ALL','cpu');
 iprice(document.CPU.ITEM,document.CPU.price,'cpu');
}
function loadmem(mem_model){ 
 document.MEM.model.value=mem_model;
 pdata('ALL','ALL','ALL','ALL','ALL','mem');
 iprice(document.MEM.ITEM,document.MEM.price,'mem');
}
function loadhdd(hdd_model){ 
 document.HDD.model.value=hdd_model;
 pdata('ALL','ALL','ALL','ALL','ALL','hdd');
 iprice(document.HDD.ITEM,document.HDD.price,'hdd');
}
function loadfdd(fdd_model){ 
 document.FDD.model.value=fdd_model;
 pdata('ALL','ALL','ALL','ALL','ALL','fdd');
 iprice(document.FDD.ITEM,document.FDD.price,'fdd');
}
function loadcdrom(cdrom_model){ 
 document.CDROM.model.value=cdrom_model;
 pdata('ALL','ALL','ALL','ALL','ALL','cdrom');
 iprice(document.CDROM.ITEM,document.CDROM.price,'cdrom');
}
function loadvga(vga_model){ 
 document.VGA.model.value=vga_model;
 pdata('ALL','ALL','ALL','ALL','ALL','vga');
 iprice(document.VGA.ITEM,document.VGA.price,'vga');
}
function loados(os_model){ 
 document.OS.model.value=os_model;
 pdata('ALL','ALL','ALL','ALL','ALL','os');
 iprice(document.OS.ITEM,document.OS.price,'os');
}
function loados1(os1_model){ 
 document.OS1.model.value=os1_model;
 pdata('ALL','ALL','ALL','ALL','ALL','os1');
 iprice(document.OS1.ITEM,document.OS1.price,'os1');
}
function loadkb(kb_model){ 
 document.KB.model.value=kb_model;
 pdata('ALL','ALL','ALL','ALL','ALL','kb');
 iprice(document.KB.ITEM,document.KB.price,'kb');
}
function loadmouse(mouse_model){ 
 document.MOUSE.model.value=mouse_model;
 pdata('ALL','ALL','ALL','ALL','ALL','mouse');
 iprice(document.MOUSE.ITEM,document.MOUSE.price,'mouse');
}
function loadspeaker(speaker_model){ 
 document.SPEAKER.model.value=speaker_model;
 pdata('ALL','ALL','ALL','ALL','ALL','speaker');
 iprice(document.SPEAKER.ITEM,document.SPEAKER.price,'speaker');
}
function gettotalamount(){
var total_amount;
total_amount=document.BAREBONE.price.value*1+document.CPU.price.value*1;
total_amount+=document.MEM.price.value*1+document.HDD.price.value*1+document.FDD.price.value*1;
total_amount+=document.CDROM.price.value*1+document.VGA.price.value*1+document.OS.price.value*1;
total_amount+=document.OS1.price.value*1+document.KB.price.value*1+document.MOUSE.price.value*1+document.SPEAKER.price.value*1;

return total_amount;
}
function getprice(item_model,section){
var array1=new Array();
var location=2;
var string = "";
var sstring = "";
var count=0;
var model;
var price=0;
  if (section=='barebone'){ 
    array1=arraybone;
	model=document.BAREBONE.model;
    price=document.BAREBONE.price;
  }
  else if(section=='cpu'){
    array1=arraycpu;
    model=document.CPU.model;
    price=document.CPU.price;
  } 
  else if (section=='mem'){ 
    array1=arraymem;
	model=document.MEM.model;
    price=document.MEM.price;
  }
  else if (section=='hdd'){ 
    array1=arrayhdd;
	model=document.HDD.model;
    price=document.HDD.price;
  }
  else if(section=='fdd'){
    array1=arrayfdd;
    model=document.FDD.model;
    price=document.FDD.price;
  } 
  else if (section=='cdrom'){ 
    array1=arraycdrom;
	model=document.CDROM.model;
    price=document.CDROM.price;
  }
  else if(section=='vga'){
    array1=arrayvga;
    model=document.VGA.model;
    price=document.VGA.price;
  } 
  else if(section=='os'){
    array1=arrayso;
    model=document.OS.model;
    price=document.OS.price;
  } 
  else if (section=='os1'){ 
    array1=arrayso;
	model=document.OS1.model;
    price=document.OS1.price;
  }
  else if (section=='kb'){ 
    array1=arraykb;
	model=document.KB.model;
    price=document.KB.price;
  }
  else if(section=='mouse'){
    array1=arraymouse;
    model=document.MOUSE.model;
    price=document.MOUSE.price;
  } 
  else if(section=='speaker'){
    array1=arrayspeaker;
    model=document.SPEAKER.model;
    price=document.SPEAKER.price;
  } 
  
  if(section=='cpu'){ location=1;} else { location=2;} 
  for(i=0;i<array1.length;i++){ //different
     string=array1[i].split("|"); //different
	 sstring=string[0].split(","); 
	  if(sstring[location]==item_model ){
	       model.value=sstring[0]+' '+sstring[1]+' '+sstring[2]+' '+sstring[3]+' '+sstring[4]+' '+sstring[5]+' '+sstring[6];
		   
	  } 
	 		
  }
  var sprice=model.value;
  if ((sprice=="") || (sprice==null)) {
    sprice=0;
	model.value="(+0.00) NO SELECTION ";
  }
  else if ( (sprice.indexOf("(")== -1)||(sprice.indexOf("+")== -1)||(sprice.indexOf(")")== -1) ){
   sprice=0;
   model.value="(+0.00) NO SELECTION *";
  }
  else{
    sprice=sprice.split(")");
    sprice=sprice[0].split("+");
    sprice=sprice[1];
  }
  price.value=sprice;
  
}


function getRadios(what, section){
// get item1 value
what.model.value='ALL';
pre_system=0;
j=what.item1.length; //alert(j)
	for (i=0; i<j; i++){
		if(what.item1[i].checked) var item1 = what.item1[i].value
	}
//get item2 type
j=what.item2.length; //alert(j)
	for (i=0; i<j; i++){
		if(what.item2[i].checked) var item2 = what.item2[i].value
	}
// get item3 value
j=what.item3.length; //alert(j)
	for (i=0; i<j; i++){
		if(what.item3[i].checked) var item3 = what.item3[i].value
	}
//get item4 value
j=what.item4.length; //alert(j)
	for (i=0; i<j; i++){
		if(what.item4[i].checked) var item4 = what.item4[i].value
	}
//get item5 value
j=what.item5.length; //alert(j)
	for (i=0; i<j; i++){
		if(what.item5[i].checked) var item5 = what.item5[i].value
	}
  pdata(item1,item2,item3,item4,item5,section);
  //checkid(1);
}

function popup(s){
 if (! window.focus)return true;
 var k=arrayindex[s.selectedIndex].length;
 var http='../info/'+arrayindex[s.selectedIndex][k-2];
 
 window.open(http, arrayindex[s.selectedIndex][k-2], 'width=800,height=600,resizable=yes,scrollbars=yes');
 return false;
}

function iprice(s,s1,section){
  var arrayindex=new Array();
  var section_div
  var section_des
  //var qty=1;
  var sprice="";
  var ssprice="";
  var des="";
  var iitem="";
  
  sprice=s.options[s.selectedIndex].text;
  if(section=='barebone') { arrayindex=arrayindex_bone;	section_div='div_barebone1'; section_des=document.BAREBONE; }
  else if(section=='cpu') { arrayindex=arrayindex_cpu; section_div='div_cpu1'; section_des=document.CPU;}	  	  
  else if(section=='mem') { arrayindex=arrayindex_mem; section_div='div_mem1'; section_des=document.MEM;}
  else if(section=='hdd') { arrayindex=arrayindex_hdd; section_div='div_hdd1'; section_des=document.HDD;}
  else if(section=='fdd') { arrayindex=arrayindex_fdd; section_div='div_fdd1'; section_des=document.FDD;}
  else if(section=='cdrom') { arrayindex=arrayindex_cdrom; section_div='div_cdrom1'; section_des=document.CDROM;}
  else if(section=='vga') { arrayindex=arrayindex_vga; section_div='div_vga1'; section_des=document.VGA;}
  else if(section=='os') { arrayindex=arrayindex_os; section_div='div_os1'; section_des=document.OS;}
  else if(section=='os1') { arrayindex=arrayindex_os1; section_div='div_os11'; section_des=document.OS1;}
  else if(section=='kb') { arrayindex=arrayindex_kb; section_div='div_kb1'; section_des=document.KB;}
  else if(section=='mouse') { arrayindex=arrayindex_mouse; section_div='div_mouse1'; section_des=document.MOUSE;}
  else if(section=='speaker') { arrayindex=arrayindex_speaker; section_div='div_speaker1'; section_des=document.SPEAKER;}
  
  if ((sprice=="") || (sprice==null)) sprice="0.00";
  else if ( (sprice.indexOf("(")== -1)||(sprice.indexOf("+")== -1)||(sprice.indexOf(")")== -1) ) sprice="0.00";
  else{
    sprice=sprice.split(")");
    sprice=sprice[0].split("+");
    sprice=sprice[1];
  }
  s1.value=sprice;
  if(sprice=='0.00') {
    section_des.description.value = 'NO SELECTIONS'; 
	document.getElementById(section_div).innerHTML=' <img src="../img1/no_image.jpg" width="100" height="100" border="0">';
  }	
  else {
      //qty=section_des.QTY.options[section_des.QTY.selectedIndex].text;
      //s1.value=sprice*qty;
      for(i=1;i<arrayindex[s.selectedIndex].length-3;i++) des +=' '+arrayindex[s.selectedIndex][i];
      for(i=0;i<arrayindex[s.selectedIndex].length-3;i++) iitem +=' '+arrayindex[s.selectedIndex][i];
	  section_des.description.value = des;
	  var t=arrayindex[s.selectedIndex].length-1;
      var t1='../img1/'+arrayindex[s.selectedIndex][t];
      var t2='../info/'+arrayindex[s.selectedIndex][t-1]; 
      document.getElementById(section_div).innerHTML='<a href="'+t2+'" target="_blank"><img src="'+t1+'" width="100" border="0"><br><img src="../img1/More_Detail.gif"   border="0" ></a>';
  }	
  
}                                                  //a href="../info/pentiumm.htm"

function pdata_bone(model){
  var array1=new Array();
  var array2=new Array();
  var div;
  var iselect = window.document.BAREBONE.ITEM;
  array1=arraybone;
  div='div_barebone2';
  
  var string = "";
  var sstring = "";
  var count=0;
  var iall="ALL"; 
  iselect.options.length = count;
  
  for(i=0;i<array1.length;i++){ //different
    string=array1[i].split("|"); //different
	sstring=string[0].split(","); 
	k=string[0].split(",").length;
	if(sstring[k-2]=='*')
	if(sstring[2].split(" ")[0]==model ){
	       array2[count]= new Array();              //different
		   for(j=0;j<=k;j++) array2[count][j]= sstring[j];
		   array2[count][k+1]=string[1];
		   array2[count][k+2]=string[2];
	       iselect.options[count++] = new Option( sstring[0]+' '+sstring[1]+' '+sstring[2]+' '+sstring[3]+' '+sstring[4]+' '+sstring[5]+' '+sstring[6]);
	} 		
  }	
  if (count==0) iselect.options[count] = new Option( '*** OUT OF STOCK ***');
  //document.getElementById(div).innerHTML=count+' Products Found' ;
  arrayindex_bone=array2;
}

function pdata(item1,item2,item3,item4,item5,section){
  var array1=new Array();
  var array2=new Array();
  var div;
  var iselect;
  var model;
  var location=2;
  
  if (section=='cpu'){
   iselect = window.document.CPU.ITEM;
   model=window.document.CPU.model.value;
   array1=arraycpu;
   div='div_cpu2';
  }
  else if (section=='mem'){ 
   iselect = window.document.MEM.ITEM;
   model=window.document.MEM.model.value;
   array1=arraymem;
   div='div_mem2';
  }
  else if (section=='hdd'){ 
   iselect = window.document.HDD.ITEM;
   model=window.document.HDD.model.value;
   array1=arrayhdd;
   div='div_hdd2';
  }
  else if (section=='fdd'){ 
   iselect = window.document.FDD.ITEM;
   model=window.document.FDD.model.value;
   array1=arrayfdd;
   div='div_fdd2';
  }
  else if (section=='cdrom'){ 
   iselect = window.document.CDROM.ITEM;
   model=window.document.CDROM.model.value;
   array1=arraycdrom;
   div='div_cdrom2';
  }
  else if (section=='vga'){ 
   iselect = window.document.VGA.ITEM;
   model=window.document.VGA.model.value;
   array1=arrayvga;
   div='div_vga2';
  }
  else if (section=='os'){ 
   iselect = window.document.OS.ITEM;
   model=window.document.OS.model.value;
   array1=arrayso;
   div='div_os2';
  }
  else if (section=='os1'){ 
   iselect = window.document.OS1.ITEM;
   model=window.document.OS1.model.value;
   array1=arrayso;
   div='div_os21';
  }
  else if (section=='kb'){ 
   iselect = window.document.KB.ITEM;
   model=window.document.KB.model.value;
   array1=arraykb;
   div='div_kb2';
  }
  else if (section=='mouse'){ 
   iselect = window.document.MOUSE.ITEM;
   model=window.document.MOUSE.model.value;
   array1=arraymouse;
   div='div_mouse2';
  }
  else if (section=='speaker'){ 
   iselect = window.document.SPEAKER.ITEM;
   model=window.document.SPEAKER.model.value;
   array1=arrayspeaker;
   div='div_speaker2';
  }
  var string = "";
  var sstring = "";
  var count=0;
  var iall="ALL"; 
  iselect.options.length = count;
  if(model=='ALL'){
   for(i=0;i<array1.length;i++){ //different
    string=array1[i].split("|"); //different
	sstring=string[0].split(","); 
	k=string[0].split(",").length;
	if(sstring[k-2]=='*')
	if(sstring[1].split(" ")[0]==item1 || item1==iall)
	  if(sstring[3].split(" ")[0]==item2 || item2==iall)
	     if(sstring[4].split(" ")[0]==item3 || item3==iall)
		     if(sstring[5].split(" ")[0]==item4 || item4==iall)
	            if(sstring[6].split(" ")[0]==item5 || item5==iall){
	                array2[count]= new Array();              //different
					for(j=0;j<=k;j++) array2[count][j]= sstring[j];
					array2[count][k+1]=string[1];
					array2[count][k+2]=string[2];
					iselect.options[count++] = new Option( sstring[0]+' '+sstring[1]+' '+sstring[2]+' '+sstring[3]+' '+sstring[4]+' '+sstring[5]+' '+sstring[6]);
				} 		
   }
  }
  else{
   if(section=='cpu'){ location=1;}
   else { location=2;} 
     for(i=0;i<array1.length;i++){ //different
     string=array1[i].split("|"); //different
	 sstring=string[0].split(","); 
	 k=string[0].split(",").length;
	 if(sstring[k-2]=='*')
	 if(sstring[location]==model ){
	       array2[count]= new Array();              //different
		   for(j=0;j<=k;j++) array2[count][j]= sstring[j];
		   array2[count][k+1]=string[1];
		   array2[count][k+2]=string[2];
	       iselect.options[count++] = new Option( sstring[0]+' '+sstring[1]+' '+sstring[2]+' '+sstring[3]+' '+sstring[4]+' '+sstring[5]+' '+sstring[6]);
	 } 		
    }
  }  		
  if (count==0) iselect.options[count] = new Option( '*** NO SELECTIONS ***');
  document.getElementById(div).innerHTML=count+' Products Found' ;
  if(section=='cpu') arrayindex_cpu=array2;
  else if(section=='mem') arrayindex_mem=array2;
  else if(section=='hdd') arrayindex_hdd=array2;
  else if(section=='fdd') arrayindex_fdd=array2;
  else if(section=='cdrom') arrayindex_cdrom=array2;
  else if(section=='vga') arrayindex_vga=array2;
  else if(section=='os') arrayindex_os=array2;
  else if(section=='os1') arrayindex_os1=array2;
  else if(section=='kb') arrayindex_kb=array2;
  else if(section=='mouse') arrayindex_mouse=array2;
  else if(section=='speaker') arrayindex_speaker=array2;
}  

function initform(){
  var barebone=document.order.S01_; 
  var cpu=document.order.S03_;
  var mem=document.order.S04_;
  var hdd=document.order.S051_;
  var fdd=document.order.S061_;
  var cdrom=document.order.S071_;
  var vga=document.order.S08_;
  var os=document.order.S101_;
  var os1=document.order.S102_;
  var kb=document.order.S11_;
  var mouse=document.order.S12_;
  var speaker=document.order.S13_;
    
  var barebone_q=document.order.S01_QTY;
  var cpu_q=document.order.S03_QTY;  
  var mem_q=document.order.S04_QTY;
  var hdd_q=document.order.S051_QTY;
  var fdd_q=document.order.S061_QTY;
  var cdrom_q=document.order.S071_QTY;
  var vga_q=document.order.S08_QTY;
  var os_q=document.order.S101_QTY;
  var os1_q=document.order.S102_QTY;
  var kb_q=document.order.S11_QTY;
  var mouse_q=document.order.S12_QTY;
  var speaker_q=document.order.S13_QTY;
  
  var test=document.order.S14_;
  var sub_total, test_fee;
  var total=document.order.TOTAL;
  
  var barebone_price=document.BAREBONE.price.value;
  var cpu_price=document.CPU.price.value;
  var mem_price=document.MEM.price.value;
  var hdd_price=document.HDD.price.value;
  var fdd_price=document.FDD.price.value;
  var cdrom_price=document.CDROM.price.value;
  var vga_price=document.VGA.price.value;
  var os_price=document.OS.price.value;
  var os1_price=document.OS1.price.value;
  var kb_price=document.KB.price.value;
  var mouse_price=document.MOUSE.price.value;
  var speaker_price=document.SPEAKER.price.value;
  
  if(barebone_price=='0.00'||barebone_price==''){ barebone.value=""; barebone_q.value=""; document.checkout.STEP01_BAREBONE.value="";}	 
  else{
     barebone.value='$'+barebone_price+' '+document.BAREBONE.description.value;
     barebone_q.value=document.BAREBONE.QTY.options[document.BAREBONE.QTY.selectedIndex].text;
	 document.checkout.STEP01_BAREBONE.value=barebone.value+ "/QTY:"+ barebone_q.value;
  }
  if(cpu_price=='0.00'||cpu_price==''){ cpu.value="";cpu_q.value=""; document.checkout.STEP02_CPU.value="";}
  else{
     cpu.value='$'+cpu_price+' '+document.CPU.description.value;
     cpu_q.value=document.CPU.QTY.options[document.CPU.QTY.selectedIndex].text;
	 document.checkout.STEP02_CPU.value=cpu.value+ "/QTY:"+ cpu_q.value;
  }
  if(mem_price=='0.00'||mem_price==''){ mem.value="";mem_q.value=""; document.checkout.STEP03_MEM.value="";}
  else{
     mem.value='$'+mem_price+' '+document.MEM.description.value;
     mem_q.value=document.MEM.QTY.options[document.MEM.QTY.selectedIndex].text;
	 document.checkout.STEP03_MEM.value=mem.value+ "/QTY:"+mem_q.value;
  }
  if(hdd_price=='0.00'||hdd_price==''){ hdd.value="";hdd_q.value=""; document.checkout.STEP04_HDD1.value="";}
  else{
     hdd.value='$'+hdd_price+' '+document.HDD.description.value;
     hdd_q.value=document.HDD.QTY.options[document.HDD.QTY.selectedIndex].text;
	 document.checkout.STEP04_HDD1.value=hdd.value+ "/QTY:"+hdd_q.value;
  }
  if(fdd_price=='0.00'||fdd_price==''){ fdd.value="";fdd_q.value=""; document.checkout.STEP05_FDD1.value="";}
  else{
     fdd.value='$'+fdd_price+' '+document.FDD.description.value;
     fdd_q.value=document.FDD.QTY.options[document.FDD.QTY.selectedIndex].text;
	 document.checkout.STEP05_FDD1.value=fdd.value+ "/QTY:"+fdd_q.value;
  }
  if(cdrom_price=='0.00'||cdrom_price==''){ cdrom.value="";cdrom_q.value=""; document.checkout.STEP06_CDROM1.value="";}
  else{
     cdrom.value='$'+cdrom_price+' '+document.CDROM.description.value;
     cdrom_q.value=document.CDROM.QTY.options[document.CDROM.QTY.selectedIndex].text;
	 document.checkout.STEP06_CDROM1.value=cdrom.value+ "/QTY:"+cdrom_q.value;
  }
  if(vga_price=='0.00'||vga_price==''){ vga.value="";vga_q.value=""; document.checkout.STEP07_VGA.value="";}
  else{
     vga.value='$'+vga_price+' '+document.VGA.description.value;
     vga_q.value=document.VGA.QTY.options[document.VGA.QTY.selectedIndex].text;
	 document.checkout.STEP07_VGA.value=vga.value+ "/QTY:"+vga_q.value;
  }
  if(os_price=='0.00'||os_price==''){ os.value="";os_q.value=""; document.checkout.STEP08_OS.value="";}
  else{
     os.value='$'+os_price+' '+document.OS.description.value;
     os_q.value=document.OS.QTY.options[document.OS.QTY.selectedIndex].text;
	 document.checkout.STEP08_OS.value=os.value+ "/QTY:"+os_q.value;
  }
  if(os1_price=='0.00'||os1_price==''){ os1.value="";os1_q.value=""; document.checkout.STEP08_SW.value="";}
  else{
     os1.value='$'+os1_price+' '+document.OS1.description.value;
     os1_q.value=document.OS1.QTY.options[document.OS1.QTY.selectedIndex].text;
	 document.checkout.STEP08_SW.value=os1.value+ "/QTY:"+os1_q.value;
  }
  if(kb_price=='0.00'||kb_price==''){ kb.value="";kb_q.value=""; document.checkout.STEP09_KB.value="";}
  else{
     kb.value='$'+kb_price+' '+document.KB.description.value;
     kb_q.value=document.KB.QTY.options[document.KB.QTY.selectedIndex].text;
	 document.checkout.STEP09_KB.value=kb.value+ "/QTY:"+kb_q.value;
  }
  if(mouse_price=='0.00'||mouse_price==''){ mouse.value="";mouse_q.value=""; document.checkout.STEP10_MOUSE.value="";}
  else{
     mouse.value='$'+mouse_price+' '+document.MOUSE.description.value;
     mouse_q.value=document.MOUSE.QTY.options[document.MOUSE.QTY.selectedIndex].text;
	 document.checkout.STEP10_MOUSE.value=mouse.value+ "/QTY:"+mouse_q.value;
  }
  if(speaker_price=='0.00'||speaker_price==''){ speaker.value="";speaker_q.value=""; document.checkout.STEP11_SPEAKER.value="";}
  else{
     speaker.value='$'+speaker_price+' '+document.SPEAKER.description.value;
     speaker_q.value=document.SPEAKER.QTY.options[document.SPEAKER.QTY.selectedIndex].text;
	 document.checkout.STEP11_SPEAKER.value=speaker.value+ "/QTY:"+speaker_q.value;
  }
  
  sub_total=barebone_price*barebone_q.value+cpu_price*cpu_q.value+mem_price*mem_q.value;
  sub_total+=hdd_price*hdd_q.value+fdd_price*fdd_q.value+cdrom_price*cdrom_q.value+vga_price*vga_q.value;
  sub_total+=os_price*os_q.value+os1_price*os1_q.value+kb_price*kb_q.value+mouse_price*mouse_q.value+speaker_price*speaker_q.value;
  
  if(sub_total<1000){
  test_fee=sub_total*0.04;
  }
  else if(sub_total<2000){
  test_fee=sub_total*0.03;
  }
  else {
  test_fee=sub_total*0.02;
  }
  test_fee=Math.round(test_fee);
  //if(pre_system) test_fee=0;
  test_fee=0;
  test.value='$'+test_fee+'  Free Assembly and Testing ';
  // free testing fee
  //test_fee=0;
  //test.value='Free Assembly and Testing, end 4/30/06';
  
  document.checkout.STEP12_ASSEMBLY.value=test.value;
  sub_total=sub_total+test_fee;
  total.value='$ '+sub_total;
  document.checkout.TOTAL.value='(+'+sub_total+' )';
  document.checkout.Submit_Type.disabled= false;
  if(document.BAREBONE.price.value==0) document.checkout.Submit_Type.disabled= true;
}

//  End -->
