function runSurvey(id, ans) { //alert("here is answer" + ans); var pth = '/shop/pemberton2.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 = "/shop/webimages.nsf/ImagesLeasing/1E52E14957A50A4A852573F4005A74BA/$File/womanWithHat.jpg, /shop/webimages.nsf/ImagesLeasing/62BC20D5D4F13C8C852573F4005A5841/$File/dadWithGirl.jpg, /shop/webimages.nsf/ImagesLeasing/8C6D980F92DF84D9852573F4005A6B1A/$File/withEarbuds.jpg, /shop/webimages.nsf/ImagesLeasing/9BF3A1EAE7F273B5852573F4005A5FF5/$File/eatingPizza.jpg, /shop/webimages.nsf/ImagesLeasing/BD4CCB957F5FD17D852573F4005A6FE5/$File/womanWithDog.jpg, /shop/webimages.nsf/ImagesLeasing/EAE079C4FEF1651F852573F4005A65AF/$File/momWithBoy.jpg"; 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.PembertonSquareMall.com/search?query=" + s + "&linkid=psser"; return false; } return true; } function doSearch( s ) { location.href="http://products.PembertonSquareMall.com/search?query=" + s + "&linkid=psser"; } 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'; } } //-->