<!--

	window.onload = fix_redirect;

	function fix_redirect () {

		if (typeof document.getElementById('redirect') == "undefined") return false;

		e = document.getElementById('redirect');

		if (e.value.indexOf('//') > 0) return false;

		ne = location.protocol + '//' + location.hostname;

		if (e.value.substr(0, 1) != '/')  {

			l = location.pathname;

			ls = l.split('/');

			if (ls[ls.length] != '') {

				ls.pop();

				l = ls.join('/') + '/';

			}

			ne += l; 

		}

		e.value = ne + e.value;

		if (typeof onloader != 'undefined') onloader();

	}

// -->