  /*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  The purpose of this Script file is to set the values for all drop down menus, validate the form and dynamically
					  change the values of selected list menus based upon the users selection.  This function deals only with the
					  specification document 
	Document:  TKE_Spec.asp
	Functions: SpeedSelector - 	Sets thespeed select element
					   SetCarsInGroup - 	Sets CarsinGrop select element
					   SetFinish - 				Sets ceilingFrameFinish and ceilingfinish select element
					   SetDoorOptions - 	Sets DoorType select element
					   SetRearOpening - sets rearopenings select element
					   SetFrontOpening - sets openings select element
					   isNumber					Validates Number is numeric
					   showlayer			  - Used for CSS layers to reveal and hide sections
					   hidelayer				  - Used for CSS layers to reveal and hide sections
					   SetLandings			Set the totalfloors select element
					   SetCabType		- display the appropriate options based on selection Uses CSS Layers
					   
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
 
 
 
  /*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  Set the available speed drop drown based on the application type.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

/*

  
  //----------------------------------------------------------End Set Car Group Function -------------------------------------------------------------------
  
  
  /*--------------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  Set the drop down boxes for the elevator groups based on the type of application that is passed in
					  from either the main product page or architect direct.  Variable name coming from page is id and can
					  either be (oil for oildraulic or tra for traction)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
  function SetCarsInGroup(selector){
		TempS = document.Specfrm.specid.value;
		switch (TempS){
			case "Oildraulic":
					
				
				     // Set the emergency power options
					 document.Specfrm.EmergencyPower.options.length = 0;
					document.Specfrm.EmergencyPower.options[0] = new Option("Automatic lowering", "AutoLoweringH", false, false);
					document.Specfrm.EmergencyPower.options[1] = new Option("Full automatic operation", "FullAutomatic", false, false);
					document.Specfrm.EmergencyPower.options[2] = new Option("Battery lowering", "BatteryLowering", false, false);
				
				
				break;
		
  		   case "Traction":
				
				
				    // Set the emergency power options
					document.Specfrm.EmergencyPower.options.length = 0;
					document.Specfrm.EmergencyPower.options[0] = new Option("Full automatic operation", "AutoLoweringT", false, false);
					document.Specfrm.EmergencyPower.options[1] = new Option("None", "none", false, false);
					
				 break;
  		
		}
	}
//----------------------------------------------------------End Set Car Group Function -------------------------------------------------------------------
	
	
	
	
	
	
	
  /*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  Set the ceiling frame finish and panel finish.  These options change based upon the type of ceiling selected
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	
   function SetFinish()
   {
	   var TempEname = document.forms[0].ceilingtype.value;
   	switch(TempEname){
		case "suspend":
					document.forms[0].ceilingFrameFinish.options.length = 0;
					document.forms[0].ceilingFrameFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFrameFinish.options[1] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFrameFinish.options[2] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFrameFinish.options[3] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFrameFinish.options[4] = new Option("Bronze, polished", "BRp", false, false);
					document.forms[0].ceilingFrameFinish.options[5] = new Option("Aluminum", "aluminum", false, false);
					
					// panel
					document.forms[0].ceilingFinish.options.length = 0;
					document.forms[0].ceilingFinish.options[0] = new Option("N / A", "none", false, false);
					break;
	
			case "discLight":
					document.forms[0].ceilingFrameFinish.options.length = 0;
					document.forms[0].ceilingFrameFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFrameFinish.options[1] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFrameFinish.options[2] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFrameFinish.options[3] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFrameFinish.options[4] = new Option("Bronze, polished", "BRp", false, false);
					document.forms[0].ceilingFrameFinish.options[5] = new Option("Aluminum", "aluminum", false, false);
					
					// panel
					document.forms[0].ceilingFinish.options.length = 0;
					document.forms[0].ceilingFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFinish.options[1] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFinish.options[2] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFinish.options[3] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFinish.options[4] = new Option("Bronze, polished", "BRp", false, false);
					break;
					
			case "downLightH":
					document.forms[0].ceilingFrameFinish.options.length = 0;
					document.forms[0].ceilingFrameFinish.options[0] = new Option("N / A", "none", false, false);
					
					// panel
					document.forms[0].ceilingFinish.options.length = 0;
					document.forms[0].ceilingFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFinish.options[1] = new Option("Laminated Plastic", "Laminated", false, false);
					document.forms[0].ceilingFinish.options[2] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFinish.options[3] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFinish.options[4] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFinish.options[5] = new Option("Bronze, polished", "BRp", false, false);
					break;
	
				case "downLightI":
					document.forms[0].ceilingFrameFinish.options.length = 0;
					document.forms[0].ceilingFrameFinish.options[0] = new Option("N / A", "none", false, false);
					
					// panel
					document.forms[0].ceilingFinish.options.length = 0;
					document.forms[0].ceilingFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFinish.options[1] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFinish.options[2] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFinish.options[3] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFinish.options[4] = new Option("Bronze, polished", "BRp", false, false);
					break;
				
				case "floatingH":
					document.forms[0].ceilingFrameFinish.options.length = 0;
					document.forms[0].ceilingFrameFinish.options[0] = new Option("N / A", "none", false, false);
					
					// panel
					document.forms[0].ceilingFinish.options.length = 0;
					document.forms[0].ceilingFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFinish.options[1] = new Option("Laminated Plastic", "Laminated", false, false);
					document.forms[0].ceilingFinish.options[2] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFinish.options[3] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFinish.options[4] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFinish.options[5] = new Option("Bronze, polished", "BRp", false, false);
					break;
				
				
				case "floatingP":
					document.forms[0].ceilingFrameFinish.options.length = 0;
					document.forms[0].ceilingFrameFinish.options[0] = new Option("N / A", "none", false, false);
					
					// panel
					document.forms[0].ceilingFinish.options.length = 0;
					document.forms[0].ceilingFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFinish.options[1] = new Option("Laminated Plastic", "Laminated", false, false);
					document.forms[0].ceilingFinish.options[2] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFinish.options[3] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFinish.options[4] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFinish.options[5] = new Option("Bronze, polished", "BRp", false, false);
					break;
					
		default:
	      	document.forms[0].ceilingFrameFinish.options.length = 0;
					document.forms[0].ceilingFrameFinish.options[0] = new Option("Baked Enamel", "BakedEnamel", false, false);
					document.forms[0].ceilingFrameFinish.options[1] = new Option("Stainless Steel, satin", "SSs", false, false);
					document.forms[0].ceilingFrameFinish.options[2] = new Option("Stainless Steel, polished", "SSp", false, false);
					document.forms[0].ceilingFrameFinish.options[3] = new Option("Bronze, satin", "BRs", false, false);
					document.forms[0].ceilingFrameFinish.options[4] = new Option("Bronze, polished", "BRp", false, false);
					document.forms[0].ceilingFrameFinish.options[5] = new Option("Aluminum", "aluminum", false, false);
					
					// panel
					document.forms[0].ceilingFinish.options.length = 0;
					document.forms[0].ceilingFinish.options[0] = new Option("N / A", "none", false, false);
	}
}
//----------------------------------------------------------End Set finsih Function -------------------------------------------------------------------
	
	
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  Set the available door options based on the type of application.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	
	
	
			 function SetDoorOptions(TempEname)
   {
   	switch(TempEname){
		case "CIM20":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Single speed (R / L handed)", "Single speed (Right or Left handed)", false, true);
					// hide the option for front and rear entrances
					hidelayer('rearentrances1');
					hidelayer('rearentrances2');
					// Modify the Door height selection to only show the 7 & 8 foot doors.
					document.forms[0].DoorHeight.options.length = 0;
					document.forms[0].DoorHeight.options[0] = new Option("7'", "7", true, false);
					document.forms[0].CabHeightV.options.length = 0;			
          document.forms[0].CabHeightV.options[1] = new Option("8' nominal", "8", false, false);
				break;
			
		case "CIM25":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Single speed (R / L handed)", "Single speed (Right or Left handed)", false, true);
          hidelayer('rearentrances1');
					hidelayer('rearentrances2');
					// Modify the Door height selection to only show the 7 & 8 foot doors.
					document.forms[0].DoorHeight.options.length = 0;
					document.forms[0].DoorHeight.options[0] = new Option("7'", "7", true, false);
					document.forms[0].CabHeightV.options[1] = new Option("8' nominal", "8", false, false);
					break;
					
		case "FLW21":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Single speed (R / L handed)", "Single speed (Right or Left handed)", false, true);
					break;
		
		case "MRQ25":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Single speed (R / L handed)", "Single speed (Right or Left handed)", false, true);
					document.forms[0].doortype.options[1] = new Option("Center Opening", "Center opening", false, false);
					break;		
		
		case "SVL30":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Single speed (R / L handed)", "Single speed (Right or Left handed)", false, true);
					document.forms[0].doortype.options[1] = new Option("Center Opening", "Center opening", false, false);
					break;	
		
		case "SVL35":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Single speed (R / L handed)", "Single speed (Right or Left handed)", false, true);
					break;
		
		case "CTL45":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Two Speed (R / L handed)", "Two Speed (Right or Left handed)", false, true);
					break;	
		case "CTL50":
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Two Speed (R / L handed)", "TwoSpeedRL", false, true);
					break;		
		default:
					document.forms[0].doortype.options.length = 0;
					document.forms[0].doortype.options[0] = new Option("Two Speed (R / L handed)", "Two Speed (Right or Left handed)", false, true);
					document.forms[0].doortype.options[1] = new Option("Single speed (R / L handed)", "Single speed (Right or Left handed)", false, true);
					document.forms[0].doortype.options[2] = new Option("Center Opening", "Center opening", false, false);
	}
}			
//----------------------------------------------------------End set Doortype -------------------------------------------------------------------
	
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  The following two functions are used to hide and reveal layers within the document based on the type of
					  application and / or the users selection of certain items
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	
			
	function showlayer(layername)
		 {
		 		var reflayer = document.getElementById(layername);
				reflayer.style.display = 'block';
		}
	function hidelayer(layername)
		{
		 		var reflayer = document.getElementById(layername);
				reflayer.style.display = 'none';
		}	
		
			function showpage(layername)
		 {
		 		var reflayer = document.getElementById(layername);
				reflayer.style.visibility = 'visible';
		}
	function hidepage(layername)
		{
		 		var reflayer = document.getElementById(layername);
				reflayer.style.visibility = 'hidden';
		}
					
//----------------------------------------------------------End CSS show / hide layers -------------------------------------------------------------------
	
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose: The following function sets the max number of landings based on the application selected.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	
	function SetLandings(TempApplication)
		{
				var maxfloors;
				var newElem;
				var MRL = document.Specfrm.MRL.value;
				var ser = document.Specfrm.series.value;
				var TempName = document.Specfrm.elename.value;
			
				document.forms[0].numberFloors.options.length = 0;
				TempA = document.Specfrm.specid.value;
				switch(TempA)
					{
						case "Traction":
							if( MRL == "yes" && ser == "300E")
							{
							  maxfloors = 30;
							    	for (var i = 1; i < (maxfloors + 1); i++)
							  {
								 newElem = document.createElement("option");
								 newElem.text = i;
								 newElem.value = i;
								 document.forms[0].numberFloors.add(newElem);
							  }
							}
							if( MRL == "yes" && ser == "300S")
							{
							  maxfloors = 30;
							    	for (var i = 1; i < (maxfloors + 1); i++)
							  {
								 newElem = document.createElement("option");
								 newElem.text = i;
								 newElem.value = i;
								 document.forms[0].numberFloors.add(newElem);
							  }
							}
							if( MRL == "yes" && ser == "300R")
							{
							  maxfloors = 30;
							    	for (var i = 1; i < (maxfloors + 1); i++)
							  {
								 newElem = document.createElement("option");
								 newElem.text = i;
								 newElem.value = i;
								 document.forms[0].numberFloors.add(newElem);
							  }
							}

							else if(MRL == "yes" && ser == "100R")
							{
							  maxfloors = 11;
							    	for (var i = 1; i < (maxfloors + 1); i++)
							  {
								 newElem = document.createElement("option");
								 newElem.text = i;
								 newElem.value = i;
								 document.forms[0].numberFloors.add(newElem);
							  }
							}
								else if(MRL == "yes" && ser == "100S")
							{
							  maxfloors = 11;
							    	for (var i = 1; i < (maxfloors + 1); i++)
							  {
								 newElem = document.createElement("option");
								 newElem.text = i;
								 newElem.value = i;
								 document.forms[0].numberFloors.add(newElem);
							  }
							}
							else if(MRL == "yes" && ser == "85S")
							{
								maxfloors = 9;
							    	for (var i = 1; i < (maxfloors + 1); i++)
							  {
								 newElem = document.createElement("option");
								 newElem.text = i;
								 newElem.value = i;
								 document.forms[0].numberFloors.add(newElem);
							  }
							}
							else
							{
								maxfloors = 64;
							    	for (var i = 1; i < (maxfloors + 1); i++)
							  {
								 newElem = document.createElement("option");
								 newElem.text = i;
								 newElem.value = i;
								 document.forms[0].numberFloors.add(newElem);
							  }
							}
						break;
					   case "Oildraulic":
					   		if (TempName == "AMEE G21")
							{
							    maxfloors = 2;
							   	for (var i = 1; i < (maxfloors + 1); i++)
								{
								newElem = document.createElement("option");
								newElem.text = i;
								newElem.value = i;
								document.forms[0].numberFloors.add(newElem);
								}
							}
							else if (TempName == "AMEE G25")
							{
								maxfloors = 2;
							   	for (var i = 1; i < (maxfloors + 1); i++)
								{
								newElem = document.createElement("option");
								newElem.text = i;
								newElem.value = i;
								document.forms[0].numberFloors.add(newElem);
								}							
								
							}
							else
							{
								maxfloors = 8;
							   	for (var i = 1; i < (maxfloors + 1); i++)
								{
								newElem = document.createElement("option");
								newElem.text = i;
								newElem.value = i;
								document.forms[0].numberFloors.add(newElem);
								}
							}
						break;
					}
			      
			
			
		}



function SetMaxTravel()
	{
		// Check to see if the application is a Cimmaron.  It is treated differently than the rest of the applications
		
		
	}





//----------------------------------------------------------End CSS show / hide layers -------------------------------------------------------------------
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  The following two functions are used to set the front and rear drop down menus based upon the total number
					  of landings entered.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	
	
	function SetRearOpening()
		{
			var TempEnt = parseInt(document.forms[0].numberFloors.value) ;
			var newElem;
			var TempName = document.Specfrm.elename.value;	
		    var MRL = document.Specfrm.MRL.value;							
			var GearType = document.Specfrm.AppType.value;
			
			document.forms[0].rearOpenings.options.length = 0;
			document.forms[0].numberOpenings.options.length = 0;
			newElem = document.createElement("option");
			newElem.text = "0";
			newElem.value = "0";
			
			document.forms[0].rearOpenings.add(newElem);
			  
			if (GearType == "Gearless" && MRL == "no")
				{
					document.forms[0].rearOpenings.options.length = 0;
					document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
					setthech();
				}
			else
				{
			
			
			switch(TempName)
							{
								case "AMEE 20C":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", "N/A", false, false);
									 setthech();
									break;
								case "synergy 85S 2100":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									 setthech();
									break;	
								case "AMEE 25C":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", "N/A", false, false);
									setthech();
									break;	
								case "synergy 100S 2100":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;	
								case "synergy 100R 2500":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;	
								case "synergy 100R 3000":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;	
								case "synergy 100R 3500":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;
								case "synergy 300R 2500":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;
								case "synergy 300R 3000":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;
								case "synergy 300R 3500":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;
								case "synergy 300R 4000":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;
								case "synergy 300E 2100":
									document.forms[0].rearOpenings.options.length = 0;
									document.forms[0].rearOpenings.options[0] = new Option("N/A", 0, false, false);
									setthech();
									break;
									
								default:
												for (var i = 1; i < (TempEnt + 1); i++)
													{
														newElem = document.createElement("option");
														newElem.text = i;
														newElem.value = i;
														document.forms[0].rearOpenings.add(newElem);
													}
									break;
								
							}
				}

			
			
		}
		
		function SetFrontOpening()
		{
			var TempEnt = parseInt(document.forms[0].numberFloors.value) ;
			var newElem;
			document.forms[0].numberOpenings.options.length = 0;
			newElem = document.createElement("option");
			newElem.text = "0";
			newElem.value = "0";
			document.forms[0].numberOpenings.add(newElem);
			
			for (var i = 1; i < (TempEnt + 1); i++)
				{
					newElem = document.createElement("option");
					newElem.text = i;
					newElem.value = i;
					document.forms[0].numberOpenings.add(newElem);
				}
			
			
		}	
	//----------------------------------------------------------End sent front / rear entrances -------------------------------------------------------------------

function SetCabType()
	{
		var TempCab = document.Specfrm.typecab.value;
				switch(TempCab){
						case "FlatSteel":
								showlayer('FlatSteel1');
								showlayer('FlatSteel2');
								hidelayer('AppliedPanels');
								hidelayer('GCAB');
								hidelayer('GCAB2');
						break;
						case "Applied":
								hidelayer('FlatSteel1');
								hidelayer('FlatSteel2');
								hidelayer('GCAB');
								hidelayer('GCAB2');
								showlayer('AppliedPanels');
						break;
						case "Laminate":
								hidelayer('FlatSteel1');
								hidelayer('FlatSteel2');
								hidelayer('GCAB');
								hidelayer('GCAB2');
								hidelayer('AppliedPanels');
						break;
						case "G Cab":
								hidelayer('FlatSteel1');
								hidelayer('FlatSteel2');
								hidelayer('AppliedPanels');
								showlayer('GCAB');
								showlayer('GCAB2');
						break;
				}
	}
		

/*function SetAppliedSub()
{
		var TempCab = document.forms[0].PnlApplied.value;
				switch(TempCab){
						case "Wood":
								showlayer('wood1');
								hidelayer('metal1');
								hidelayer('removepnl');
								document.forms[0].panelOrientation.options.length = 0;
						//		document.forms[0].panelOrientation.options[0] = new Option("Horizontal", "Horizontal", false, false);
							//	document.forms[0].panelOrientation.options[1] = new Option("Vertical", "Vertical", false, false);
								document.forms[0].panelOrientation.options[0] = new Option("Vertical / Horizontal", "Vertical / Horizontal", false, false);
					
						break;
						case "Metal":
							showlayer('removepnl');
								hidelayer('wood1');
								showlayer('metal1');
							
								document.forms[0].panelOrientation.options.length = 0;
								document.forms[0].panelOrientation.options[0] = new Option("Horizontal", "Horizontal", false, false);
								document.forms[0].panelOrientation.options[1] = new Option("Vertical", "Vertical", false, false);
								
						break;
						case "Laminate":
								showlayer('removepnl');
								hidelayer('wood1');
								hidelayer('metal1');
					
								document.forms[0].panelOrientation.options.length = 0;
								document.forms[0].panelOrientation.options[0] = new Option("Horizontal", "Horizontal", false, false);
								document.forms[0].panelOrientation.options[1] = new Option("Vertical", "Vertical", false, false);
						break;
				}
	}*/

