function goToMovie(selected) { if (selected != 'NONE') window.open(selected, '', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1'); } function getHTTPRequest() { var xmlhttp = false; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } return xmlhttp; } function showDisplayDeviceControl() { var manufacturer = document.selectDevice.make.value; var xmlhttp = getHTTPRequest(); xmlhttp.open("GET","interactive-tutorials.do?manufacturerSel="+manufacturer); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { var deviceDisplayDiv = document.getElementById("deviceDisplayDiv"); deviceDisplayDiv.innerHTML = xmlhttp.responseText; // if the session expired, the AJAX div will try to load the expired session page. Test and redirect if so if (document.getElementById("expiredSession")) { window.location.href = "http://www.wireless.att.com/cell-phone-service/get-started/expired-session.jsp"; } else { deviceDisplayDiv.style.display = "inline"; } } } xmlhttp.send(null); }