	//--------------------------------------------------
	// Copyright Southland Technology Inc., 2001, All Rights Reserved
	//web: http://www.southlandtechnology.com
      //author: BM
	//---------------------------------------------------
var called=false;	//to make sure the function compute() is called
var T_Price=0;
var pr_flag;	//processor flag for keeping track of the choices
var pr_print="";
var os_flag;	//flag for Processor speed
var os_print;
var mem_flag;	//flag for Memory
var mem_print;
var hdrive_flag;	//flag for Hard Drive
var hdrive_print;
var video_flag;	//flag for Video
var video_print;
var fdrive_flag;	//flag for Floopy Drive
var fdrive_print;
var cd_flag;	//flag for CD Rom
var cd_print;
var mn_flag;	//flag for Monitor
var mn_print;
var mos_flag;	//flag for Mouse
var mos_print;
var kb_flag;	//flag for KeyBoard
var kb_print;
var spkrs_flag;	//flag for Speakers
var spkrs_print;
var wasteCRT_flag;	//flag for CRT Waste
var wasteCRT_print;
var wasteLCD_flag;	//flag for LCD Waste
var wasteLCD_print;


function compute(form){
called=true;

//-----Processor------

	pr_flag  = Number(document.form1.processor.value);
	pr_print  = document.form1.processor.options[document.form1.processor.selectedIndex].text;


//-------SDRAM-----------
	mem_flag  = Number(document.form1.mem.value);
	mem_print  = document.form1.mem.options[document.form1.mem.selectedIndex].text;

//-------Hard Drive-------
	hdrive_flag  = Number(document.form1.hdrive.value);
	hdrive_print  = document.form1.hdrive.options[document.form1.hdrive.selectedIndex].text;

//-------USB memory card reader-------
	cardreader_flag=Number(document.form1.cardreadr.value);
	cardreader_print=document.form1.cardreadr.options[document.form1.cardreadr.selectedIndex].text;

//-------Video Card Upgrade-------
	vcard_flag=Number(document.form1.vcard.value);
	vcard_print=document.form1.vcard.options[document.form1.vcard.selectedIndex].text;

//-------Power  Supply-------
	ps_flag=Number(document.form1.ps.value);
	ps_print=document.form1.ps.options[document.form1.ps.selectedIndex].text;

//----------KeyBoard-----------
	kb_flag=Number(document.form1.keyboard.value);
	kb_print=document.form1.keyboard.options[document.form1.keyboard.selectedIndex].text;

//-----------Mouse------
	mos_flag=Number(document.form1.mouse.value);
	mos_print=document.form1.mouse.options[document.form1.mouse.selectedIndex].text;

//----------Monitor-----------
	mn_flag=Number(document.form1.monitor.value);
	mn_print=document.form1.monitor.options[document.form1.monitor.selectedIndex].text;

//---------Waste Fees-------
	wasteLCD_flag=Number(document.form1.WasteLCD.value);
	wasteLCD_print=document.form1.WasteLCD.options[document.form1.WasteLCD.selectedIndex].text;

//-----------Multimedia------
	spkrs_flag=Number(document.form1.spkrs.value);
	spkrs_print=document.form1.spkrs.options[document.form1.spkrs.selectedIndex].text;

//-----------Surge Protection------
	surge_flag=Number(document.form1.surge.value);
	surge_print=document.form1.surge.options[document.form1.surge.selectedIndex].text;



//	OLD STUFF BELOW NOT BEING USED ANYMORE

////-------DVD ROM-------
//	cd_flag=Number(document.form1.cd.value);
//	cd_print=document.form1.cd.options[document.form1.cd.selectedIndex].text;
//
////-------Operating System----------
//	os_flag=Number(document.form1.os.value);
//	os_print=document.form1.os.options[document.form1.os.selectedIndex].text;
//
////----------LCD-----------
//	lcd_flag=Number(document.form1.lcd.value);
//	lcd_print=document.form1.lcd.options[document.form1.lcd.selectedIndex].text;


T_Price=pr_flag+mem_flag+hdrive_flag+cardreader_flag+vcard_flag+ps_flag+kb_flag
+mos_flag+mn_flag+wasteLCD_flag+spkrs_flag+surge_flag;



//T_Price=pr_flag+os_flag+mem_flag+hdrive_flag+cardreader_flag+fdrive_flag
//+cd_flag+mn_flag+mos_flag+kb_flag+spkrs_flag+surge_flag+lcd_flag
//+wasteCRT_flag+wasteLCD_flag;



form.T_Price.value="$"+ T_Price;
}
function print(form){
if(!called){
	compute(form);
}
text = ("<HEAD><TITLE>SDCCD Contract #01-17 / Southland Technology</TITLE></HEAD>");
text=(text +"<IMG SRC=/images/sdccd1/sdccd_header-001.gif><ALT=SDCCD Logo><ALIGN=TOP><WIDTH=421><HEIGHT=89><BORDER=0>");
text=(text +"<BR><hr><ALIGN=MIDDLE><WIDTH=640><HEIGHT=16><BORDER=0></B><BR>");

text=(text+"<TABLE BORDER =0>");

text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Base System:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>Base System, Core 2 Duo E6550 2.33ghz SDCCD-DQ35JO-1 [$604.00]");
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Processor Upgrade:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+pr_print);
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Additional Memory:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+mem_print);
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Hard Drive:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+hdrive_print);
text=(text+"</td></tr>");
	