function SetSwing()
	{
		var TempCab = document.forms[0].cabfront.value;
				switch(TempCab){
						case "swing":
								
								hidelayer('fullwrap');
						break;
						case "wraparound":
								hidelayer('fullwrap');
								
						break;
						case "fullwidth":
								showlayer('fullwrap');
						break;
				}
	}
	
	
	
	function SetTheCabHeight()
	{
		var TempCab = document.forms[0].DoorHeight.value;
				switch(TempCab){
						case "7":
								document.forms[0].CabHeightV.options.length = 0;
								document.forms[0].CabHeightV.options[0] = new Option("8' nominal", "8", true, false);
								document.forms[0].CabHeightV.options[1] = new Option("9' nominal", "9", false, false);
								document.forms[0].CabHeightV.options[2] = new Option("10' nominal", "10", false, false);
					
						break;
						case "8":
								document.forms[0].CabHeightV.options.length = 0;
								document.forms[0].CabHeightV.options[0] = new Option("9' nominal", "9", true, false);
								document.forms[0].CabHeightV.options[1] = new Option("10' nominal", "10", false, false);
						break;
						case "9":
								document.forms[0].CabHeightV.options.length = 0;
								document.forms[0].CabHeightV.options[0] = new Option("10' nominal", "10", true, false);
						break;
				}

	}

