/*  (C) GlobalVision Solutions  */

function redirect(location) {
	if (window.opener == null) {
		window.location.href = location;
	} else {
		window.opener.location.href = location;
		window.close();
	}
}

function redirectClose(location) {
	if (window.opener == null) {
		window.location.href = location;
	} else {
		if (window.opener.location.href != location) {
			window.opener.location.href = location;
		}
		window.close();
	}
}

function drawClose(str) {
	if (window.opener == null) {
		document.write(str);
	} else {
		document.write(strCloseWindow);
	}
}

