<!--
 	//Buyback code
	var submitFlag = false;
	var bCalculate = false;
	var iOnChange = 0;
	function leavingSite()
	{
		//removing survey.
		//var currentPage = location.href;
		//if (currentPage.indexOf("desktop.html") >= 0 ||	currentPage.indexOf("notebook.html") >= 0 || currentPage.indexOf("server.html") >= 0  ||
		//	currentPage.indexOf("monitor.html") >= 0 || currentPage.indexOf("printer.html") >= 0)
		//{
		//	if (submitFlag == false && bCalculate)
		//	{	
		//		window.open("ars_exit.html","arsexit","width=443,height=300,resizable=1,scrollbars=1,screenX=0,screenY=0,top=0,left=0");
		//	}
		//}
	}
	function setChange()
	{
		iOnChange++;
	}
	function validateProduct(theForm)
	{
		var thecount = 0;
		var theNumeric = 0;
		var theQuantity = 0;
		var ctlError = theForm.Product_Description;
					if (theForm.Manufacturer__Desktop_Notebook.selectedIndex < 1)
					{
						thecount++;
						if (thecount == 1)
							ctlError = theForm.Manufacturer__Desktop_Notebook;
					}
					if (theForm.Quantity.value == ""){
					 	thecount++;			
					 	if (thecount == 1)			
							ctlError = theForm.Quantity;
					}
					else if (isNaN(theForm.Quantity.value))
					{
						theNumeric++;
						if (theNumeric == 1)
							ctlError = theForm.Quantity;
					}
					else if (theForm.Quantity.value < 1)
					{
						theNumeric++;
						if (theNumeric == 1)
							ctlError = theForm.Quantity;
					}
					else if (theForm.Quantity.value >= 250)
					{
						theQuantity++;
						if (theQuantity == 1)
							ctlError = theForm.Quantity;
					}
					if (theForm.Condition_Desktop.selectedIndex < 1)
					{
						thecount++;
						if (thecount == 1)
							ctlError = theForm.Condition_Desktop;
					}
					if (theForm.CPU_type.selectedIndex < 1)
					{
						thecount++;
						if (thecount == 1)
							ctlError = theForm.CPU_type;
					}
					if (theForm.RAM__Desktop_Notebook.selectedIndex < 1)
					{
						thecount++;
						if (thecount == 1)
							ctlError = theForm.RAM__Desktop_Notebook;
					}
					if (theForm.CPU_speed.selectedIndex < 1)
					{
						thecount++;
						if (thecount == 1)
							ctlError = theForm.CPU_speed;
					}
					if (theForm.Total_hard_drive_space.selectedIndex < 1)
					{
						thecount++;
						if (thecount == 1)
							ctlError = theForm.Total_hard_drive_space;
					}
					if (theForm.Optical.selectedIndex < 1)
					{
						thecount++;
						if (thecount == 1)
							ctlError = theForm.Optical;
					}
		if (theForm.Product_Description.value == "")
		{
			thecount++;
			ctlError = theForm.Product_Description;
		}
	 	if (thecount > 0) 
		{		 
			alert("Please ensure that all product description fields are populated.");
			ctlError.focus();
			return false;
		}
		else if (theNumeric > 0)
		{
			if (ctlError.name == "Total_hard_drive_space__Server")
				alert("The total hard drive space must be numeric.");			
			else if (ctlError.name == "Number_of_physical_hard_drives")
				alert("The number of physical hard drives must be numeric and greater than 0.");			
			else
				alert("The quantity must be numeric and greater than 0.");
			ctlError.focus();
			return false;
		}
		else if (theQuantity > 0)
		{
			alert("For quantities of 250 assets or greater, please call our Asset Recovery Solutions specialists at 888-SHOP-IBM, ext. 27615.");
			ctlError.focus();
			return false;
		}
		else
		{
			return true;
		}
	}
	function Validator(theForm)
	{
		var sFinalCalculation = calculateCredit();
		var sFinalCharges = calculateCharges();
		if ((document.GarsBB.Total_Product_Credit.value == "$0.00") && (sFinalCalculation != "$0.00"))
		{
			alert("Please review the total product credit by clicking the 'Calculate' button.");
			document.GarsBB.Calculate.focus();
			return;
		}		   
		else if (sFinalCalculation == "$0.00")
		{
			alert("You have not added any products.");
			document.GarsBB.Product_Description.focus();
			return;
		}
		else if ((document.GarsBB.Total_Product_Credit.value != sFinalCalculation)	|| 
				 (document.GarsBB.Total_Charges.value != sFinalCharges))
		{ 
			alert("A change has been made, please recalculate the total by clicking on the 'Calculate' button.");
			document.GarsBB.Calculate.focus();
			return;
		}		
		else if (validateContact(document.GarsBB))
		{ 
			if (iOnChange > 0)
			{
				if (confirm("You have made changes to the Product description without saving.  To save changes, either click 'Add Configuration' or 'Update Configuration'. Do you want to save the changes?"))
				{
					document.GarsBB.Product_Description.focus();
					return;
				}
				else{
					resetProductConfig(0, true);	
				}
			}
			submitFlag = true;
			setReference(document.GarsBB);
			document.GarsBB.FormTemplate.value = "/projects/www/content/financing/ca/en/recovery/tools/desktopTemplate" + document.GarsBB.Product_List.length + ".txt";
			document.GarsBB.submit();
		}
		else{
			return;
		}   
	}
	function resetProductConfig (iIndex, bUnselect)
	{
			if (iIndex == 0)
			{
						document.GarsBB.Manufacturer__Desktop_Notebook.selectedIndex = 0;
						document.GarsBB.Quantity.value = "1";
						document.GarsBB.Condition_Desktop.selectedIndex = 0;
						document.GarsBB.CPU_type.selectedIndex = 0;
						document.GarsBB.RAM__Desktop_Notebook.selectedIndex = 0;
						document.GarsBB.CPU_speed.selectedIndex = 0;
						document.GarsBB.Total_hard_drive_space.selectedIndex = 0;
						document.GarsBB.Optical.selectedIndex = 0;
						document.GarsBB.Modem.checked = false;
						document.GarsBB.Floppy_drive.checked = false;
						document.GarsBB.Certificate_of_authenticity.checked = false;
			document.GarsBB.Product_Description.value = "";
		}
			if (iIndex == 1)
			{
					document.GarsBB.Manufacturer__Desktop_Notebook1.value = "";
					document.GarsBB.Quantity1.value = "";
					document.GarsBB.Condition_Desktop1.value = "";
					document.GarsBB.CPU_type1.value = "";
					document.GarsBB.RAM__Desktop_Notebook1.value = "";
					document.GarsBB.CPU_speed1.value = "";
					document.GarsBB.Total_hard_drive_space1.value = "";
					document.GarsBB.Optical1.value = "";
					document.GarsBB.Modem1.value = "";
					document.GarsBB.Floppy_drive1.value = "";
					document.GarsBB.Certificate_of_authenticity1.value = "";
			document.GarsBB.Product_Description1.value = "";
		}
			if (iIndex == 2)
			{
					document.GarsBB.Manufacturer__Desktop_Notebook2.value = "";
					document.GarsBB.Quantity2.value = "";
					document.GarsBB.Condition_Desktop2.value = "";
					document.GarsBB.CPU_type2.value = "";
					document.GarsBB.RAM__Desktop_Notebook2.value = "";
					document.GarsBB.CPU_speed2.value = "";
					document.GarsBB.Total_hard_drive_space2.value = "";
					document.GarsBB.Optical2.value = "";
					document.GarsBB.Modem2.value = "";
					document.GarsBB.Floppy_drive2.value = "";
					document.GarsBB.Certificate_of_authenticity2.value = "";
			document.GarsBB.Product_Description2.value = "";
		}
			if (iIndex == 3)
			{
					document.GarsBB.Manufacturer__Desktop_Notebook3.value = "";
					document.GarsBB.Quantity3.value = "";
					document.GarsBB.Condition_Desktop3.value = "";
					document.GarsBB.CPU_type3.value = "";
					document.GarsBB.RAM__Desktop_Notebook3.value = "";
					document.GarsBB.CPU_speed3.value = "";
					document.GarsBB.Total_hard_drive_space3.value = "";
					document.GarsBB.Optical3.value = "";
					document.GarsBB.Modem3.value = "";
					document.GarsBB.Floppy_drive3.value = "";
					document.GarsBB.Certificate_of_authenticity3.value = "";
			document.GarsBB.Product_Description3.value = "";
		}
			if (iIndex == 4)
			{
					document.GarsBB.Manufacturer__Desktop_Notebook4.value = "";
					document.GarsBB.Quantity4.value = "";
					document.GarsBB.Condition_Desktop4.value = "";
					document.GarsBB.CPU_type4.value = "";
					document.GarsBB.RAM__Desktop_Notebook4.value = "";
					document.GarsBB.CPU_speed4.value = "";
					document.GarsBB.Total_hard_drive_space4.value = "";
					document.GarsBB.Optical4.value = "";
					document.GarsBB.Modem4.value = "";
					document.GarsBB.Floppy_drive4.value = "";
					document.GarsBB.Certificate_of_authenticity4.value = "";
			document.GarsBB.Product_Description4.value = "";
		}
			if (iIndex == 5)
			{
					document.GarsBB.Manufacturer__Desktop_Notebook5.value = "";
					document.GarsBB.Quantity5.value = "";
					document.GarsBB.Condition_Desktop5.value = "";
					document.GarsBB.CPU_type5.value = "";
					document.GarsBB.RAM__Desktop_Notebook5.value = "";
					document.GarsBB.CPU_speed5.value = "";
					document.GarsBB.Total_hard_drive_space5.value = "";
					document.GarsBB.Optical5.value = "";
					document.GarsBB.Modem5.value = "";
					document.GarsBB.Floppy_drive5.value = "";
					document.GarsBB.Certificate_of_authenticity5.value = "";
			document.GarsBB.Product_Description5.value = "";
		}
		iOnChange = 0;
		if (bUnselect)
			document.GarsBB.Product_List.selectedIndex = -1;
		return;
	}
	function transferElements (iToIndex, iFromIndex)
	{
			if 	(iToIndex == 1)
			{
					if (iFromIndex == 0)				
						document.GarsBB.Manufacturer__Desktop_Notebook1.value = document.GarsBB.Manufacturer__Desktop_Notebook.options[document.GarsBB.Manufacturer__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.Manufacturer__Desktop_Notebook1.value = eval("document.GarsBB.Manufacturer__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						document.GarsBB.Quantity1.value = document.GarsBB.Quantity.value;				   
					}
					else
					{
						document.GarsBB.Quantity1.value = eval("document.GarsBB.Quantity" + iFromIndex).value;
					}
					if (iFromIndex == 0)				
						document.GarsBB.Condition_Desktop1.value = document.GarsBB.Condition_Desktop.options[document.GarsBB.Condition_Desktop.selectedIndex].value;
					else
						document.GarsBB.Condition_Desktop1.value = eval("document.GarsBB.Condition_Desktop" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_type1.value = document.GarsBB.CPU_type.options[document.GarsBB.CPU_type.selectedIndex].value;
					else
						document.GarsBB.CPU_type1.value = eval("document.GarsBB.CPU_type" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.RAM__Desktop_Notebook1.value = document.GarsBB.RAM__Desktop_Notebook.options[document.GarsBB.RAM__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.RAM__Desktop_Notebook1.value = eval("document.GarsBB.RAM__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_speed1.value = document.GarsBB.CPU_speed.options[document.GarsBB.CPU_speed.selectedIndex].value;
					else
						document.GarsBB.CPU_speed1.value = eval("document.GarsBB.CPU_speed" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Total_hard_drive_space1.value = document.GarsBB.Total_hard_drive_space.options[document.GarsBB.Total_hard_drive_space.selectedIndex].value;
					else
						document.GarsBB.Total_hard_drive_space1.value = eval("document.GarsBB.Total_hard_drive_space" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Optical1.value = document.GarsBB.Optical.options[document.GarsBB.Optical.selectedIndex].value;
					else
						document.GarsBB.Optical1.value = eval("document.GarsBB.Optical" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Modem.checked == true) 
						{
							document.GarsBB.Modem1.value = "Yes";
						}
						else
						{
							document.GarsBB.Modem1.value = "No";
						}
					}
					else{
						document.GarsBB.Modem1.value = eval("document.GarsBB.Modem" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Floppy_drive.checked == true) 
						{
							document.GarsBB.Floppy_drive1.value = "Yes";
						}
						else
						{
							document.GarsBB.Floppy_drive1.value = "No";
						}
					}
					else{
						document.GarsBB.Floppy_drive1.value = eval("document.GarsBB.Floppy_drive" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Certificate_of_authenticity.checked == true) 
						{
							document.GarsBB.Certificate_of_authenticity1.value = "Yes";
						}
						else
						{
							document.GarsBB.Certificate_of_authenticity1.value = "No";
						}
					}
					else{
						document.GarsBB.Certificate_of_authenticity1.value = eval("document.GarsBB.Certificate_of_authenticity" + iFromIndex).value;
					}
				if (iFromIndex == 0)
				{
					document.GarsBB.Product_Description1.value = document.GarsBB.Product_Description.value;
				}
				else
				{
					document.GarsBB.Product_Description1.value = eval("document.GarsBB.Product_Description" + iFromIndex).value;
				}
			}
			if 	(iToIndex == 2)
			{
					if (iFromIndex == 0)				
						document.GarsBB.Manufacturer__Desktop_Notebook2.value = document.GarsBB.Manufacturer__Desktop_Notebook.options[document.GarsBB.Manufacturer__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.Manufacturer__Desktop_Notebook2.value = eval("document.GarsBB.Manufacturer__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						document.GarsBB.Quantity2.value = document.GarsBB.Quantity.value;				   
					}
					else
					{
						document.GarsBB.Quantity2.value = eval("document.GarsBB.Quantity" + iFromIndex).value;
					}
					if (iFromIndex == 0)				
						document.GarsBB.Condition_Desktop2.value = document.GarsBB.Condition_Desktop.options[document.GarsBB.Condition_Desktop.selectedIndex].value;
					else
						document.GarsBB.Condition_Desktop2.value = eval("document.GarsBB.Condition_Desktop" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_type2.value = document.GarsBB.CPU_type.options[document.GarsBB.CPU_type.selectedIndex].value;
					else
						document.GarsBB.CPU_type2.value = eval("document.GarsBB.CPU_type" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.RAM__Desktop_Notebook2.value = document.GarsBB.RAM__Desktop_Notebook.options[document.GarsBB.RAM__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.RAM__Desktop_Notebook2.value = eval("document.GarsBB.RAM__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_speed2.value = document.GarsBB.CPU_speed.options[document.GarsBB.CPU_speed.selectedIndex].value;
					else
						document.GarsBB.CPU_speed2.value = eval("document.GarsBB.CPU_speed" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Total_hard_drive_space2.value = document.GarsBB.Total_hard_drive_space.options[document.GarsBB.Total_hard_drive_space.selectedIndex].value;
					else
						document.GarsBB.Total_hard_drive_space2.value = eval("document.GarsBB.Total_hard_drive_space" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Optical2.value = document.GarsBB.Optical.options[document.GarsBB.Optical.selectedIndex].value;
					else
						document.GarsBB.Optical2.value = eval("document.GarsBB.Optical" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Modem.checked == true) 
						{
							document.GarsBB.Modem2.value = "Yes";
						}
						else
						{
							document.GarsBB.Modem2.value = "No";
						}
					}
					else{
						document.GarsBB.Modem2.value = eval("document.GarsBB.Modem" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Floppy_drive.checked == true) 
						{
							document.GarsBB.Floppy_drive2.value = "Yes";
						}
						else
						{
							document.GarsBB.Floppy_drive2.value = "No";
						}
					}
					else{
						document.GarsBB.Floppy_drive2.value = eval("document.GarsBB.Floppy_drive" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Certificate_of_authenticity.checked == true) 
						{
							document.GarsBB.Certificate_of_authenticity2.value = "Yes";
						}
						else
						{
							document.GarsBB.Certificate_of_authenticity2.value = "No";
						}
					}
					else{
						document.GarsBB.Certificate_of_authenticity2.value = eval("document.GarsBB.Certificate_of_authenticity" + iFromIndex).value;
					}
				if (iFromIndex == 0)
				{
					document.GarsBB.Product_Description2.value = document.GarsBB.Product_Description.value;
				}
				else
				{
					document.GarsBB.Product_Description2.value = eval("document.GarsBB.Product_Description" + iFromIndex).value;
				}
			}
			if 	(iToIndex == 3)
			{
					if (iFromIndex == 0)				
						document.GarsBB.Manufacturer__Desktop_Notebook3.value = document.GarsBB.Manufacturer__Desktop_Notebook.options[document.GarsBB.Manufacturer__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.Manufacturer__Desktop_Notebook3.value = eval("document.GarsBB.Manufacturer__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						document.GarsBB.Quantity3.value = document.GarsBB.Quantity.value;				   
					}
					else
					{
						document.GarsBB.Quantity3.value = eval("document.GarsBB.Quantity" + iFromIndex).value;
					}
					if (iFromIndex == 0)				
						document.GarsBB.Condition_Desktop3.value = document.GarsBB.Condition_Desktop.options[document.GarsBB.Condition_Desktop.selectedIndex].value;
					else
						document.GarsBB.Condition_Desktop3.value = eval("document.GarsBB.Condition_Desktop" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_type3.value = document.GarsBB.CPU_type.options[document.GarsBB.CPU_type.selectedIndex].value;
					else
						document.GarsBB.CPU_type3.value = eval("document.GarsBB.CPU_type" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.RAM__Desktop_Notebook3.value = document.GarsBB.RAM__Desktop_Notebook.options[document.GarsBB.RAM__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.RAM__Desktop_Notebook3.value = eval("document.GarsBB.RAM__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_speed3.value = document.GarsBB.CPU_speed.options[document.GarsBB.CPU_speed.selectedIndex].value;
					else
						document.GarsBB.CPU_speed3.value = eval("document.GarsBB.CPU_speed" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Total_hard_drive_space3.value = document.GarsBB.Total_hard_drive_space.options[document.GarsBB.Total_hard_drive_space.selectedIndex].value;
					else
						document.GarsBB.Total_hard_drive_space3.value = eval("document.GarsBB.Total_hard_drive_space" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Optical3.value = document.GarsBB.Optical.options[document.GarsBB.Optical.selectedIndex].value;
					else
						document.GarsBB.Optical3.value = eval("document.GarsBB.Optical" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Modem.checked == true) 
						{
							document.GarsBB.Modem3.value = "Yes";
						}
						else
						{
							document.GarsBB.Modem3.value = "No";
						}
					}
					else{
						document.GarsBB.Modem3.value = eval("document.GarsBB.Modem" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Floppy_drive.checked == true) 
						{
							document.GarsBB.Floppy_drive3.value = "Yes";
						}
						else
						{
							document.GarsBB.Floppy_drive3.value = "No";
						}
					}
					else{
						document.GarsBB.Floppy_drive3.value = eval("document.GarsBB.Floppy_drive" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Certificate_of_authenticity.checked == true) 
						{
							document.GarsBB.Certificate_of_authenticity3.value = "Yes";
						}
						else
						{
							document.GarsBB.Certificate_of_authenticity3.value = "No";
						}
					}
					else{
						document.GarsBB.Certificate_of_authenticity3.value = eval("document.GarsBB.Certificate_of_authenticity" + iFromIndex).value;
					}
				if (iFromIndex == 0)
				{
					document.GarsBB.Product_Description3.value = document.GarsBB.Product_Description.value;
				}
				else
				{
					document.GarsBB.Product_Description3.value = eval("document.GarsBB.Product_Description" + iFromIndex).value;
				}
			}
			if 	(iToIndex == 4)
			{
					if (iFromIndex == 0)				
						document.GarsBB.Manufacturer__Desktop_Notebook4.value = document.GarsBB.Manufacturer__Desktop_Notebook.options[document.GarsBB.Manufacturer__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.Manufacturer__Desktop_Notebook4.value = eval("document.GarsBB.Manufacturer__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						document.GarsBB.Quantity4.value = document.GarsBB.Quantity.value;				   
					}
					else
					{
						document.GarsBB.Quantity4.value = eval("document.GarsBB.Quantity" + iFromIndex).value;
					}
					if (iFromIndex == 0)				
						document.GarsBB.Condition_Desktop4.value = document.GarsBB.Condition_Desktop.options[document.GarsBB.Condition_Desktop.selectedIndex].value;
					else
						document.GarsBB.Condition_Desktop4.value = eval("document.GarsBB.Condition_Desktop" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_type4.value = document.GarsBB.CPU_type.options[document.GarsBB.CPU_type.selectedIndex].value;
					else
						document.GarsBB.CPU_type4.value = eval("document.GarsBB.CPU_type" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.RAM__Desktop_Notebook4.value = document.GarsBB.RAM__Desktop_Notebook.options[document.GarsBB.RAM__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.RAM__Desktop_Notebook4.value = eval("document.GarsBB.RAM__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_speed4.value = document.GarsBB.CPU_speed.options[document.GarsBB.CPU_speed.selectedIndex].value;
					else
						document.GarsBB.CPU_speed4.value = eval("document.GarsBB.CPU_speed" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Total_hard_drive_space4.value = document.GarsBB.Total_hard_drive_space.options[document.GarsBB.Total_hard_drive_space.selectedIndex].value;
					else
						document.GarsBB.Total_hard_drive_space4.value = eval("document.GarsBB.Total_hard_drive_space" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Optical4.value = document.GarsBB.Optical.options[document.GarsBB.Optical.selectedIndex].value;
					else
						document.GarsBB.Optical4.value = eval("document.GarsBB.Optical" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Modem.checked == true) 
						{
							document.GarsBB.Modem4.value = "Yes";
						}
						else
						{
							document.GarsBB.Modem4.value = "No";
						}
					}
					else{
						document.GarsBB.Modem4.value = eval("document.GarsBB.Modem" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Floppy_drive.checked == true) 
						{
							document.GarsBB.Floppy_drive4.value = "Yes";
						}
						else
						{
							document.GarsBB.Floppy_drive4.value = "No";
						}
					}
					else{
						document.GarsBB.Floppy_drive4.value = eval("document.GarsBB.Floppy_drive" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Certificate_of_authenticity.checked == true) 
						{
							document.GarsBB.Certificate_of_authenticity4.value = "Yes";
						}
						else
						{
							document.GarsBB.Certificate_of_authenticity4.value = "No";
						}
					}
					else{
						document.GarsBB.Certificate_of_authenticity4.value = eval("document.GarsBB.Certificate_of_authenticity" + iFromIndex).value;
					}
				if (iFromIndex == 0)
				{
					document.GarsBB.Product_Description4.value = document.GarsBB.Product_Description.value;
				}
				else
				{
					document.GarsBB.Product_Description4.value = eval("document.GarsBB.Product_Description" + iFromIndex).value;
				}
			}
			if 	(iToIndex == 5)
			{
					if (iFromIndex == 0)				
						document.GarsBB.Manufacturer__Desktop_Notebook5.value = document.GarsBB.Manufacturer__Desktop_Notebook.options[document.GarsBB.Manufacturer__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.Manufacturer__Desktop_Notebook5.value = eval("document.GarsBB.Manufacturer__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						document.GarsBB.Quantity5.value = document.GarsBB.Quantity.value;				   
					}
					else
					{
						document.GarsBB.Quantity5.value = eval("document.GarsBB.Quantity" + iFromIndex).value;
					}
					if (iFromIndex == 0)				
						document.GarsBB.Condition_Desktop5.value = document.GarsBB.Condition_Desktop.options[document.GarsBB.Condition_Desktop.selectedIndex].value;
					else
						document.GarsBB.Condition_Desktop5.value = eval("document.GarsBB.Condition_Desktop" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_type5.value = document.GarsBB.CPU_type.options[document.GarsBB.CPU_type.selectedIndex].value;
					else
						document.GarsBB.CPU_type5.value = eval("document.GarsBB.CPU_type" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.RAM__Desktop_Notebook5.value = document.GarsBB.RAM__Desktop_Notebook.options[document.GarsBB.RAM__Desktop_Notebook.selectedIndex].value;
					else
						document.GarsBB.RAM__Desktop_Notebook5.value = eval("document.GarsBB.RAM__Desktop_Notebook" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.CPU_speed5.value = document.GarsBB.CPU_speed.options[document.GarsBB.CPU_speed.selectedIndex].value;
					else
						document.GarsBB.CPU_speed5.value = eval("document.GarsBB.CPU_speed" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Total_hard_drive_space5.value = document.GarsBB.Total_hard_drive_space.options[document.GarsBB.Total_hard_drive_space.selectedIndex].value;
					else
						document.GarsBB.Total_hard_drive_space5.value = eval("document.GarsBB.Total_hard_drive_space" + iFromIndex).value;
					if (iFromIndex == 0)				
						document.GarsBB.Optical5.value = document.GarsBB.Optical.options[document.GarsBB.Optical.selectedIndex].value;
					else
						document.GarsBB.Optical5.value = eval("document.GarsBB.Optical" + iFromIndex).value;
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Modem.checked == true) 
						{
							document.GarsBB.Modem5.value = "Yes";
						}
						else
						{
							document.GarsBB.Modem5.value = "No";
						}
					}
					else{
						document.GarsBB.Modem5.value = eval("document.GarsBB.Modem" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Floppy_drive.checked == true) 
						{
							document.GarsBB.Floppy_drive5.value = "Yes";
						}
						else
						{
							document.GarsBB.Floppy_drive5.value = "No";
						}
					}
					else{
						document.GarsBB.Floppy_drive5.value = eval("document.GarsBB.Floppy_drive" + iFromIndex).value;
					}
					if (iFromIndex == 0)
					{
						if (document.GarsBB.Certificate_of_authenticity.checked == true) 
						{
							document.GarsBB.Certificate_of_authenticity5.value = "Yes";
						}
						else
						{
							document.GarsBB.Certificate_of_authenticity5.value = "No";
						}
					}
					else{
						document.GarsBB.Certificate_of_authenticity5.value = eval("document.GarsBB.Certificate_of_authenticity" + iFromIndex).value;
					}
				if (iFromIndex == 0)
				{
					document.GarsBB.Product_Description5.value = document.GarsBB.Product_Description.value;
				}
				else
				{
					document.GarsBB.Product_Description5.value = eval("document.GarsBB.Product_Description" + iFromIndex).value;
				}
			}
		return;
	}
	function addConfiguration()
	{
		if (validateProduct(document.GarsBB))
		{	
			var iIndex = document.GarsBB.Product_List.length;
			if (iIndex > 4){
				alert("You can only submit up to 5 configurations.");
				return;
			}
			//Check total quantity
			var iTotalQuantity = parseInt(document.GarsBB.Quantity.value);
			for (var c=1; c<=iIndex; c++)
			{
				iTotalQuantity = iTotalQuantity + parseInt(eval("document.GarsBB.Quantity" + c + ".value"));
				if (iTotalQuantity >= 250)
				{
					alert("Total quantity exceeds 249 assets, please call our Asset Recovery Solutions specialists at 888-SHOP-IBM, ext. 27615 or update quantity.");
					document.GarsBB.Quantity.focus();
					return;
				}
			}			
			var sSummaryItem = document.GarsBB.Product_Description.value + " - Qty " +  document.GarsBB.Quantity.value;
			//check if product description exists already.
			if (iIndex > 0)
			{
				for (var b=1; b<=iIndex; b++)
				{
					var sProductDescr = eval("document.GarsBB.Product_Description" + b + ".value");
					if (sProductDescr == document.GarsBB.Product_Description.value)
					{
						alert("Product description already exists, please rename or click 'Update Configuration'.");
						return;
					}
				}
			}
			document.GarsBB.Product_List.options[ iIndex ] = new Option( sSummaryItem, sSummaryItem );
			transferElements(iIndex+1, 0);
			resetProductConfig(0, true);
			iOnChange = 0;
			document.GarsBB.Product_List.selectedIndex = -1;
			return;
		}	
	}
	function updateConfiguration()
	{
		var iIndex = document.GarsBB.Product_List.selectedIndex;
		var iLength = document.GarsBB.Product_List.length;
		if (iLength == 0)
		{
			alert("Please add a configuration to your order.");
			return;
		}
		else if (iIndex<0)
		{
			alert("Please select a configuration in the Product summary box to update.");
			return;
		}
		//Check total quantity
		var iTotalQuantity = parseInt(document.GarsBB.Quantity.value);
		for (var d=1; d<=iLength; d++)			
		{
			if (d != iIndex+1)
			{
				iTotalQuantity = iTotalQuantity + parseInt(eval("document.GarsBB.Quantity" + d + ".value"));
				if (iTotalQuantity >= 250)
				{
					alert("Total quantity exceeds 249 assets, please call our Asset Recovery Solutions specialists at 888-SHOP-IBM,  ext. 27615 or update quantity.");
					document.GarsBB.Quantity.focus();
					return;
				}
			}
		}	
		if (validateProduct(document.GarsBB))
		{				
			var sSummaryItem = document.GarsBB.Product_Description.value + " - Qty " +  document.GarsBB.Quantity.value;
			document.GarsBB.Product_List.options[ iIndex ].value = sSummaryItem;
			document.GarsBB.Product_List.options[ iIndex ].text = sSummaryItem;
			transferElements(iIndex + 1, 0);
			iOnChange = 0;
			alert("Product updates completed.");
			document.GarsBB.Product_List.selectedIndex = iIndex;
			return;
		}	
	}
	function removeConfiguration()
	{
		var iIndex = document.GarsBB.Product_List.selectedIndex;
		var iStartIndex = iIndex + 2;
		var iLength = document.GarsBB.Product_List.length;
		//Transfer elements
		for (var m=iStartIndex; m<=iLength; m++)
		{
			transferElements(m-1,m);
		}
		document.GarsBB.Product_List.options[ iIndex ] = null;
		resetProductConfig(iLength, false);
		resetProductConfig(0, true);
		iOnChange = 0;
		return;			
	}
	function displayConfiguration()
	{
		resetProductConfig(0, false);
		var iIndex = document.GarsBB.Product_List.selectedIndex + 1;
		document.GarsBB.Product_Description.value = eval("document.GarsBB.Product_Description" + iIndex).value;
				var sManufacturer__Desktop_NotebookSavedValue = eval("document.GarsBB.Manufacturer__Desktop_Notebook" + iIndex).value;
				for (var i=1; i<= document.GarsBB.Manufacturer__Desktop_Notebook.length-1; i++)
				{
					if (sManufacturer__Desktop_NotebookSavedValue == document.GarsBB.Manufacturer__Desktop_Notebook.options[i].value)
					   document.GarsBB.Manufacturer__Desktop_Notebook.selectedIndex = i;						
				} 
				document.GarsBB.Quantity.value = eval("document.GarsBB.Quantity" + iIndex).value;
				var sCondition_DesktopSavedValue = eval("document.GarsBB.Condition_Desktop" + iIndex).value;
				for (var i=1; i<= document.GarsBB.Condition_Desktop.length-1; i++)
				{
					if (sCondition_DesktopSavedValue == document.GarsBB.Condition_Desktop.options[i].value)
					   document.GarsBB.Condition_Desktop.selectedIndex = i;						
				} 
				var sCPU_typeSavedValue = eval("document.GarsBB.CPU_type" + iIndex).value;
				for (var i=1; i<= document.GarsBB.CPU_type.length-1; i++)
				{
					if (sCPU_typeSavedValue == document.GarsBB.CPU_type.options[i].value)
					   document.GarsBB.CPU_type.selectedIndex = i;						
				} 
					setCPUSpeed(document.GarsBB);
				var sRAM__Desktop_NotebookSavedValue = eval("document.GarsBB.RAM__Desktop_Notebook" + iIndex).value;
				for (var i=1; i<= document.GarsBB.RAM__Desktop_Notebook.length-1; i++)
				{
					if (sRAM__Desktop_NotebookSavedValue == document.GarsBB.RAM__Desktop_Notebook.options[i].value)
					   document.GarsBB.RAM__Desktop_Notebook.selectedIndex = i;						
				} 
				var sCPU_speedSavedValue = eval("document.GarsBB.CPU_speed" + iIndex).value;
				for (var i=1; i<= document.GarsBB.CPU_speed.length-1; i++)
				{
					if (sCPU_speedSavedValue == document.GarsBB.CPU_speed.options[i].value)
					   document.GarsBB.CPU_speed.selectedIndex = i;						
				} 
				var sTotal_hard_drive_spaceSavedValue = eval("document.GarsBB.Total_hard_drive_space" + iIndex).value;
				for (var i=1; i<= document.GarsBB.Total_hard_drive_space.length-1; i++)
				{
					if (sTotal_hard_drive_spaceSavedValue == document.GarsBB.Total_hard_drive_space.options[i].value)
					   document.GarsBB.Total_hard_drive_space.selectedIndex = i;						
				} 
				var sOpticalSavedValue = eval("document.GarsBB.Optical" + iIndex).value;
				for (var i=1; i<= document.GarsBB.Optical.length-1; i++)
				{
					if (sOpticalSavedValue == document.GarsBB.Optical.options[i].value)
					   document.GarsBB.Optical.selectedIndex = i;						
				} 
				if (eval("document.GarsBB.Modem" + iIndex).value == "Yes")		   			
					document.GarsBB.Modem.checked = true;
				else
				    document.GarsBB.Modem.checked = false;	
				if (eval("document.GarsBB.Floppy_drive" + iIndex).value == "Yes")		   			
					document.GarsBB.Floppy_drive.checked = true;
				else
				    document.GarsBB.Floppy_drive.checked = false;	
				if (eval("document.GarsBB.Certificate_of_authenticity" + iIndex).value == "Yes")		   			
					document.GarsBB.Certificate_of_authenticity.checked = true;
				else
				    document.GarsBB.Certificate_of_authenticity.checked = false;	
		return;
	}
	function cpuSpeedCheck(ctl) {
		//var sCPUType = document.GarsBB.CPU_type;
		if (document.GarsBB.CPU_type.selectedIndex < 1)
		{
			alert("Please select a CPU Type.");
			document.GarsBB.CPU_type.focus();
		}
		else{
			setChange();
		}
		return;
	}
	function monitorCheck(ctl) {
		//var sMonitorType = document.GarsBB.Monitor_type;
		if (document.GarsBB.Monitor_type.selectedIndex <1)
		{
			alert("Please select a Monitor type.");
			document.GarsBB.Monitor_type.focus();
		} 
		else{
			setChange();
		}
		return;			
	}
	function setReference(form)
	{
		var time = new Date();
		var month = time.getMonth()+1;
		var day= time.getDate();
		var year= time.getFullYear();
		var hours= time.getHours();
		var minutes= time.getMinutes();
		var seconds= time.getSeconds();
		var sTimestamp = month.toString() + day.toString() + year.toString() + hours.toString()+ minutes.toString() + seconds.toString(); 
		form.Reference_Number.value = form.Last_Name.value.substring(0,3).toUpperCase() + sTimestamp;
		form.subject.value = form.subject.value + " " + form.Last_Name.value.substring(0,3).toUpperCase() + sTimestamp;			
		form.to.value = form.Email_Address.value.toLowerCase();
		return;
	}
	function formatCurrency( num ) 
	{
        var isNegative = false;
        num = num.toString().replace(/\\$|\\,/g,'');
        if( isNaN( num ) ) {
          num = "0";
        }
        if ( num < 0 ) {
          num = Math.abs( num );
          isNegative = true;
        }
        cents = Math.floor( ( num * 100 + 0.5 ) % 100 );
        num = Math.floor( ( num * 100 + 0.5 ) / 100 ).toString();
        if ( cents < 10 ) {
          cents = "0" + cents;
        }
        for ( i = 0; i < Math.floor( ( num.length - ( 1 + i ) ) / 3 ); i++) {
          num = num.substring( 0 ,num.length - ( 4 * i + 3 ) ) + ',' + num.substring( num.length - ( 4 * i + 3 ) );
        }
        var result = '$' + num + '.' + cents;
        if ( isNegative ) {
          result = "-" + result;
        }
        return result;
	}
	function displayCalculation()
	{
		if (iOnChange > 0)
		{
			if (confirm("You have made changes to the Product description without saving.  To save changes, either click 'Add Configuration' or 'Update Configuration'. Do you want to save the changes?"))
			{
				document.GarsBB.Product_Description.focus();
				return;
			}
			else
			{
				resetProductConfig(0, true);
			}
		}
		var sTotalCredit = calculateCredit();		
		//if (sTotalCredit == "$0.00")
		if (document.GarsBB.Product_List.length	== 0)
		{
			alert("You have not added any products to the product list.");
			document.GarsBB.Product_Description.focus();
			//return;
		}
		document.GarsBB.Total_Product_Credit.value = sTotalCredit;
		document.GarsBB.Total_Charges.value = calculateCharges();
		return;
	}
	function calculateCharges()
	{
		var nTotalCharges = 0.0;
		var iTotalQuantity = 0;		
		var iTotalHardDrives = 0;
		var form = document.GarsBB;
		for (var j=1; j<=5; j++)
		{						
			//Determine quantity
			var sQuantity = eval("form.Quantity" + j).value;
			if (sQuantity != "")
			{
				iQuantity = parseInt(sQuantity); 
				iTotalQuantity = iTotalQuantity + iQuantity; 
				if (form.Product_Type.value == "Server")
					iTotalHardDrives = iTotalHardDrives + (parseInt(eval("form.Number_of_physical_hard_drives" + j).value) * iQuantity); 										
				else
					iTotalHardDrives = 1;
			}
		}
		if ((form.Product_Type.value == "Desktop") || (form.Product_Type.value == "Notebook") || (form.Product_Type.value == "Server"))
		{
			//Add Overwrite Costs
			if (form.Disk_overwrite_services.checked)
			{
				if (form.Product_Type.value == "Server")
					nTotalCharges = 25.0 * iTotalHardDrives;
				else
					nTotalCharges = 25.0 * iTotalQuantity;
			}
		}
		//promo - if more than 10 items submitted, transportation costs = 0
		//if (iTotalQuantity < 10 || form.Product_Type.value == "Monitor" || form.Product_Type.value == "Printer")
		//{
			if (form.Transportation_services.checked)
			{
				if ((iTotalQuantity >=1) && (iTotalQuantity <=5))
					nTotalCharges = nTotalCharges + (29.0 * iTotalQuantity);
				else if ((iTotalQuantity >=6) && (iTotalQuantity <=49))
					nTotalCharges = nTotalCharges + (26.0 * iTotalQuantity);
				else if (iTotalQuantity >=50)
					nTotalCharges = nTotalCharges + (22.0 * iTotalQuantity);	
			}
		//}
		var sTotalCharges = formatCurrency(nTotalCharges);
		return sTotalCharges;
	}
	function calculateCredit()
	{
		bCalculate = true;
		var nTotalCost = 0.0;
		var iTotalQuantity = 0;		
		var form = document.GarsBB;
		for (var j=1; j<=5; j++)
		{
			//Determine quantity
			var sQuantity = eval("form.Quantity" + j).value;
			if (sQuantity != "")
			{
				iQuantity = parseInt(sQuantity); 
				iTotalQuantity = iTotalQuantity + iQuantity; 
				var fCost = document.buyback_applet.getEstimateDesktop( eval("form.Manufacturer__Desktop_Notebook" + j).value, eval("form.Condition_Desktop" + j).value,
							eval("form.CPU_type" + j).value, eval("form.CPU_speed" + j).value, eval("form.RAM__Desktop_Notebook" + j).value,
							eval("form.Total_hard_drive_space" + j).value, eval("form.Optical" + j).value, eval("form.Modem" + j).value, 
							eval("form.Floppy_drive" + j).value, eval("form.Certificate_of_authenticity" + j).value);
				nTotalCost = nTotalCost + (fCost * iQuantity);
			}
		}
	    var sTotalCost = formatCurrency(nTotalCost);
		return sTotalCost;
	}
		function populatePickup(form)
	{
		 if (form.samepickup.checked)
		{
			form.PickFirst_Name.value = form.First_Name.value;
			form.PickLast_Name.value = form.Last_Name.value;
			form.PickCompany.value = form.Company.value;
			form.PickAddress.value = form.Address.value;
			form.PickAddress2.value = form.Address2.value;
			form.PickCity.value = form.City.value;		  
			form.PickProvince.value = form.Province.value;
			form.PickZip.value = form.Zip.value;
			form.PickPhone.value = form.Phone.value;
			form.PickPhone2.value = form.Phone2.value;
			form.PickPhone3.value = form.Phone3.value;
			form.PickPhone4.value = form.Phone4.value;
			form.PickAltPhone.value = form.AltPhone.value;
			form.PickAltPhone2.value = form.AltPhone2.value;
			form.PickAltPhone3.value = form.AltPhone3.value;
			form.PickAltPhone4.value = form.AltPhone4.value;
			form.PickEmail_Address.value = form.Email_Address.value;
			form.PickFax.value = form.Fax.value;
			form.PickFax2.value = form.Fax2.value;
			form.PickFax3.value = form.Fax3.value;
		}
		else
		{
			form.PickFirst_Name.value = "";
			form.PickLast_Name.value = "";
			form.PickCompany.value = "";
			form.PickAddress.value = "";
			form.PickAddress2.value = "";
			form.PickCity.value = "";		  
			form.PickProvince.value = "";
			form.PickZip.value = "";
			form.PickPhone.value = "";
			form.PickPhone2.value = "";
			form.PickPhone3.value = "";
			form.PickPhone4.value = "";
			form.PickAltPhone.value = "";
			form.PickAltPhone2.value = "";
			form.PickAltPhone3.value = "";
			form.PickAltPhone4.value = "";
			form.PickEmail_Address.value = "";
			form.PickFax.value = "";
			form.PickFax2.value = "";
			form.PickFax3.value = "";
		}
	}
	function validateContact(form)
	{
		if ((form.First_Name.value == "") || (form.Last_Name.value == "")  || (form.Address.value == "") ||	(form.City.value == "") ||
		    (form.Province.value == "") || (form.Zip.value == "")  || (form.Phone.value == "") || (form.Phone2.value == "") ||  
		    (form.Phone3.value == "") || (form.Email_Address.value == "") || (form.Check_Payable.value == "") ||(form.Company.value == ""))
			{
				alert("Please verify that all required fields are populated (Customer Contact Section).");
				form.First_Name.focus();
				return false;
			}
		else if ((form.Transportation_services.checked) && ((form.PickFirst_Name.value == "") || (form.PickLast_Name.value == "")  || (form.PickAddress.value == "") ||	(form.PickCity.value == "") ||
			    (form.PickProvince.value == "") || (form.PickZip.value == "")  || (form.PickCompany.value == "") || (form.PickPhone.value == "") || (form.PickPhone2.value == "")	 ||	 (form.PickPhone3.value == "")	 ||
				(form.PickAltPhone.value == "") ||	(form.PickAltPhone2.value == "")	 ||	 (form.PickAltPhone3.value == "") || (form.PickEmail_Address.value == "") || (form.Pick_Alt_Contact.value == "") || 
				(form.Pick_Alt_Contact_Phone.value=="") || (form.Pick_Alt_Contact_Phone2.value=="") || (form.Pick_Alt_Contact_Phone3.value=="") || 
				(form.Pickup_Month.selectedIndex <1 ) || (form.Pickup_Day.selectedIndex <1 ) || (form.Pickup_Year.selectedIndex <1 )))
			{
				alert("Please verify that all required fields are populated (Pick-up Contact Section).");
				form.PickFirst_Name.focus();
				return false;
			}
		else if (((form.Phone.value != "") && isNaN(form.Phone.value)) || ((form.Phone2.value != "") && isNaN(form.Phone2.value)) ||
				 ((form.Phone3.value != "") && isNaN(form.Phone3.value)) || ((form.Phone4.value != "") && isNaN(form.Phone4.value)) ||
				 ((form.AltPhone.value != "") && isNaN(form.AltPhone.value)) || ((form.AltPhone2.value != "") && isNaN(form.AltPhone2.value)) ||
				 ((form.AltPhone3.value != "") && isNaN(form.AltPhone3.value)) || ((form.AltPhone4.value != "") && isNaN(form.AltPhone4.value)) ||
				 ((form.Fax.value != "") && isNaN(form.Fax.value)) || ((form.Fax2.value != "") && isNaN(form.Fax2.value)) ||
				 ((form.Fax3.value != "") && isNaN(form.Fax3.value))  )
			{
				alert("Phone numbers and fax numbers must be numeric (Customer Contact Section).");
				form.Phone.focus();
				return false;
			}		
		else if (form.Zip.value.length < 6)
			{
				alert("Postal codes must be at least 6 characters. (Customer Contact Section).");
				form.Zip.focus();
				return false;
			}
		else if ((form.Phone.value.length < 3) || (form.Phone2.value.length < 3) || (form.Phone3.value.length < 4) || 
				 ((form.AltPhone.value != "") && (form.AltPhone.value.length < 3)) || ((form.AltPhone2.value != "") && (form.AltPhone2.value.length < 3)) || 
				 ((form.AltPhone3.value != "") && (form.AltPhone3.value.length < 4)) || ((form.Fax.value != "") && (form.Fax.value.length < 3)) ||
				 ((form.Fax2.value != "") && (form.Fax2.value.length < 3)) || ((form.Fax3.value != "") && (form.Fax3.value.length < 4)))
			{
				alert("Phone and fax numbers must be in the following format: XXX-XXX-XXXX. (Customer Contact Section).");
				form.Phone.focus();
				return false;
			}
		else if ((form.Transportation_services.checked) && (((form.PickPhone.value != "") && isNaN(form.PickPhone.value)) || ((form.PickPhone2.value != "") && isNaN(form.PickPhone2.value)) ||
					 ((form.PickPhone3.value != "") && isNaN(form.PickPhone3.value)) || ((form.PickPhone4.value != "") && isNaN(form.PickPhone4.value)) ||
					 ((form.PickAltPhone.value != "") && isNaN(form.PickAltPhone.value)) || ((form.PickAltPhone2.value != "") && isNaN(form.PickAltPhone2.value)) ||
					 ((form.PickAltPhone3.value != "") && isNaN(form.PickAltPhone3.value)) || ((form.PickAltPhone4.value != "") && isNaN(form.PickAltPhone4.value)) ||
					 ((form.PickFax.value != "") && isNaN(form.PickFax.value)) || ((form.PickFax2.value != "") && isNaN(form.PickFax2.value)) ||
					 ((form.Pick_Alt_Contact_Phone.value != "") && isNaN(form.Pick_Alt_Contact_Phone.value)) || ((form.Pick_Alt_Contact_Phone2.value != "") && isNaN(form.Pick_Alt_Contact_Phone2.value)) ||
					 ((form.Pick_Alt_Contact_Phone3.value != "") && isNaN(form.Pick_Alt_Contact_Phone3.value)) || ((form.PickFax3.value != "") && isNaN(form.PickFax3.value))  ))
		{
			alert("Phone numbers and fax numbers must be numeric (Pick-up Contact Section).");
			form.PickPhone.focus();
			return false;
		}
		else if ((form.PickZip.value != "") && (form.PickZip.value.length < 6 ))
			{
				alert("Postal codes must be at least 6 characters. (Pick-up Contact Section).");
				form.PickZip.focus();
				return false;
			}		
		else if ((form.Transportation_services.checked) && ((form.PickPhone.value.length < 3) || (form.PickPhone2.value.length < 3) || (form.PickPhone3.value.length < 4) || 
				 (form.PickAltPhone.value.length < 3) || (form.PickAltPhone2.value.length < 3) || (form.PickAltPhone3.value.length < 4) ||				 
				 ((form.PickFax.value != "") && (form.PickFax.value.length < 3)) || ((form.PickFax2.value != "") && (form.PickFax2.value.length < 3)) ||
				 ((form.PickFax3.value != "") && (form.PickFax3.value.length < 4))))			
			{
				alert("Phone and fax numbers must be in the following format: XXX-XXX-XXXX. (Pick-up Contact Section).");
				form.PickPhone.focus();
				return false;
			}
		else if ((form.Transportation_services.checked) && ((form.Pick_Alt_Contact_Phone.value.length < 3) || 
				(form.Pick_Alt_Contact_Phone2.value.length < 3) || (form.Pick_Alt_Contact_Phone3.value.length < 4)))
			{
				alert("Phone and fax numbers must be in the following format: XXX-XXX-XXXX. (Pick-up Contact Section).");
				form.Pick_Alt_Contact_Phone.focus();
				return false;
			}
		else if (form.Email_Address.value.indexOf("@") < 0) 
			{
				alert("Email address must contain '@' (Customer Contact Section).");
				form.Email_Address.focus();
				return false;
			}
		else if ((form.PickEmail_Address.value != "") && (form.PickEmail_Address.value.indexOf("@") < 0))
			{
				alert("Email address must contain '@' (Pick-up Contact Section).");
				form.PickEmail_Address.focus();
				return false;
			}
		else if (form.Transportation_services.checked) 
			{
				//Get today's date				
				var currentdate = new Date();
				var month = currentdate.getMonth()+1;
				var day= currentdate.getDate();
				var year= currentdate.getFullYear();
				var pickupdate = new Date(form.Pickup_Year.value, form.Pickup_Month.value, form.Pickup_Day.value);
				if ((pickupdate.getFullYear() < year) ||  
				   ((pickupdate.getFullYear() == year) && (pickupdate.getMonth() < month)) ||
				   ((pickupdate.getFullYear() == year) && (pickupdate.getMonth() == month) && (pickupdate.getDate() < day)))
				{
					alert("The pick up date has already passed.  Please update and resubmit.");
					form.Pickup_Month.focus();
					return false;
				}			 
			}
		    if (form.TermsConditionsVerified.checked == false)
			{
				alert("Please ensure that you have reviewed and agree with terms and conditions of this request.");
				form.TermsConditionsVerified.focus();
				return false;
			}
		return true;
	}
	function enablePickup()
	{
		if (document.GarsBB.Transportation_services.checked)
		{
			document.GarsBB.samepickup.disabled = false;
			document.GarsBB.PickFirst_Name.disabled = false;
			document.GarsBB.PickLast_Name.disabled = false;
			document.GarsBB.PickCompany.disabled = false;
			document.GarsBB.PickAddress.disabled = false;
			document.GarsBB.PickAddress2.disabled = false;
			document.GarsBB.PickCity.disabled = false;
			document.GarsBB.PickProvince.disabled = false;
			document.GarsBB.PickZip.disabled = false;
			document.GarsBB.PickPhone.disabled = false;
			document.GarsBB.PickPhone2.disabled = false;
			document.GarsBB.PickPhone3.disabled = false;
			document.GarsBB.PickPhone4.disabled = false;
			document.GarsBB.PickAltPhone.disabled = false;
			document.GarsBB.PickAltPhone2.disabled = false;
			document.GarsBB.PickAltPhone3.disabled = false;
			document.GarsBB.PickAltPhone4.disabled = false;
			document.GarsBB.PickEmail_Address.disabled = false;
			document.GarsBB.PickFax.disabled = false;
			document.GarsBB.PickFax2.disabled = false;
			document.GarsBB.PickFax3.disabled = false;
			document.GarsBB.Pick_Alt_Contact.disabled = false;
			document.GarsBB.Pick_Alt_Contact_Phone.disabled = false;
			document.GarsBB.Pick_Alt_Contact_Phone2.disabled = false;
			document.GarsBB.Pick_Alt_Contact_Phone3.disabled = false;
			document.GarsBB.Pick_Alt_Contact_Phone4.disabled = false;
			document.GarsBB.Pickup_Month.disabled = false;
			document.GarsBB.Pickup_Day.disabled = false;
			document.GarsBB.Pickup_Year.disabled = false;
			//document.GarsBB.Pickup_Operation_Hours.disabled = false;
			document.GarsBB.Pickup_Floor.disabled = false;
			document.GarsBB.Pickup_Centrally_Located[0].disabled = false;
			document.GarsBB.Pickup_Centrally_Located[1].disabled = false;
			document.GarsBB.Pickup_Freight_Available[0].disabled = false;
			document.GarsBB.Pickup_Freight_Available[1].disabled = false;
			document.GarsBB.Pickup_Liftgate_Required[0].disabled = false;
			document.GarsBB.Pickup_Liftgate_Required[1].disabled = false;
			document.GarsBB.Pickup_Additional_Instructions.disabled = false;
		}  
		else{
			document.GarsBB.samepickup.disabled = true;
			document.GarsBB.PickFirst_Name.disabled = true;
			document.GarsBB.PickLast_Name.disabled = true;
			document.GarsBB.PickCompany.disabled = true;
			document.GarsBB.PickAddress.disabled = true;
			document.GarsBB.PickAddress2.disabled = true;
			document.GarsBB.PickCity.disabled = true;
			document.GarsBB.PickProvince.disabled = true;
			document.GarsBB.PickZip.disabled = true;
			document.GarsBB.PickPhone.disabled = true;
			document.GarsBB.PickPhone2.disabled = true;
			document.GarsBB.PickPhone3.disabled = true;
			document.GarsBB.PickPhone4.disabled = true;
			document.GarsBB.PickAltPhone.disabled = true;
			document.GarsBB.PickAltPhone2.disabled = true;
			document.GarsBB.PickAltPhone3.disabled = true;
			document.GarsBB.PickAltPhone4.disabled = true;
			document.GarsBB.PickEmail_Address.disabled = true;
			document.GarsBB.PickFax.disabled = true;
			document.GarsBB.PickFax2.disabled = true;
			document.GarsBB.PickFax3.disabled = true;
			document.GarsBB.Pick_Alt_Contact.disabled = true;
			document.GarsBB.Pick_Alt_Contact_Phone.disabled = true;
			document.GarsBB.Pick_Alt_Contact_Phone2.disabled = true;
			document.GarsBB.Pick_Alt_Contact_Phone3.disabled = true;
			document.GarsBB.Pick_Alt_Contact_Phone4.disabled = true;
			document.GarsBB.Pickup_Month.disabled = true;
			document.GarsBB.Pickup_Day.disabled = true;
			document.GarsBB.Pickup_Year.disabled = true;
			//document.GarsBB.Pickup_Operation_Hours.disabled = true;
			document.GarsBB.Pickup_Floor.disabled = true;
			document.GarsBB.Pickup_Centrally_Located[0].disabled = true;
			document.GarsBB.Pickup_Centrally_Located[1].disabled = true;
			document.GarsBB.Pickup_Freight_Available[0].disabled = true;
			document.GarsBB.Pickup_Freight_Available[1].disabled = true;
			document.GarsBB.Pickup_Liftgate_Required[0].disabled = true;
			document.GarsBB.Pickup_Liftgate_Required[1].disabled = true;
			document.GarsBB.Pickup_Additional_Instructions.disabled = true;
		}
		return;
	}
	function termsPopup()
	{
		terms=window.open("terms.html","Terms","width=600,height=600,scrollbars=1,screenX=0,screenY=0,top=0,left=0")
		return;
	}
	function clearForm(form)
	{
		if (confirm("Please confirm that you want to delete this transaction.")) 
		{
			form.reset();
			document.location.href = "http://www.ibm.com/financing/ca/en/dispose/buyback.html";
		}
	}
//-->