// ===================================GENERAL FUNCTIONS========================================
	
	
	
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  07/27/05
	Purpose:  Function to ensure a numeric number was entered into the appropriate fields.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	

	
	function isNumber(tempValue, whichOne,Whichtxt) 
	{
		floatValue = parseFloat(tempValue)
		if (isNaN(floatValue)) {
		 alert("_____________________________________________________\n"+
				  "                              Invalid Information Entered.                                           \n"+
				  "______________________________________________________\n"+
				  Whichtxt +" is invalid.  Please enter a numeric value in the box   ");
		   eval("document.Specfrm." + whichOne + ".value = '0';")
		   eval("document.Specfrm." + whichOne + ".focus();")
		}
	}
		
function CheckTheMaxTravel()
	{
		var MaxTemp = parseFloat(document.Specfrm.NetTravel.value);
		var MaxTravel = parseFloat(document.Specfrm.maxT.value);
		
			if (MaxTemp > MaxTravel)
				{
		alert(  "The travel you have entered exceeds the maximum for this application\n"+
				  "Please choose a different value for net travel or choose another application.");
		   eval("document.Specfrm.NetTravel.value = '12';")
		   			document.Specfrm.NetTravel.focus();
				}
		}
					


/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  08/01/05
	Purpose:  The purpose of these two functions is to allow the user to click the up and down arrows to increase and or
					  decrease the net travel.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	

					
	function up() {
  document.elevatorCalc.NetTravel.value=1*parseFloat(document.elevatorCalc.NetTravel.value)+.25
}

