function getUrlVar(setVar) {
	var vars = [], hash;
	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	for(var i = 0; i < hashes.length; i++)    {
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
		}
	return vars[setVar];
	}

function NewWin(location, name,w, h, scr) {
	window.open(location, name, 'width='+w+', height='+h+', scrollbars='+scr+', top='+((screen.height / 4)-(h / 2))+', left='+((screen.width / 4) - (w / 2)));
	}
	
function getAjax(url,target) {
	var xmlHttp;
	try {  // Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();  }
		catch (e) {  // Internet Explorer 
			try {
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {
				alert("Your browser does not support AJAX!");
				return false;
				}
			}
		}

	xmlHttp.onreadystatechange=function() {
		if (xmlHttp.readyState == 4) {
			if (document.getElementById(target)) document.getElementById(target).innerHTML = xmlHttp.responseText;
			}
		}
	if (document.getElementById(target)) {
		xmlHttp.open("POST",url,true);
		} else {
		xmlHttp.open("POST",url,false);
		}
	xmlHttp.send(null); 
	if (!document.getElementById(target)) return xmlHttp.responseText;
	}
