test = document.createElement('img');
test.setAttribute('src','https://app.secure.griffith.edu.au/00/gen4-portal/gen4-portal.php');
test.onload = showIfValid;
function showIfValid() {
	if (document.getElementById('globalnav')) {
		document.getElementById('globalnav').innerHTML = '<a href="http://www.griffith.edu.au/intranet/" target="_top">Griffith Portal</a> | <a href="https://portal.secure.griffith.edu.au/psp/GP90PD/GUINTRA/GP/?cmd=logout" target="_top">Log out</a>';
	}
}