function down() {
if ( parseFloat(document.elevatorCalc.NetTravel.value)> 4.0)
  document.elevatorCalc.NetTravel.value=1*parseFloat(document.elevatorCalc.NetTravel.value)-1
}				






/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------
  	Author: Josh Bryant
	Date:  08/01/05
	Purpose: Sets the elevator capacity based on the type of application chosen.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/	
function adjustTheCapactiy()
	{
		var TempDrive = document.elevatorCalc2.DriveType.value;
		switch (TempDrive)
			{
				case "1":
								document.elevatorCalc2.Capacity.options.length = 0;
								document.elevatorCalc2.Capacity.options[0] = new Option("Choose One", "0", false, false);
                                document.elevatorCalc2.Capacity.options[1] = new Option("2000", "1", false, false);
								document.elevatorCalc2.Capacity.options[2] = new Option("2100", "2", false, false);
								document.elevatorCalc2.Capacity.options[3] = new Option("2500", "3", false, false);
								document.elevatorCalc2.Capacity.options[4] = new Option("3000", "4", false, false);
								document.elevatorCalc2.Capacity.options[5] = new Option("3500", "5", false, false);
						//		document.elevatorCalc2.Capacity.options[5] = new Option("4000", "6", false, false);
								document.elevatorCalc2.Capacity.options[6] = new Option("4500", "7", false, false);
								document.elevatorCalc2.Capacity.options[7] = new Option("5000", "8", false, false);
								break;
				case "2":
								document.elevatorCalc2.Capacity.options.length = 0;
                				document.elevatorCalc2.Capacity.options[0] = new Option("Choose One", "0", false, false);
							//	document.elevatorCalc2.Capacity.options[1] = new Option("2000", "1", false, false);
								document.elevatorCalc2.Capacity.options[1] = new Option("2100", "2", false, false);
								document.elevatorCalc2.Capacity.options[2] = new Option("2500", "3", false, false);
								document.elevatorCalc2.Capacity.options[3] = new Option("3000", "4", false, false);
								document.elevatorCalc2.Capacity.options[4] = new Option("3500", "5", false, false);
								//document.elevatorCalc2.Capacity.options[6] = new Option("4000", "6", false, false);
								document.elevatorCalc2.Capacity.options[5] = new Option("4500", "7", false, false);
								document.elevatorCalc2.Capacity.options[6] = new Option("5000", "8", false, false);
								break;
				case "3":
								document.elevatorCalc2.Capacity.options.length = 0;
								document.elevatorCalc2.Capacity.options[0] = new Option("Choose One", "0", false, false);
								document.elevatorCalc2.Capacity.options[1] = new Option("2100", "2", false, false);
								document.elevatorCalc2.Capacity.options[2] = new Option("2500", "3", false, false);
								document.elevatorCalc2.Capacity.options[3] = new Option("3000", "4", false, false);
								document.elevatorCalc2.Capacity.options[4] = new Option("3500", "5", false, false);
								document.elevatorCalc2.Capacity.options[5] = new Option("4000", "6", false, false);
								document.elevatorCalc2.Capacity.options[6] = new Option("4500", "7", false, false);
								document.elevatorCalc2.Capacity.options[7] = new Option("5000", "8", false, false);
								//document.elevatorCalc2.Capacity.options[8] = new Option("6000", "9", false, false);
								break;
				case "4":
								document.elevatorCalc2.Capacity.options.length = 0;
								document.elevatorCalc2.Capacity.options[0] = new Option("Choose One", "0", true, false);
								//document.elevatorCalc2.Capacity.options[1] = new Option("2100", "2", false, false);
								document.elevatorCalc2.Capacity.options[1] = new Option("2500", "3", false, false);
								document.elevatorCalc2.Capacity.options[2] = new Option("3000", "4", false, false);
								document.elevatorCalc2.Capacity.options[3] = new Option("3500", "5", false, false);
								document.elevatorCalc2.Capacity.options[4] = new Option("4000", "6", false, false);
								break;
								
				case "5":
								document.elevatorCalc2.Capacity.options.length = 0;
								document.elevatorCalc2.Capacity.options[0] = new Option("Choose One", "0", true, false);
								document.elevatorCalc2.Capacity.options[1] = new Option("2100", "2", false, false);
								document.elevatorCalc2.Capacity.options[2] = new Option("2500", "3", false, false);
								document.elevatorCalc2.Capacity.options[3] = new Option("3000", "4", false, false);
								document.elevatorCalc2.Capacity.options[4] = new Option("3500", "5", false, false);
								document.elevatorCalc2.Capacity.options[5] = new Option("4000", "6", false, false);
								document.elevatorCalc2.Capacity.options[6] = new Option("4500", "7", false, false);
								document.elevatorCalc2.Capacity.options[7] = new Option("5000", "8", false, false);
								break;
				default:
								document.elevatorCalc2.Capacity.options.length = 0;
			
								
			}

}
/* This function is used to swap out the top portion of the background based on
   the page the user has selected */
