<!--/*--><![CDATA[//><!--
var xh;
function getNewXMLHTTP() {  try {
    return new XMLHttpRequest();
  } catch(e) {	    try {
      var xh = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
      try {
        var xh = new ActiveXObject("Microsoft.XMLHTTP");
      } catch(e) {
        return false;
      }
    }
  }
  return xh;}
function loadAsyncDatas(action, file, id, func) {  try {
    xh = getNewXMLHTTP();
    xh.onreadystatechange = function() {
			// only if xh "loaded"
			if (xh.readyState == 0) {
			// uninitialized
			}
			if (xh.readyState == 1) {
			// loading
			document.getElementById(id).innerHTML = '<img src="http://www.officialskateshop.com/design/official/img/loading.gif" alt="loading" />';
			}
			if (xh.readyState == 2) {
			// loaded
			}
			if (xh.readyState == 3) {
			// interactive
			}			if (xh.readyState == 4) {			// complete
				if (xh.status == 200) {
					var response = xh.responseText;					document.getElementById(id).innerHTML = response;
					if (func) {
						evalfunc = eval(func);
						evalfunc();
					}
					return true;				} else {					document.getElementById(id).innerHTML = "There was a problem retrieving the XML data:\n"+xh.statusText;
					return false;				}			}		}		xh.open("GET", file+".php?"+action, true);		xh.send(null);
  } catch(e) {
    this.location.href = this.location.pathname+"?"+action;  }}
//--><!]]>