<!--

// slide show popup: /public_html/ss.php

function popupSlideShow(url) {
  window.open(url,'popupSlideShow','width=640,height=600,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes')
}

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");
}

// FAQ page id 41; expands answers; see also /style/faq.js.css (#item0, #item1, ...)
var current_item = "item0";
function show_item(item_name)
{
	document.getElementById(current_item).style.display = "none";
	document.getElementById(item_name).style.display = "block";
	current_item = item_name;
}


// Ajax round 1, infrequently used, see KruseAjaxRequestCompact.js

function createRequestObject()
{
	var ro;
	try{
	    if(window.XMLHttpRequest){
	        ro = new XMLHttpRequest();
	    } else if (window.ActiveXObject){
	        ro = new ActiveXObject("Msxml2.XMLHTTP");
	        if (!ro){
	            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 + '&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 + '&rand=' + new Date() . getTime());
	http.onreadystatechange = handleResponse;
	http.send(null);
}



//-->


