var docClickLoader = new RemoteFileLoader('docClickLoader');
var XHR = new xHttpRequest();

function testme()
{
	alert("test");
}

//setInterval("testme()", 10000);

/*function checkLoginResult(strXML)
{
	//alert(xFirstChild(strXML).nodeName);
	//if(xFirstChild(strXML).nodeName == "response") {
	if(xGetElementsByTagName("response",strXML)) {
		alert("reload");
		window.location.reload(true);
	}
} // 

var loginLoader = new RemoteFileLoader('loginLoader');
loginLoader.onload = checkLoginResult;
*/
// addEvent is defined within htmlhttprequest.js, feel free to reuse :).
addEvent(document, 'click', function(evt)
{
 // Here we capture all clicks on the document, scanning for links with a CLASS
 // attribute of "loadinto-IdOfTarget" and routing them to loadInto() above.
 evt = evt || window.event;
 // Only process left clicks.
 if (evt.which > 1 || evt.button > 1) return;
 var src = evt.target || evt.srcElement;
 if (src.nodeType && src.nodeType != 1) src = src.parentNode;
 // Loop up the DOM tree scanning all elements to find a matching one.
 while (src)
 {
  var srcName = (src.nodeName||src.tagName||'').toLowerCase();
  if (srcName == 'a' && src.className && src.className.match(/^(load|toggle)into-(.+)$/))
  {
   // Call our load handlers if we have a match; they'll cancel the normal action.
   if (RegExp.$1 == 'load') return loadInto(src, RegExp.$2, evt);
   if (RegExp.$1 == 'toggle') return toggleInto(src, RegExp.$2, evt);
  }
  src = src.parentNode;
 }
}, 1);



