// JavaScript Documentfunction createXMLHttpRequest(){	try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}  	try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}   	try { return new XMLHttpRequest(); } catch(e) {}   	alert("PASCO's Doc Center does not support document e-mail using your browser.");   	return null;	}function getDetail( divID, activity, manual, type, science, setuptype ) {  	document.body.style.cursor = "progress";	var xmlHttp = createXMLHttpRequest();  	xmlHttp.onreadystatechange = function() {		 				if (activity == 'none') {								document.getElementById( divID ).innerHTML = "";			document.getElementById( divID ).style.lineHeight = "1px"; // needed or "gap" in IE when div closes							} else {			document.getElementById( divID ).innerHTML = "Loading...";			 	 		if(xmlHttp.readyState == 4) {					if(xmlHttp.status == 200) {										// thought was needed for <a> tags, but works without:					/*					//reset to get rid of "Loading ..." text					document.getElementById( divID ).innerHTML = "";									// craete wrapper div, or <a> tags won't work. Assign responseText to wrapper div					var wrapperDiv = document.createElement('div');					wrapperDiv.innerHTML = xmlHttp.responseText;										wrapperDiv.id = "wrapper"; // to identify in Firefox "DOM Inspector" Tool					wrapperDiv.style.margin = "50px"; // works in IE & Firefox					wrapperDiv.style.backgroundColor = "#CC0000";									// add everything to divID div below					document.getElementById( divID ).appendChild(wrapperDiv);					*/															document.getElementById( divID ).innerHTML = xmlHttp.responseText;										document.body.style.cursor = "auto";    			}  	 		}		}	}xmlHttp.open("GET", "/resources/labdownloads/labs_detail.cfm?manual="+manual+"&activity="+activity+"&divID="+divID+"&type="+type+"&science="+science+"&setuptype="+setuptype, true);document.body.style.cursor = "auto";xmlHttp.send(null);}/* function createXMLHttpRequest(){            try { return new XMLHttpRequest(); }            catch(e)             {                         try { return new ActiveXObject("Msxml2.XMLHTTP.5.0"); }                         catch (e)                         {                                     try { return new ActiveXObject("Msxml2.XMLHTTP.4.0"); }                                    catch (e)                                    {                                                 try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }                                                catch (e)                                                {                                                            try { return new ActiveXObject("Msxml2.XMLHTTP"); }                                                            catch (e)                                                            {                                                                         try { return new ActiveXObject("Microsoft.XMLHTTP"); }                                                                         catch (e) { alert("XMLHttpRequest object not supported."); }                                                            }                                                }                                    }                        }            }             return null;            } */
