// JavaScript Document


<!--
function WCS_Window(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function codecheck()
{
	var distotal = document.pcform.total.value;
	if (document.pcform.webcode.value == 5825)
	{
		document.pcform.webcode.disabled= true;
		document.pcform.buttonok.disabled= true;
		alert("Code Accepted: $50.00 Discount");
		document.pcform.ontime.value = parseFloat(-50);
		document.pcform.total.value = distotal - parseFloat(50);
	}

	else if (document.pcform.webcode.value != 5825 && document.pcform.webcode.value != "")
	{
		document.pcform.webcode.value = "";
		alert("Incorrect code");
	}
}


function wpws5()
{

// default selestion "Please Select a PC":

if (document.pcform.pctype.value == 0)
{
	document.pcform.motherboard1.selectedIndex =  0;
	document.pcform.cpu1.selectedIndex = 0;
	document.pcform.ram1.selectedIndex = 0;
	document.pcform.case1.selectedIndex = 0;
	document.pcform.opticalDrive1.selectedIndex = 0;
	document.pcform.hardDrive1.selectedIndex = 0;
	document.pcform.hardDrive2.selectedIndex = 0;
	document.pcform.videoCard1.selectedIndex = 0;
	document.pcform.soundCard1.selectedIndex = 0;
	document.pcform.os1.selectedIndex = 0;
	document.pcform.software.selectedIndex = 0;
	document.pcform.monitor1.selectedIndex = 0;
	document.pcform.extras1.selectedIndex = 0;
	
	document.pcform.mb_qty.value = 1;
	document.pcform.cpu_qty.value = 1;
	document.pcform.ram_qty.value = 1;
	document.pcform.case_qty.value = 1;
	document.pcform.opt_qty.value = 1;
	document.pcform.hdd_qty1.value = 1;
	document.pcform.hdd_qty2.value = 1;
	document.pcform.vid_qty.value = 1;
	document.pcform.snd_qty.value = 1;
	document.pcform.os_qty.value = 1;
	document.pcform.mon_qty.value = 1;
	document.pcform.sw_qty.value = 1;
	document.pcform.ext_qty.value = 1;
	
}

// if user selects "Web Surfing PC":

if (document.pcform.pctype.value == 1)
{
	document.pcform.motherboard1.selectedIndex =  1;
	document.pcform.cpu1.selectedIndex = 1;
	document.pcform.ram1.selectedIndex = 1;
	document.pcform.case1.selectedIndex = 1;
	document.pcform.opticalDrive1.selectedIndex = 1;
	document.pcform.hardDrive1.selectedIndex = 1;
	document.pcform.hardDrive2.selectedIndex = 0;
	document.pcform.videoCard1.selectedIndex = 1;
	document.pcform.soundCard1.selectedIndex = 1;
	document.pcform.os1.selectedIndex = 1;
	document.pcform.software.selectedIndex = 1;
	document.pcform.monitor1.selectedIndex = 0;
	document.pcform.extras1.selectedIndex = 0;
	
	document.pcform.mb_qty.value = 1;
	document.pcform.cpu_qty.value = 1;
	document.pcform.ram_qty.value = 1;
	document.pcform.case_qty.value = 1;
	document.pcform.opt_qty.value = 1;
	document.pcform.hdd_qty1.value = 1;
	document.pcform.hdd_qty2.value = 1;
	document.pcform.vid_qty.value = 1;
	document.pcform.snd_qty.value = 1;
	document.pcform.os_qty.value = 1;
	document.pcform.mon_qty.value = 1;
	document.pcform.sw_qty.value = 1;
	document.pcform.ext_qty.value = 1;
}

// if user selects "Office PC":

if (document.pcform.pctype.value == 2)
{
	document.pcform.motherboard1.selectedIndex =  2;
	document.pcform.cpu1.selectedIndex = 1;
	document.pcform.ram1.selectedIndex = 1;
	document.pcform.case1.selectedIndex = 1;
	document.pcform.opticalDrive1.selectedIndex = 1;
	document.pcform.hardDrive1.selectedIndex = 2;
	document.pcform.hardDrive2.selectedIndex = 0;
	document.pcform.videoCard1.selectedIndex = 1;
	document.pcform.soundCard1.selectedIndex = 1;
	document.pcform.os1.selectedIndex = 3;
	document.pcform.software.selectedIndex = 1;
	document.pcform.monitor1.selectedIndex = 0;
	document.pcform.extras1.selectedIndex = 1;
	
	document.pcform.mb_qty.value = 1;
	document.pcform.cpu_qty.value = 1;
	document.pcform.ram_qty.value = 1;
	document.pcform.case_qty.value = 1;
	document.pcform.opt_qty.value = 1;
	document.pcform.hdd_qty1.value = 1;
	document.pcform.hdd_qty2.value = 1;
	document.pcform.vid_qty.value = 1;
	document.pcform.snd_qty.value = 1;
	document.pcform.os_qty.value = 1;
	document.pcform.mon_qty.value = 1;
	document.pcform.sw_qty.value = 1;
	document.pcform.ext_qty.value = 1;
}

// if user selects "Gaming PC":

if (document.pcform.pctype.value == 3)
{
	document.pcform.motherboard1.selectedIndex = 2;
	document.pcform.cpu1.selectedIndex = 3;
	document.pcform.ram1.selectedIndex = 6;
	document.pcform.case1.selectedIndex = 2;
	document.pcform.opticalDrive1.selectedIndex = 1;
	document.pcform.hardDrive1.selectedIndex = 6;
	document.pcform.hardDrive2.selectedIndex = 0;
	document.pcform.videoCard1.selectedIndex = 4;
	document.pcform.soundCard1.selectedIndex = 2;
	document.pcform.os1.selectedIndex = 2;
	document.pcform.software.selectedIndex = 0;
	document.pcform.monitor1.selectedIndex = 0;
	document.pcform.extras1.selectedIndex = 2;
	
	document.pcform.mb_qty.value = 1;
	document.pcform.cpu_qty.value = 1;
	document.pcform.ram_qty.value = 2;
	document.pcform.case_qty.value = 1;
	document.pcform.opt_qty.value = 1;
	document.pcform.hdd_qty1.value = 1;
	document.pcform.hdd_qty2.value = 1;
	document.pcform.vid_qty.value = 1;
	document.pcform.snd_qty.value = 1;
	document.pcform.os_qty.value = 1;
	document.pcform.mon_qty.value = 1;
	document.pcform.sw_qty.value = 1;
	document.pcform.ext_qty.value = 1;
}

// if user selects "Audio / Video and Picture Editing PC":

if (document.pcform.pctype.value == 4)
{
	document.pcform.motherboard1.selectedIndex = 3;
	document.pcform.cpu1.selectedIndex = 4;
	document.pcform.ram1.selectedIndex = 6;
	document.pcform.case1.selectedIndex = 2;
	document.pcform.opticalDrive1.selectedIndex = 1;
	document.pcform.hardDrive1.selectedIndex = 8;
	document.pcform.hardDrive2.selectedIndex = 8;
	document.pcform.videoCard1.selectedIndex = 7;
	document.pcform.soundCard1.selectedIndex = 4;
	document.pcform.os1.selectedIndex = 4;
	document.pcform.software.selectedIndex = 0;
	document.pcform.monitor1.selectedIndex = 0;
	document.pcform.extras1.selectedIndex = 2;
	
	document.pcform.mb_qty.value = 1;
	document.pcform.cpu_qty.value = 1;
	document.pcform.ram_qty.value = 4;
	document.pcform.case_qty.value = 1;
	document.pcform.opt_qty.value = 1;
	document.pcform.hdd_qty1.value = 1;
	document.pcform.hdd_qty2.value = 1;
	document.pcform.vid_qty.value = 1;
	document.pcform.snd_qty.value = 1;
	document.pcform.os_qty.value = 1;
	document.pcform.mon_qty.value = 1;
	document.pcform.sw_qty.value = 1;
	document.pcform.ext_qty.value = 1;
}

// if user selects "Small Business Server":

if (document.pcform.pctype.value == 5)
{
	document.pcform.motherboard1.selectedIndex = 2;
	document.pcform.cpu1.selectedIndex = 4;
	document.pcform.ram1.selectedIndex = 1;
	document.pcform.case1.selectedIndex = 3;
	document.pcform.opticalDrive1.selectedIndex = 1;
	document.pcform.hardDrive1.selectedIndex = 8;
	document.pcform.hardDrive2.selectedIndex = 9;
	document.pcform.videoCard1.selectedIndex = 1;
	document.pcform.soundCard1.selectedIndex = 1;
	document.pcform.os1.selectedIndex = 6;
	document.pcform.software.selectedIndex = 0;
	document.pcform.monitor1.selectedIndex = 0;
	document.pcform.extras1.selectedIndex = 2;
	
	document.pcform.mb_qty.value = 1;
	document.pcform.cpu_qty.value = 1;
	document.pcform.ram_qty.value = 4;
	document.pcform.case_qty.value = 1;
	document.pcform.opt_qty.value = 1;
	document.pcform.hdd_qty1.value = 1;
	document.pcform.hdd_qty2.value = 4;
	document.pcform.vid_qty.value = 1;
	document.pcform.snd_qty.value = 1;
	document.pcform.os_qty.value = 1;
	document.pcform.mon_qty.value = 1;
	document.pcform.sw_qty.value = 1;
	document.pcform.ext_qty.value = 1;
}

// if user selects "The Amazing Home Theater PC":

if (document.pcform.pctype.value == 6)
{
	document.pcform.motherboard1.selectedIndex =  6;
	document.pcform.cpu1.selectedIndex = 9;
	document.pcform.ram1.selectedIndex = 6;
	document.pcform.case1.selectedIndex = 3;
	document.pcform.opticalDrive1.selectedIndex = 3;
	document.pcform.hardDrive1.selectedIndex = 16;
	document.pcform.hardDrive2.selectedIndex = 9;
	document.pcform.videoCard1.selectedIndex = 6;
	document.pcform.soundCard1.selectedIndex = 5;
	document.pcform.os1.selectedIndex = 4;
	document.pcform.software.selectedIndex = 0;
	document.pcform.monitor1.selectedIndex = 4;
	document.pcform.extras1.selectedIndex = 3;
	
		document.pcform.mb_qty.value = 1;
	document.pcform.cpu_qty.value = 1;
	document.pcform.ram_qty.value = 4;
	document.pcform.case_qty.value = 1;
	document.pcform.opt_qty.value = 1;
	document.pcform.hdd_qty1.value = 1;
	document.pcform.hdd_qty2.value = 7;
	document.pcform.vid_qty.value = 2;
	document.pcform.snd_qty.value = 1;
	document.pcform.os_qty.value = 1;
	document.pcform.mon_qty.value = 4;
	document.pcform.sw_qty.value = 1;
	document.pcform.ext_qty.value = 1;
}


 // To change picture of case
 // Note update this in WPS4() and WPS5() Your are in WPS5() now
if (document.pcform.case1.selectedIndex == 0)
{
	document.pcform.casepic.src =  'images/products/blank.jpg';
}
if (document.pcform.case1.selectedIndex == 1)
{
	document.pcform.casepic.src =  'images/products/case1.jpg';
}
if (document.pcform.case1.selectedIndex == 2)
{
	document.pcform.casepic.src =  'images/products/case2.jpg';
}
if (document.pcform.case1.selectedIndex == 3)
{
	document.pcform.casepic.src =  'images/products/case3.jpg';
}
if (document.pcform.case1.selectedIndex == 4)
{
	document.pcform.casepic.src =  'images/products/case4.jpg';
}
if (document.pcform.case1.selectedIndex == 5)
{
	document.pcform.casepic.src =  'images/products/case5.jpg';
}
if (document.pcform.case1.selectedIndex == 6)
{
	document.pcform.casepic.src =  'images/products/case6.jpg';
}
if (document.pcform.case1.selectedIndex == 7)
{
	document.pcform.casepic.src =  'images/products/case7.jpg';
}
if (document.pcform.case1.selectedIndex == 8)
{
	document.pcform.casepic.src =  'images/products/case8.jpg';
}
if (document.pcform.case1.selectedIndex == 9)
{
	document.pcform.casepic.src =  'images/products/case9.jpg';
}
if (document.pcform.case1.selectedIndex == 10)
{
	document.pcform.casepic.src =  'images/products/case10.jpg';
}
 // To change picture of monitor 
 // Note update this in WPS4() and WPS5() Your are in WPS5() now

if (document.pcform.monitor1.selectedIndex == 0)
{
	document.pcform.monitorpic.src =  'images/products/blank.jpg';
}
if (document.pcform.monitor1.selectedIndex == 1)
{
	document.pcform.monitorpic.src =  'images/products/monitor1.jpg';
}
if (document.pcform.monitor1.selectedIndex == 2)
{
	document.pcform.monitorpic.src =  'images/products/monitor2.jpg';
}
if (document.pcform.monitor1.selectedIndex == 3)
{
	document.pcform.monitorpic.src =  'images/products/monitor3.jpg';
}
if (document.pcform.monitor1.selectedIndex == 4)
{
	document.pcform.monitorpic.src =  'images/products/monitor4.jpg';
}
if (document.pcform.monitor1.selectedIndex == 5)
{
	document.pcform.monitorpic.src =  'images/products/monitor5.jpg';
}
if (document.pcform.monitor1.selectedIndex == 6)
{
	document.pcform.monitorpic.src =  'images/products/monitor6.jpg';
}
if (document.pcform.monitor1.selectedIndex == 7)
{
	document.pcform.monitorpic.src =  'images/products/monitor7.jpg';
}
if (document.pcform.monitor1.selectedIndex == 8)
{
	document.pcform.monitorpic.src =  'images/products/monitor8.jpg';
}
if (document.pcform.monitor1.selectedIndex == 9)
{
	document.pcform.monitorpic.src =  'images/products/monitor9.jpg';
}
if (document.pcform.monitor1.selectedIndex == 10)
{
	document.pcform.monitorpic.src =  'images/products/monitor10.jpg';
}
document.getElementById("case_pic").href =  document.pcform.casepic.src;
document.getElementById("monitor_pic").href =  document.pcform.monitorpic.src;
//variables:

var iNum1= parseFloat([document.pcform.motherboard.value]);
var iNum2= parseFloat([document.pcform.cpu.value]);
var iNum3= parseFloat([document.pcform.ram.value]);
var iNum4= parseFloat([document.pcform.caseType.value]);
var iNum5= parseFloat([document.pcform.opticalDrive.value]);
var iNum6= parseFloat([document.pcform.hardDrive.value]);
var iNum7= parseFloat([document.pcform.hardDrive3.value]);
var iNum8= parseFloat([document.pcform.videoCard.value]);
var iNum9= parseFloat([document.pcform.soundCard.value]);
var iNum10= parseFloat([document.pcform.os.value]);
var iNum11= parseFloat([document.pcform.software2.value]);
var iNum12= parseFloat([document.pcform.monitor.value]);
var iNum13= parseFloat([document.pcform.extras.value]);
var subNum= parseFloat((iNum1 + iNum2 + iNum3 + iNum4 + iNum5 + iNum6 + iNum7 + iNum8 + iNum9 + iNum10 + iNum11 + iNum12 + iNum13).toFixed(2))
var labNum= parseFloat([document.pcform.labortype.value]);
var itaxNum= parseFloat((subNum * .0775).toFixed(2));
var discounts= parseFloat([document.pcform.ontime.value]);


// calculatior functionality:

 document.pcform.labor.value = labNum
 document.pcform.isubtotal.value = subNum
 document.pcform.tax.value = itaxNum
 document.pcform.total.value = (subNum + itaxNum + labNum+ discounts).toFixed(2)
 
 //Moving the values of the selections to the fields to the right.
 
 document.pcform.motherboard.value =  (document.pcform.motherboard1.value * document.pcform.mb_qty.value).toFixed(2)
 document.pcform.cpu.value = (document.pcform.cpu1.value * document.pcform.cpu_qty.value).toFixed(2)
 document.pcform.ram.value = (document.pcform.ram1.value * document.pcform.ram_qty.value).toFixed(2)
 document.pcform.caseType.value = (document.pcform.case1.value * document.pcform.case_qty.value).toFixed(2)
 document.pcform.opticalDrive.value = (document.pcform.opticalDrive1.value * document.pcform.opt_qty.value).toFixed(2)
 document.pcform.hardDrive.value = (document.pcform.hardDrive1.value * document.pcform.hdd_qty1.value).toFixed(2)
 document.pcform.hardDrive3.value = (document.pcform.hardDrive2.value * document.pcform.hdd_qty2.value).toFixed(2)
 document.pcform.videoCard.value = (document.pcform.videoCard1.value * document.pcform.vid_qty.value).toFixed(2)
 document.pcform.soundCard.value = (document.pcform.soundCard1.value * document.pcform.snd_qty.value).toFixed(2)
 document.pcform.os.value = (document.pcform.os1.value * document.pcform.os_qty.value).toFixed(2)
 document.pcform.software2.value = (document.pcform.software.value * document.pcform.sw_qty.value).toFixed(2)
 document.pcform.monitor.value = (document.pcform.monitor1.value * document.pcform.mon_qty.value).toFixed(2)
 document.pcform.extras.value = (document.pcform.extras1.value * document.pcform.ext_qty.value).toFixed(2)
 
 // email formatting:


 document.pcform.sender_summary.value = 
 	("Name: "+document.pcform.sender_name2.value + 
	"\nPhone Number: " + document.pcform.sender_phone2.value + 
	"\nEmail Address: " + document.pcform.sender_mail2.value + 
	"\nAddress: " + document.pcform.sender_address2.value + 
	"\nCity: " + document.pcform.sender_city2.value + 
	"\nZip Code: " + document.pcform.sender_zip2.value+
	"\n\nType of Computer: " + document.pcform.pctype[document.pcform.pctype.selectedIndex].firstChild.nodeValue + "\nLabor Type: " + document.pcform.labortype[document.pcform.labortype.selectedIndex].firstChild.nodeValue +	"\n\nMotherboard: " + document.pcform.motherboard1[document.pcform.motherboard1.selectedIndex].firstChild.nodeValue + " Price: " + iNum1 + 
	"\nCPU: "+ document.pcform.cpu1[document.pcform.cpu1.selectedIndex].firstChild.nodeValue + " Price: " + iNum2 + 
	"\nRAM: "+ document.pcform.ram1[document.pcform.ram1.selectedIndex].firstChild.nodeValue + " Price: " + iNum3 + 
	"\nCase: "+ document.pcform.case1[document.pcform.case1.selectedIndex].firstChild.nodeValue+ " Price: " + iNum4 + 
	"\nOptical Drive: "+ document.pcform.opticalDrive1[document.pcform.opticalDrive1.selectedIndex].firstChild.nodeValue + " Price: " + iNum5 + 
	"\nHard Drive 1: "+ document.pcform.hardDrive1[document.pcform.hardDrive1.selectedIndex].firstChild.nodeValue + " Price: " + iNum6 +
	"\nHard Drive 2: "+ document.pcform.hardDrive1[document.pcform.hardDrive1.selectedIndex].firstChild.nodeValue + " Price: " + iNum7 +
	"\nVideo Card: "+ document.pcform.videoCard1[document.pcform.videoCard1.selectedIndex].firstChild.nodeValue +" Price: " + iNum8 +
	"\nSound Card: "+ document.pcform.soundCard1[document.pcform.soundCard1.selectedIndex].firstChild.nodeValue +" Price: " + iNum9 + 
	"\nOS: " + document.pcform.os1[document.pcform.os1.selectedIndex].firstChild.nodeValue+" Price: " + iNum10 + 
	"\nsoftware: "+ document.pcform.software[document.pcform.software.selectedIndex].firstChild.nodeValue+" Price: " + iNum11 + 
	"\nMonitor: " + document.pcform.monitor1[document.pcform.monitor1.selectedIndex].firstChild.nodeValue+" Price: " + iNum12 +
	"\nextras: " + document.pcform.extras1[document.pcform.extras1.selectedIndex].firstChild.nodeValue+" Price: " + iNum13 + 
 	"\n\nSub Total: " + document.pcform.isubtotal.value + 
	"\nTax Total: " + document.pcform.tax.value + 
	"\nLabor Total: " + document.pcform.labor.value + 
	"\nDiscounts Total: " + document.pcform.ontime.value + 
	"\nTotal: " + document.pcform.total.value +
	
	"\n\nExtra Requests: " + document.pcform.sender_request.value
 )
 document.pcform.case_pic.href =  document.pcform.casepic.src;
document.pcform.monitor_pic.href =  document.pcform.monitorpic.src;
 
}


function wpws4()
{
//variables:

var iNum1= parseFloat([document.pcform.motherboard.value]);
var iNum2= parseFloat([document.pcform.cpu.value]);
var iNum3= parseFloat([document.pcform.ram.value]);
var iNum4= parseFloat([document.pcform.caseType.value]);
var iNum5= parseFloat([document.pcform.opticalDrive.value]);
var iNum6= parseFloat([document.pcform.hardDrive.value]);
var iNum7= parseFloat([document.pcform.hardDrive3.value]);
var iNum8= parseFloat([document.pcform.videoCard.value]);
var iNum9= parseFloat([document.pcform.soundCard.value]);
var iNum10= parseFloat([document.pcform.os.value]);
var iNum11= parseFloat([document.pcform.software2.value]);
var iNum12= parseFloat([document.pcform.monitor.value]);
var iNum13= parseFloat([document.pcform.extras.value]);
var subNum= parseFloat((iNum1 + iNum2 + iNum3 + iNum4 + iNum5 + iNum6 + iNum7 + iNum8 + iNum9 + iNum10 + iNum11 + iNum12 + iNum13).toFixed(2))
var labNum= parseFloat([document.pcform.labortype.value]);
var itaxNum= parseFloat((subNum * .0775).toFixed(2));
var discounts= parseFloat([document.pcform.ontime.value]);

// calculatior functionality:

 document.pcform.labor.value = labNum
 document.pcform.isubtotal.value = subNum
 document.pcform.tax.value = itaxNum
 document.pcform.total.value = (subNum + itaxNum + labNum+ discounts).toFixed(2)
 
 //Moving the valuse of the selections to the fields to the right.
 
  document.pcform.motherboard.value =  (document.pcform.motherboard1.value * document.pcform.mb_qty.value).toFixed(2)
 document.pcform.cpu.value = (document.pcform.cpu1.value * document.pcform.cpu_qty.value).toFixed(2)
 document.pcform.ram.value = (document.pcform.ram1.value * document.pcform.ram_qty.value).toFixed(2)
 document.pcform.caseType.value = (document.pcform.case1.value * document.pcform.case_qty.value).toFixed(2)
 document.pcform.opticalDrive.value = (document.pcform.opticalDrive1.value * document.pcform.opt_qty.value).toFixed(2)
 document.pcform.hardDrive.value = (document.pcform.hardDrive1.value * document.pcform.hdd_qty1.value).toFixed(2)
 document.pcform.hardDrive3.value = (document.pcform.hardDrive2.value * document.pcform.hdd_qty2.value).toFixed(2)
 document.pcform.videoCard.value = (document.pcform.videoCard1.value * document.pcform.vid_qty.value).toFixed(2)
 document.pcform.soundCard.value = (document.pcform.soundCard1.value * document.pcform.snd_qty.value).toFixed(2)
 document.pcform.os.value = (document.pcform.os1.value * document.pcform.os_qty.value).toFixed(2)
 document.pcform.software2.value = (document.pcform.software.value * document.pcform.sw_qty.value).toFixed(2)
 document.pcform.monitor.value = (document.pcform.monitor1.value * document.pcform.mon_qty.value).toFixed(2)
 document.pcform.extras.value = (document.pcform.extras1.value * document.pcform.ext_qty.value).toFixed(2)
 
 
 // To change picture of case
 // Note update this in WPS4() and WPS5() Your are in WPS4() now
if (document.pcform.case1.selectedIndex == 0)
{
	document.pcform.casepic.src =  'images/products/blank.jpg';
}
if (document.pcform.case1.selectedIndex == 1)
{
	document.pcform.casepic.src =  'images/products/case1.jpg';
}
if (document.pcform.case1.selectedIndex == 2)
{
	document.pcform.casepic.src =  'images/products/case2.jpg';
}
if (document.pcform.case1.selectedIndex == 3)
{
	document.pcform.casepic.src =  'images/products/case3.jpg';
}
if (document.pcform.case1.selectedIndex == 4)
{
	document.pcform.casepic.src =  'images/products/case4.jpg';
}
if (document.pcform.case1.selectedIndex == 5)
{
	document.pcform.casepic.src =  'images/products/case5.jpg';
}
if (document.pcform.case1.selectedIndex == 6)
{
	document.pcform.casepic.src =  'images/products/case6.jpg';
}
if (document.pcform.case1.selectedIndex == 7)
{
	document.pcform.casepic.src =  'images/products/case7.jpg';
}
if (document.pcform.case1.selectedIndex == 8)
{
	document.pcform.casepic.src =  'images/products/case8.jpg';
}
if (document.pcform.case1.selectedIndex == 9)
{
	document.pcform.casepic.src =  'images/products/case9.jpg';
}
if (document.pcform.case1.selectedIndex == 10)
{
	document.pcform.casepic.src =  'images/products/case10.jpg';
}
 // To change picture of monitor 
 // Note update this in WPS4() and WPS5() Your are in WPS4() now

if (document.pcform.monitor1.selectedIndex == 0)
{
	document.pcform.monitorpic.src =  'images/products/blank.jpg';
}
if (document.pcform.monitor1.selectedIndex == 1)
{
	document.pcform.monitorpic.src =  'images/products/monitor1.jpg';
}
if (document.pcform.monitor1.selectedIndex == 2)
{
	document.pcform.monitorpic.src =  'images/products/monitor2.jpg';
}
if (document.pcform.monitor1.selectedIndex == 3)
{
	document.pcform.monitorpic.src =  'images/products/monitor3.jpg';
}
if (document.pcform.monitor1.selectedIndex == 4)
{
	document.pcform.monitorpic.src =  'images/products/monitor4.jpg';
}
if (document.pcform.monitor1.selectedIndex == 5)
{
	document.pcform.monitorpic.src =  'images/products/monitor5.jpg';
}
if (document.pcform.monitor1.selectedIndex == 6)
{
	document.pcform.monitorpic.src =  'images/products/monitor6.jpg';
}
if (document.pcform.monitor1.selectedIndex == 7)
{
	document.pcform.monitorpic.src =  'images/products/monitor7.jpg';
}
if (document.pcform.monitor1.selectedIndex == 8)
{
	document.pcform.monitorpic.src =  'images/products/monitor8.jpg';
}
if (document.pcform.monitor1.selectedIndex == 9)
{
	document.pcform.monitorpic.src =  'images/products/monitor9.jpg';
}
if (document.pcform.monitor1.selectedIndex == 10)
{
	document.pcform.monitorpic.src =  'images/products/monitor10.jpg';
}
 
 
 // email formatting:

document.pcform.sender_summary.value = 
 	("Name: "+document.pcform.sender_name2.value + 
	"\nPhone Number: " + document.pcform.sender_phone2.value + 
	"\nEmail Address: " + document.pcform.sender_mail2.value + 
	"\nAddress: " + document.pcform.sender_address2.value + 
	"\nCity: " + document.pcform.sender_city2.value + 
	"\nZip Code: " + document.pcform.sender_zip2.value+
	"\n\nType of Computer: " + document.pcform.pctype[document.pcform.pctype.selectedIndex].firstChild.nodeValue + "\nLabor Type: " + document.pcform.labortype[document.pcform.labortype.selectedIndex].firstChild.nodeValue +	"\n\nMotherboard: " + document.pcform.motherboard1[document.pcform.motherboard1.selectedIndex].firstChild.nodeValue + " Price: " + iNum1 + 
	"\nCPU: "+ document.pcform.cpu1[document.pcform.cpu1.selectedIndex].firstChild.nodeValue + " Price: " + iNum2 + 
	"\nRAM: "+ document.pcform.ram1[document.pcform.ram1.selectedIndex].firstChild.nodeValue + " Price: " + iNum3 + 
	"\nCase: "+ document.pcform.case1[document.pcform.case1.selectedIndex].firstChild.nodeValue+ " Price: " + iNum4 + 
	"\nOptical Drive: "+ document.pcform.opticalDrive1[document.pcform.opticalDrive1.selectedIndex].firstChild.nodeValue + " Price: " + iNum5 + 
	"\nHard Drive 1: "+ document.pcform.hardDrive1[document.pcform.hardDrive1.selectedIndex].firstChild.nodeValue + " Price: " + iNum6 +
	"\nHard Drive 2: "+ document.pcform.hardDrive1[document.pcform.hardDrive1.selectedIndex].firstChild.nodeValue + " Price: " + iNum7 +
	"\nVideo Card: "+ document.pcform.videoCard1[document.pcform.videoCard1.selectedIndex].firstChild.nodeValue +" Price: " + iNum8 +
	"\nSound Card: "+ document.pcform.soundCard1[document.pcform.soundCard1.selectedIndex].firstChild.nodeValue +" Price: " + iNum9 + 
	"\nOS: " + document.pcform.os1[document.pcform.os1.selectedIndex].firstChild.nodeValue+" Price: " + iNum10 + 
	"\nsoftware: "+ document.pcform.software[document.pcform.software.selectedIndex].firstChild.nodeValue+" Price: " + iNum11 + 
	"\nMonitor: " + document.pcform.monitor1[document.pcform.monitor1.selectedIndex].firstChild.nodeValue+" Price: " + iNum12 +
	"\nextras: " + document.pcform.extras1[document.pcform.extras1.selectedIndex].firstChild.nodeValue+" Price: " + iNum13 + 
 	"\n\nSub Total: " + document.pcform.isubtotal.value + 
	"\nTax Total: " + document.pcform.tax.value + 
	"\nLabor Total: " + document.pcform.labor.value + 
	"\nDiscounts Total: " + document.pcform.ontime.value + 
	"\nTotal: " + document.pcform.total.value +
	
	"\n\nExtra Requests: " + document.pcform.sender_request.value
 )
document.getElementById("case_pic").href =  document.pcform.casepic.src;
document.getElementById("monitor_pic").href =  document.pcform.monitorpic.src;
}

 
 	
//-->