<!--

function enableall(){


	if($("state").value){
		$("vertical").disabled="";
		$("brands").disabled="";
		$("interior_colors").disabled="";
		$("exterior_colors").disabled="";
		$("app").disabled="";
		$("styles").disabled="";
		$("width").disabled="";
		$("width_inch").disabled="";
		$("height").disabled="";
		$("height_inch").disabled="";
		$("callouts").disabled="";
/*		$("price1").disabled="";	
		$("price2").disabled="";	
		$("quality").disabled="";	
		MM_nbGroup('down','group1','windows1','images/windows_3.jpg',1);
*/		set_product_tab();		
	}else{
		$("vertical").disabled="disabled";
		$("brands").disabled="disabled";
		$("interior_colors").disabled="disabled";
		$("exterior_colors").disabled="disabled";
		$("app").disabled="disabled";
		$("styles").disabled="disabled";
		$("width").disabled="disabled";
		$("width_inch").disabled="disabled";
		$("height").disabled="disabled";
		$("height_inch").disabled="disabled";
		$("callouts").disabled="disabled";
/*		$("price1").disabled="disabled";	
		$("price2").disabled="disabled";	
		$("quality").disabled="disabled";	
*/		
	}
	//MM_nbGroup('down','group1','all1','images/all_3.jpg',1);
	var index = $("state").selectedIndex;
	var label = $("state")[index].text;
	$("state_label").innerHTML = "State :<strong> "+label+"</strong>";
	$("state").style.display = "none";
	$("state_label").style.display="";
	//get_price_list();
	get_data();
}

/*function set_brand_tab(){
	val = $('brands').value;
	if(val == 0)
		MM_nbGroup('down','group1','all1','images/all_3.jpg',1);
	else if(val == 2)
		MM_nbGroup('down','group1','crystal1','images/crystal_3.jpg',1);
	else if(val == 4)
		MM_nbGroup('down','group1','simonton1','images/simonton_3.jpg',1);
	else if(val == 6)
		MM_nbGroup('down','group1','lang1','images/lang_3.jpg',1);
		
}*/
function set_brand_tab(id){//alert("h");
	if(id == 0){
		val = 0;
	}else{
		val = $('brands').value;	
	}
	temp = 0;
	for(iloop = 0; iloop < 25; iloop++){
		if($(iloop+"_middle") != null){
			if(iloop == val){
				$(iloop+"_middle").style.color = "#CC0000";
				temp = 1;
			}else{
				$(iloop+"_middle").style.color = "#323641";
			}
		}
	}
	if(temp == 1){
		$("all_middle").style.color = "#323641";
	}else{
		$("all_middle").style.color = "#CC0000";
	}
}
/*function set_product_tab(){
	val = $('vertical').value;
	if(val == 1)
		MM_nbGroup('down','group1','windows1','images/windows_3.jpg',1);
	else if(val == 3)
		MM_nbGroup('down','group1','doors1','images/doors_3.jpg',1);
	else if(val == 7)
		MM_nbGroup('down','group1','skylights1','images/skylights_3.jpg',1);
	else if(val == 6)
		MM_nbGroup('down','group1','cabinets1','images/cabinets_3.jpg',1);
	else if(val == 5)
		MM_nbGroup('down','group1','flooring1','images/flooring_3.jpg',1);
}
*/
function set_product_tab(){
	//$('brands').value = 0;
	val = $('vertical').value;//alert(val);
	for(iloop = 0; iloop < 15; iloop++){
		if($(iloop+"_top") != null){
			if(iloop == val){
				$(iloop+"_top").style.color = "#CC0000";
			}else{
				$(iloop+"_top").style.color = "#323641";
			}
		}
	}
}

var myclose = false;
function closeIt()
{
//alert("Hi");
	if((window.event.clientX<0) || (window.event.clientY<0))
	{//alert(document.getElementById('checkout'));
		if($('checkout') != null){
			if($('checkout').value == "Checkout"){
				if(event.returnValue = "We Can offer You 5% discount right now if You placed an order right now\n \nDiscount is taken on order confirmation on next page\n\n use the CANCEL button for shopping right now \n\nYou can get the same discount if you called our office at 8665899367 and complete the purchase\n\nIf you do not want discount and want to leave the page than press OK")	
				{
		
					setTimeout('myclose=false',100);
					myclose=true;
					$('discount_offered').value=myclose;
				}
			}
		}
		
		//alert(myclose);
		
		//alert(el.value);

	}
		
}

-->