function ajaxpack(pack) { if (pack.length==0) { return; } xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="insertpacksum.asp"; url=url+"?pack="+pack; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=function() { if (xmlHttp.readyState==4) { document.getElementById("summary").innerHTML=xmlHttp.responseText; } } xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { alert("here"); if (xmlHttp.readyState==4) { document.getElementById("summary").innerHTML=xmlHttp.responseText; } } function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function pdf_switch(pdfname) { document.getElementById('pdf_sum').href="pdf/" + pdfname + ".pdf"; alert(document.getElementById('pdf_sum').href); } function closer(pack) { //alert(pack); document.getElementById('Exhibitor').style.display="none"; document.getElementById('Silver').style.display="none"; document.getElementById('Gold').style.display="none"; document.getElementById('Platinum').style.display="none"; document.getElementById('LeadCategory').style.display="none"; document.getElementById('Lead').style.display="none"; document.getElementById(pack).style.display="block"; }