<!--

theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
theObjects[i].outerHTML = theObjects[i].outerHTML; 
}


function openWin(theURL,winName,features) {
  w=window.open(theURL,winName,features);
  w.focus();
}

if(top.location != location){
	top.location.href = document.location.href;
}

// User registration Help via popup.php

function openWinHelp(URL){
   open(URL,"_blank","left=150,top=150,width=640,height=480,scrollbars=yes,resizable=yes");
}

// Ajax utility

function createRequestObject()
{
	var ro;
	try{
		if(window.XMLHttpRequest){
			ro = new XMLHttpRequest()
		}else{
			ro = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	catch(er){
      alert('Ajax is not available for this browser');
	}
	return ro;
}

var http = createRequestObject();

function sndReq(action)
{
    http.open('GET', 'rpc.php?action=' + action + '&amp;rand=' + new Date() . getTime());
    http.onreadystatechange = handleResponse;
    http.send(null);
}

function handleResponse()
{
	if(http.readyState == 4){
		var response = http.responseText;
		var update = new Array();
		if(response.indexOf('|' != -1)){
			update = response.split('|');
			document.getElementById(update[0]).innerHTML = update[1];
		}
	}
}

function sndReqArg(action, arg)
{
	http.open('GET', 'rpc.php?action=' + action + '&arg=' + arg + '&amp;rand=' + new Date() . getTime());
	http.onreadystatechange = handleResponse;
	http.send(null);
}

//-->


