
function find_location (X,Y) {
	var URL = 'http://map.aypok.co.uk/index.php' + '?menu=block&x=' + X + '&y=' + Y;
	var theWindow = window.open(URL,'_tab');
	theWindow.focus();
	return theWindow;
}

function load_profile (ID) {
	var URL = 'http://www.urbandead.com/profile.cgi?id=' + ID;
	var theWindow = window.open(URL,'_tab');
	theWindow.focus();
	return theWindow;
}

function load_report (ID) {
	var URL = 'http://rg.urbandead.net/profiles/view/' + ID;
	var theWindow = window.open(URL,'_tab');
	theWindow.focus();
	return theWindow;
}

function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}
function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

function list_rp (X,Y) {
	var URL = 'revive.php?State=Search&Distance=0&X=' + X + '&Y=' + Y;
	var theWindow = window.open(URL,'_top');
	return theWindow;
}

function show_edit(id) {
	//alert(id);
	var editDiv = document.getElementById(id);
	//alert(editDiv);
	editDiv.style.display = 'block';
}

function cancel_edit(id) {
	//alert(id);
	var editDiv = document.getElementById(id);
	//alert(editDiv);
	editDiv.style.display = 'none';
}
