
suitClass.prototype.redirect = function() { // version 1.1
	var i, arrArgs, arrVals;
	arrArgs = suit.redirect.arguments;

	for (i=0; i<arrArgs.length; i++) {
		arrVals = arrArgs[i].split(",");

			// checking for valid values
		if (arrVals[1] == "replace") {
			arrVals[1] = "document";
			arrVals[2] = "replace";
		}
		if (!arrVals[1]) arrVals[1] = "document";

			// here's the redirect
		if (!arrVals[2] || arrVals[2] != "replace") {
			eval(arrVals[1] + ".location='" + arrVals[0] + "'");
		} else {
			eval(arrVals[1] + ".location.replace('" + arrVals[0] + "')");
		}
	}
}

// This script would be better if it could find a frame for you without the DOM path.
// suit.getObjectbject isn't doing this for me yet :(
