function gotoPage(wotPage) {
	// Go to a web page
	document.location.href=wotPage;
}

// STRING FUNCTIONS

function cleanString(origString) {
	// replace { with [ and } with ]
	newString = origString;
	newString = newString.replace(/}/g, "]");
	newString = newString.replace(/{/g, '[');
	return(newString);
}

function fixString(origString) {
	// replace |T| with ', and |Q| with ", and { with [ and } with ]
	newString = origString;
	newString = newString.replace(/\|T\|/g, "'");
	newString = newString.replace(/\|Q\|/g, '"');
	newString = newString.replace(/\|N\|/g, '\n');
	return(newString);
}

function fixStringHTML(origString) {
	// replace |T| with ', and |Q| with ", and { with [ and } with ]
	newString = origString;
	newString = newString.replace(/\|T\|/g, "'");
	newString = newString.replace(/\|Q\|/g, '"');
	newString = newString.replace(/\|N\|/g, '<BR>');
	return(newString);
}

function fixSdp(origString) {
	// Fix up any illegal SPD's returned by OCCA
	newString = origString;
	newString = newString.replace(/,\}/g, "}");
	return(newString);
}