if (window.x9h) { 
	window.x9h[29]=8;
	window.x9href[29]="http://www.57trafalgar.scouting.org.za/Site%20Scripts/user.js";
}
// JavaScript Document

function get_username() {
	if (document.cookie.match(/-x9un-(\w+)/)) {
		var obj = document.getElementById('t57ruo');
		if (obj) {
			obj.style.display = "block";
		}
		return RegExp.$1 + "<br /><a href='/' onclick='document.cookie=\"x9session=none\";document.location.replace(\"/\");return false'><img src='/IMAGES/Site/but-logout.jpg' alt='Logout' border=0 style='margin-top: 6px' /></a>";
	} else {
		return '<form action="/Login/login.cgi" method="post" name="form1" id="form1"> <p> <label>User Name <input type="text" name="reg_username" id="reg_username" /> </label> Password <label> <input type="password" name="reg_password" id="reg_password" /> </label> </p> <p> <label> <input type="image" name="Submit" id="Submit" value="Submit" src="/IMAGES/Site/but-submit.jpg"> </label> </p> </form>';
	}
}

document.write(get_username());