function SetPageInfo(TempPage)
{
   switch(TempPage)
   {
    case "ADpro":
      showlayer('ContentTop');
      showlayer('hallstation');
      hidelayer('ContentTopTKspec');
      hidelayer('ContentTopMasterSpec');
      break;
      
    case "TKEspec":
      showlayer('GenQuestions');
      showlayer('ContentTopTKspec');
      showlayer('hallstation');
      hidelayer('Heading1');
      hidelayer('ADQuestion'); 
      hidelayer('ContentTop');
      hidelayer('MASTERSPEC1');
      showlayer('Nxtbtn');
      thepageinfo.innerHTML = "ThyssenKrupp Elevator’s on-line tool for downloading specifications and drawings.  Please choose your application from the options below and click the next button";
      break;
      
    case "MasterSpec":
      showlayer('ContentTopMasterSpec');
      showlayer('MASTERSPEC2');
       showlayer('hallstation');
      hidelayer('Heading1');
      hidelayer('ADQuestion');
      hidelayer('MASTERSPEC1');
      hidelayer('ContentTop');
      hidelayer('ContentTopTKspec');
        thepageinfo.innerHTML = "ThyssenKrupp Elevator has Product MasterSpec for Oildraulic and Traction elevators.  Click the links below to download the 14210 Product MasterSpec."
     break;
     
    case "homepage":
      showlayer('ContentTop');
      hidelayer('MASTERSPEC2');
      showlayer('Heading1');
      showlayer('ADQuestion');
      showlayer('MASTERSPEC1');
      hidelayer('ContentTopTKspec');
      hidelayer('ContentTopMasterSpec');
      hidelayer('hallstation');
      hidelayer('GenQuestions');
      hidelayer('Nxtbtn');
     break;
     
   case "ShowElevatorList":
   showlayer('ContentTopTKspec');
    
   hidelayer('GenQuestions');
   hidelayer('ADQuestion');
   hidelayer('Heading1');
   hidelayer('MASTERSPEC1');
    hidelayer('MASTERSPEC2');
     hidelayer('ContentTop');
      thepageinfo.innerHTML = "The following elevator(s) match your specifications:"
  break;
  
  case "showspechead":
    showlayer('ContentTopTKspec');
    break;
  
 
    }
}

