<!--Begin //

function model_value(model){
var location;
var sprice;
var array1=new Array();
 array1=arraybone;
 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 ){
	       
	  	    sprice=sstring[0];
	       
	   } 	
	}
    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];
    }
	if(sprice=='0.00') sprice='Out of Stock';
	else sprice='Start @ $'+sprice;
	
	return sprice;
}
function load_barebone(){
document.mp965d.price.value=model_value('MP965-D SUPERMULTI');
document.mp945d.price.value=model_value('MP45-D SUPERMULTI');

document.sd30g2b.price.value=model_value('SD30-G2-BK-VP');
document.sg31g2.price.value=model_value('SG31-G2-BK-V2');
document.sg31g2s.price.value=model_value('SG31-G2-SV-V1');
document.sg33g5.price.value=model_value('SG33-G5-BK-V1');
document.sg33g5p.price.value=model_value('SG33-G5-BK-V1-PR');
document.sg33g5m.price.value=model_value('SG33-G5-BK-M1');
document.sg33g5md.price.value=model_value('SG33-G5-BK-M1-DX');
document.sp35p2pro.price.value=model_value('SP35-P2-BK-V2');
document.sx38p2pro.price.value=model_value('SX38-P2-BK-V1-PR');

//document.sn68sg2.price.value=model_value('SN68S-G2-BK-V1');
//document.sn68ptg5.price.value=model_value('SN68PT-G5-BK-V1');

}
function load_shuttle_gcw_slimpc(){
	
	if (document.getElementById('am2a7')!=null) document.getElementById('am2a7').innerHTML=model_value('AM2A7');
	if (document.getElementById('duoa7')!=null) document.getElementById('duoa7').innerHTML=model_value('DUOA7');
	if (document.getElementById('atoma7')!=null) document.getElementById('atoma7').innerHTML=model_value('ATOMA7');
}

function load_shuttle_amd(){
	if (document.getElementById('sn78sh7')!=null) document.getElementById('sn78sh7').innerHTML=model_value('SN78S-H7-BK-V1');
	if (document.getElementById('sn68ptg6')!=null) document.getElementById('sn68ptg6').innerHTML=model_value('SN68PT-G6-BK-V1-DX');
	if (document.getElementById('sa76g2')!=null) document.getElementById('sa76g2').innerHTML=model_value('SA76-G2-BK-V1');
}

function load_shuttle_intel(){
	
	if (document.getElementById('d10')!=null) document.getElementById('d10').innerHTML=model_value('D10');
	if (document.getElementById('k48')!=null) document.getElementById('k48').innerHTML=model_value('K48-K1-BK-V1');
	if (document.getElementById('sg31g2b')!=null) document.getElementById('sg31g2b').innerHTML=model_value('SG31-G2-BK-V2');
	if (document.getElementById('sg45h7')!=null) document.getElementById('sg45h7').innerHTML=model_value('SG45-H7-BK-V1');
	if (document.getElementById('sp35p2')!=null) document.getElementById('sp35p2').innerHTML=model_value('SP35-P2-BK-V2');
	if (document.getElementById('sp45h7')!=null) document.getElementById('sp45h7').innerHTML=model_value('SP45-H7-BK-V1');
	if (document.getElementById('sx38p2pro')!=null) document.getElementById('sx38p2pro').innerHTML=model_value('SX38-P2-BK-V1-PR');
	if (document.getElementById('sx48p2e')!=null) document.getElementById('sx48p2e').innerHTML=model_value('SX48-P2-BK-VE');
	if (document.getElementById('sx48p2dx')!=null) document.getElementById('sx48p2dx').innerHTML=model_value('SX48-P2-BK-V1-DX');
	if (document.getElementById('sx58h7')!=null) document.getElementById('sx58h7').innerHTML=model_value('SX58-H7-BK-V1');
	if (document.getElementById('sg41j1')!=null) document.getElementById('sg41j1').innerHTML=model_value('SG41-J1-PLUS');
}

function load_barebone1(){
document.mp965d.price.value=model_value('MP965-D SUPERMULTI');
document.mp945d.price.value=model_value('MP45-D SUPERMULTI');

//document.mp945.price.value=model_value('MP945-VX DVDRW');
//document.mp915x.price.value=model_value('MP915-X DVD CDRW');
//document.mp915b.price.value=model_value('MP915-B DVDRW');
//document.sb81p.price.value=model_value('SB81P');
//document.sb83g5.price.value=model_value('SB83G5');
//document.sb83g5m.price.value=model_value('SB83-G5-BK-M1');
//document.sb86i.price.value=model_value('SB86I');
//document.sb87g5.price.value=model_value('SB87G5');
//document.sb95pv2.price.value=model_value('SB95PV2');
//document.sd31p.price.value=model_value('SD31-P1-BK-V1');
//document.sk22g2.price.value=model_value('SK22-G2-BK-V1');
//document.ss59g.price.value=model_value('SS59G');
//document.sd11g5.price.value=model_value('SD11-G5-SV-V1');
//document.sk21g.price.value=model_value('SK21G');
//document.sn21g5.price.value=model_value('SN21G5');
//document.sn25p.price.value=model_value('SN25P');
//document.sn26p.price.value=model_value('SN26-P1-BK-V1');
//document.sn27p2.price.value=model_value('SN27P2');
//document.ss30g2.price.value=model_value('SS30G2');
//document.sd37p2.price.value=model_value('SD37P2');
//document.st20g5.price.value=model_value('ST20G5');

}
//  End --> //