function show_store(store_id){
	window.location="index.php?mod=store&stoseq="+store_id;
} // end function

// OnChange functions
// --------------------------------
function event_display(e_date) {
	xmlHttp=GetXmlHttpObject()
	var url="ajax_event.php?e_date="+e_date;
	xmlHttp.onreadystatechange=stateDisplayChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
} // end function

function store_category(store_category) {
	xmlHttp=GetXmlHttpObject()
	var url="ajax_store.php?store_category="+store_category;
   document.getElementById("storeOptionsDiv").innerHTML="<img src='gfx/loadingt.gif' />Please wait, loading.<input type='hidden' id='storecount' value='0' />";
	xmlHttp.onreadystatechange=stateDisplayChangedstore;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
} // end function

// OnChange functions
// --------------------------------
// --------------------------------
function stateDisplayChangedstore() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
		document.getElementById("storeOptionsDiv").innerHTML=xmlHttp.responseText
      document.getElementById('storeOptionsDiv').style.height = 'auto';
      if (document.getElementById('storecount').value > 14) {
         document.getElementById('storeOptionsDiv').style.height = '200px';
      }
	} // end if
} // end function

function stateDisplayChanged() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
		document.getElementById("disp").innerHTML=xmlHttp.responseText
	} // end if
} // end function
// --------------------------------

// AJAX CAPABILITY
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 pointer (element){
	element.style.cursor="pointer";
}