/* The purpose of this function is to write the correct information in the
  product details table (productshell.asp) based on the type of application
  the user chooses */
  
 function SetProductText()
   { 
    var TempProduct = document.prdfrm.etype.value;
    var TempJack = document.prdfrm.ejack.value;
    var tele = document.prdfrm.ejack.value;
    var ejtype = document.prdfrm.ejtype.value;
    
      switch(TempProduct)
        {
          case "Oildraulic":
          
              switch(TempJack)
                  {
                    case "holeless":
                        if(tele="yes")
                         { 
                            P1.innerHTML = "Holeless Telescopic";
                         }
                         else
                         {
                            P1.innerHTML = "Holeless";
                         } 
                        P2.innerHTML = "Jack type:";
                        break;
                    case "holed":
                        P1.innerHTML = "Holed";
                        P2.innerHTML ="Jack type:";
                        break;
                  }
          break;
          
          
          case "Traction":
          
                    if (ejtype = "gls"){
                        P1.innerHTML = "Gearless";
                        P2.innerHTML ="Jack type:";
                      
                     }
                     else
                     {
                        P1.innerHTML = "Geared";
                        P2.innerHTML ="Machine Type:";
                     }
                     
          break;
          
          
          
          
          
          
        }
    }  
	
	
	function setmachine()
		{
			var TempEtype = document.Specfrm.specid.value;
			var GearType = document.Specfrm.AppType.value;
			var MRL = document.Specfrm.MRL.value;
				
				if(MRL == "yes")
					{
						hidelayer("machineloc");
					}
				else
					{
						
						switch(TempEtype)
							{
									case "Oildraulic":
											hidelayer('machineloc');
											hidelayer('MonitorSystem');
											break;
									case "Traction":
								
												
												switch(GearType)
													{
														case "Gearless":
															document.Specfrm.MachineLocation.options.length = 0;
															document.Specfrm.MachineLocation.options[0] = new Option("Choose One", "0", false, false);
															document.Specfrm.MachineLocation.options[1] = new Option("Overhead - Structural Slab", "Overhead - Structural Slab", true, false);
															document.Specfrm.MachineLocation.options[2] = new Option("Overhead - Machine Beams by TKE", "Overhead - Machine Beams by TKE", false, false);
															break;
														case "Geared":
															document.Specfrm.MachineLocation.options.length = 0;
															document.Specfrm.MachineLocation.options[0] = new Option("Choose One", "0", false, false);
															document.Specfrm.MachineLocation.options[1] = new Option("Overhead - Structural Slab", "OverheadSlab", false, false);
															document.Specfrm.MachineLocation.options[2] = new Option("Overhead - Machine Beams by TKE", "OverheadBeams", false, false);
															document.Specfrm.MachineLocation.options[3] = new Option("Basement", "Basement", false, false);
															document.Specfrm.MachineLocation.options[4] = new Option("Adjacent to Hoistway", "Adjacent", false, false);
															break;
													}
							}
					}
		}
											
											
											
											
  function setthech()
  	{
  		var TempName = document.Specfrm.elename.value;	
		var MRL = document.Specfrm.MRL.value;							
				
				
				
					
						switch(TempName)
							{
								case "AMEE 20C":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("8'", "8", true, false);	
									break;
								case "AMEE 25C":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("8'", "8", true, false);	
									break;	
								case "synergy 85S 2100":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;	
								case "synergy 85S 2500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 85S 3000":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 85S 3500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 100R 2500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 100R 3000":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;	
								case "synergy 100R 3500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 100S 2100":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 100S 2500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 100S 3000":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 100S 3500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 300RS 2500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 300R 3000":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 300R 3500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 300R 4000":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 300S 2500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 300S 3000":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								case "synergy 300S 3500":
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
										document.Specfrm.CabHeightV.options.length = 0;
							document.Specfrm.CabHeightV.options[0] = new Option("7' - 10'' Standard", "7' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[1] = new Option("8' - 10''", "8' - 10''", true, false);	
							document.Specfrm.CabHeightV.options[2] = new Option("9' - 10''", "9' - 10''", true, false);	
									break;
								default:
									document.Specfrm.DoorHeight.options.length = 0;
									document.Specfrm.DoorHeight.options[0] = new Option("7'-0''", "7", false, false);
									document.Specfrm.DoorHeight.options[1] = new Option("8'-0''", "8", false, false);
									document.Specfrm.DoorHeight.options[2] = new Option("9'-0''", "9", false, false);
									break;
								
							}
					
				
	}
							
	
function UniformFinish()
{
	document.Specfrm.handrailFinishA.options[document.Specfrm.handrailFinishA.selectedIndex].value = document.Specfrm.fixtureFinish.options[document.Specfrm.fixtureFinish.selectedIndex].value
}
	
	
function Auxstation()
{
	var rear = document.Specfrm.rearOpenings.value;
	var dtype = document.Specfrm.DoorType.value;
	
	if (rear == "0") 
	{
		document.Specfrm.auxstation.options.length = 0;
		document.Specfrm.auxstation.options[0] = new Option("N/A", "no");
		
	}
	
	else
	{
		document.Specfrm.auxstation.options.length = 0;
		document.Specfrm.auxstation.options[0] = new Option("No", "no", true, false);
		document.Specfrm.auxstation.options[1] = new Option("Yes", "yes", false, false);
	}
}


function cabnote()
{		
	alert(  "Please note Architect Direct Pro provides standard layout drawings which include standard 7'0 door height and a cab height of 7'11 1/4. Extended door or cab height will require custom layouts.");
	
}

function micro()
{
	var whichone = document.Specfrm.thecarstation.value;
	
	if (whichone == "Vandal Resistant")
	{
		document.Specfrm.microban.options.length = 0;
		document.Specfrm.microban.options[0] = new Option("N/A", "no");
	}
	else
	{
		document.Specfrm.microban.options.length = 0;
		document.Specfrm.microban.options[1] = new Option("Yes", "yes", true, false);
		document.Specfrm.microban.options[0] = new Option("No", "no", true, false);
	}
}
	

