function runSurvey(id, ans) {
    //alert("here is answer" + ans);
	var pth = '/shop/plazadelsol.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 = "r-imag1.jpg, r-img2.jpg, r-img3.jpg, r-img3.jpg, r-img4.jpg, r-img5.jpg";
images = imgStr.split(', ');
n = images.length-1
rdmImage = Math.floor(Math.random()*n) +1;
document.write('<img border=\"0\" src=\"' + images[rdmImage] + '\"width=\"250\" height=\"445\" class=\"top\">');
}
if (document.getElementById && document.getElementsByTagName && document.createTextNode) {
	document.write('<link rel="stylesheet" type="text/css" href="/shop/plazadelsol.nsf/js_hide.css" />');
	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.PlazaDelSolMall.com/search?query=" + s + "&linkid=miser";
return false;
}
return true;
}
function doSearch( s ) {
location.href="http://products.PlazaDelSolMall.com/search?query=" + s + "&linkid=miser";
}
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';
	}
}
//-->

