function runSurvey(id, ans) { //alert("here is answer" + ans); var pth = '/shop/chapelhill.nsf/ProcessSurvey?OpenAgent&ID='+ id + '&SurveyAnswer=' + ans; var w = 300; var h = 300; var winl = (screen.width-w)/2; var wint = (screen.height-h)/2; var scroll = 'no'; var settings='width='+w+',height='+h+',scrollbars=' + scroll + ',top='+wint+',left='+winl+',dependent=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes' // var win = window.open(pth, 'Survey', settings); // if(typeof win == 'object') win.focus(); } function showimage() { var images = new Array; var imgStr = "Error"; images = imgStr.split(', '); n = images.length-1 rdmImage = Math.floor(Math.random()*n) +1; document.write(''); } if (document.getElementById && document.getElementsByTagName && document.createTextNode) { document.write(' '); window.onload = initShowHide; } //onkeypress="return trapEnter(event);"> function ckReturn(evt,s) { evt = (evt) ? evt : event; var charCode = (evt.which) ? evt.which : evt.keyCode //alert("Charcode is " + charCode); if (charCode == 13) { location.href="http://products.ChapelHillMall.com/search?query=" + s + "&linkid=akser"; return false; } return true; } function doSearch( s ) { location.href="http://products.ChapelHillMall.com/search?query=" + s + "&linkid=akser"; } function initShowHide() { hide(); var toggle = document.getElementById('storenav'); var as = toggle.getElementsByTagName('a'); for (var i = 0; i < as.length; i++) { as[i].onclick = function() { show(this); return false; } } document.getElementById('stores').style.display='block'; document.getElementById('a-b').style.display='block'; } function show(s) { hide(); var id = s.href.match(/#(\w.+)/)[1]; document.getElementById(id).style.display = 'block'; var oldCurrent = document.getElementById('current'); // If this element exists, remove its ID attribute if (oldCurrent) oldCurrent.removeAttribute('id'); // Add the ID attribute with value 'current' to the newly active tab header (LI element) s.parentNode.setAttribute('id', 'current'); } function hide() { var toggleable = document.getElementById('stores').getElementsByTagName('div'); for (var i = 0; i < toggleable.length; i++) { toggleable[i].style.display = 'none'; } } //-->