function calculateCarpet() { var type = window.document.estimate.carpet.options[window.document.estimate.carpet.selectedIndex].price var ft = document.estimate.sqft_carpet.value var added = ft * type ; var total = Math.round(added*100)/100 ; //window.alert(ft) //window.alert(type) //window.alert(added) //window.alert(total) document.estimate.cost_carpet.value = total } function calculateDrapery() { var type = document.estimate.drapery.options[document.estimate.drapery.selectedIndex].price var ft = document.estimate.sqft_drapery.value var added = ft * type ; var total = Math.round(added*100)/100 ; document.estimate.cost_drapery.value = total } function calculateUph() { var type = document.estimate.upholstery.options[document.estimate.upholstery.selectedIndex].price var ft = document.estimate.sqft_uph.value var added = ft * type ; var total = Math.round(added*100)/100 ; document.estimate.cost_uph.value = total } function calculatetotal() { calculateUph() calculateDrapery() calculateCarpet() var c = document.estimate.cost_carpet.value * 1 var d = document.estimate.cost_drapery.value * 1 var u = document.estimate.cost_uph.value * 1 var added = c+d+u; var total = Math.round(added*100)/100 ; document.estimate.total.value = total } function showDetails(num) { if (num == 'carpet') whatfor = document.estimate.carpet.options[document.estimate.carpet.selectedIndex].value ; if (num == 'drapery') whatfor = document.estimate.drapery.options[document.estimate.drapery.selectedIndex].value ; if (num == 'upholstery') whatfor = document.estimate.upholstery.options[document.estimate.upholstery.selectedIndex].value ; var detail = new Array() ; detail[0] = "CARPET CLEANING: Bonnet\r\rThe least aggressive cleaning method and is used in light soiling conditions. Sometimes called 'dry' cleaning because only a small amount of liquid cleaning agent is used in the process. Bonnet cleaned carpets are dry within 30 minutes to an hour." detail[1] = "CARPET CLEANING: Shampoo\r\rMore aggressive maintenance cleaning method. Shampoo is recommended for light to moderate soiling conditions. Most effective on low cut pile carpets." detail[2] = "CARPET CLEANING: Hot Water Extraction\r\rA cleaning solution is heated and pumped through a hose to a carpet cleaning wand or a rotary extraction tool, then extracted back along with loosened soils. Considered to be an effective method for light to moderate soiling." detail[3] = "CARPET CLEANING: Deluxe Preconditioner and Rinse\r\rAn emulsifier is sprayed onto the carpet and allowed dwell time before extraction - providing more thorough emulsion of soils. The carpet is rinsed with plain water or a slightly acidic solution to remove soils and residues more thoroughly and leave the carpet cleaner." detail[4] = "CARPET CLEANING: Rotary Jet Extraction\r\rSame as the deluxe preconditioner and rinse process except a rotary tool is used instead of a carpet wand. Improves cleaning and makes this process effective in heavy soiling conditions. Rotary jet extraction is faster than using a carpet wand." detail[5] = "CARPET CLEANING: Showcase\r\rThe most effective cleaning process in the carpet cleaning industry. Effective in the heaviest of soil conditions. A two-step process: shampoo and rinse the carpet with an extractor and a clean water rinse. Safe for all generations of carpet." detail[6] = "DRAPERY CLEANING: Machine Dry Cleaning\r\rThe most common on-site drapery cleaning method. Used for dry cleanable fabrics with light soiling. Draperies are cleaned while they are still mounted on the rod and left in place after cleaning. " detail[7] = "DRAPERY CLEANING: Hot Water Extraction\r\rUsed on wet, cleanable draperies with light to moderate soiling. Hot Water Extraction is much more common in commercial situations than in residential jobs. " detail[8] = "UPHOLSTERY CLEANING: Shampoo\r\rUsed on delicate fibers or wet cleanable fabrics with light soiling. " detail[9] = "UPHOLSTERY CLEANING: Hot Water Extraction\r\rUsed on wet cleanable fabrics that are moderately soiled. An upholstery cleaning machine, portable extractor or truck mount may be used for this method. Quickly flushes out soils and removes more soils from fabrics than shampooing." detail[10] = "UPHOLSTERY CLEANING: Showcase\r\rThe most aggressive upholstery cleaning process available. Showcase is the appropriate method for heavily soiled wet cleanable fabrics. A two-step process: shampooing and extracting the solution with an extractor, truck mount or upholstery machine." detail[11] = "UPHOLSTERY CLEANING: Machine Dry Clean\r\rThe most effective dry cleaning method. More agitation may be applied and emulsified soils are rinsed and vacuumed from the fabric. " detail[12] = "UPHOLSTERY CLEANING: Hand Dry Clean\r\rClean by hand instead of the upholstery cleaning machine. Used for fabrics not wet cleanable which are very delicate and could be damaged by an upholstery machine. This method is effective on light soiling conditions only. " detail[13] = "UPHOLSTERY CLEANING: Dry-Wet-Dry\r\rA combination of wet and dry cleaning. This method is used on fabrics that should not be cleaned with water-based cleaning agents, but the soil on the fabric will not dissolve with solvent cleaners. " window.alert(detail[whatfor]) }