//text=(text+"<TR><td>");
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Optional Drive:");
//	text=(text+"</td><td>");	
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+cd_print);
//text=(text+"</td></tr>");
	
//text=(text+"<TR><td>");
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Zip Drive:");
//	text=(text+"</td><td>");	
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+fdrive_print);
//text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Multimedia Card Reader:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+cardreader_print);
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Video Card Option:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+vcard_print);
text=(text+"</td></tr>");

text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Case Option:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+ps_print);
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Keyboard:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+kb_print);
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Mouse:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+mos_print);
text=(text+"</td></tr>");
	
//text=(text+"<TR><td>");
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>OS:");
//	text=(text+"</td><td>");	
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+os_print);
//text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Monitor:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+mn_print);
text=(text+"</td></tr>");

text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Waste Fee:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+wasteLCD_print);
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Speakers:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+spkrs_print);
text=(text+"</td></tr>");
	
text=(text+"<TR><td>");
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>Surge Protector:");
	text=(text+"</td><td>");	
	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+surge_print);
text=(text+"</td></tr>");
	
	
//text=(text+"<TR><td>");
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1><B>LCD:");
//	text=(text+"</td><td>");	
//	text =(text+"<FONT FACE=ARIAL COLOR=BLACK SIZE=-1>"+lcd_print);
//text=(text+"</td></tr>");
	
text=(text+"</TABLE><hr>");

text=(text+"<B><FONT FACE=ARIAL COLOR=#FF0000>Your Price:</FONT>"+" &nbsp &nbsp &nbsp $"+T_Price);
text=(text+"<BR><BR><FONT SIZE=-1><FONT FACE=ARIAL><FONT COLOR=#000000>Sales tax not included in quoted price.</FONT></FONT>");
text=(text+"<BR><BR><FONT SIZE=-1><FONT FACE=ARIAL><FONT COLOR=#000000>To print, choose FILE and PRINT.</FONT></FONT>");
text=(text+"<BR><BR><A class=\"navbar\" href=\"javascript:self.close();\"><FONT SIZE=-1><FONT FACE=ARIAL><FONT COLOR=#0A5A81>Close Window.</FONT></FONT></A>");
text=(text+"</body></html>");
                msgWindow=window.open("","displayWindow","toolbar=no,width=800,height=480,directories=no,status=yes,scrollbars=yes,resize=no,menubar=yes")
                msgWindow.document.write(text)
                msgWindow.document.close()
}