function showHide(targetName) {
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
		hideall();
		} else {
		  // IE6, older browsers
		  hideall();
		try {
			if (document.getElementById('tech')) {
				document.getElementById('tech').style.height = 0;
			}
		} catch (err) {}
		
		try {
			if (document.getElementById('acc')) {
				document.getElementById('acc').style.height = 0;
			}
		} catch (err) {}
		
		try {
			if (document.getElementById('supp')) {
				document.getElementById('supp').style.height = 0;
			}
		} catch (err) {}
		
		try {
			if (document.getElementById('quo')) {
				document.getElementById('quo').style.height = 0;
			}
		} catch (err) {}	  
	}
	document.getElementById(targetName).style.visibility = 'visible';
}

function hideall() {
	try {
		if (document.getElementById('tech')) {
			document.getElementById('tech').style.visibility = 'hidden';
		}
	} catch (err) {}
	
	try {
		if (document.getElementById('acc')) {
			document.getElementById('acc').style.visibility = 'hidden';
		}
	} catch (err) {}

	try {
		if (document.getElementById('supp')) {
			document.getElementById('supp').style.visibility = 'hidden';
		}
	} catch (err) {}
	
	try {
		if (document.getElementById('quo')) {
			document.getElementById('quo').style.visibility = 'hidden';
		}
	} catch (err) {}	
}


function showtech() {
	hideall();
	try {
		if (document.getElementById('tech')) {
			document.getElementById('tech').style.visibility = 'visible';
		}
	} catch (err) {}
}



function filtertype(thetype){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "&thetime="+new Date().getTime();
	liveSearchReq.open("GET","finder.html?type="+thetype+thetime,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("compared");
		res.innerHTML = liveSearchReq.responseText;
	}
}

function filterspeed(themin,themax){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "&thetime="+new Date().getTime();
	liveSearchReq.open("GET","speed_finder.html?themin="+themin+"&themax="+themax+thetime,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("compared");
		res.innerHTML = liveSearchReq.responseText;
	}
}

function showthetechspec(theid) {
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "&thetime="+new Date().getTime();
	liveSearchReq.open("GET","getspec.html?id="+theid+thetime,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("tech");
		res.innerHTML = liveSearchReq.responseText;
	}
}

function MM_openBrWindow(theURL,winName,features) { file://v2.0
  window.open(theURL,winName,features);
}


function gotoquote(thestring) {
		document.location.href='quote.html/prod/'+thestring;
}