function externalLinks() {  
// from http://articles.sitepoint.com/article/standards-compliant-world/3
// look for anchors with href and rel="external", and add target="_blank" to them so that they open in a new window
	if (!document.getElementsByTagName) return;  
	var anchors = document.getElementsByTagName("a");  
	for (var i=0; i<anchors.length; i++) {  
		var anchor = anchors[i];  
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
		}  
	}

function checkForm_login(theform) {
	if(theform.username.value==''){
		alert("Please enter your username");
		theform.username.focus();
		return false;
		}
	if(theform.password.value==''){
		alert("Please enter your password");
		theform.password.focus();
		return false;
		}
	}

function checkForm_login2(theform) {
	if(theform.login_username.value==''){
		alert("Please enter your username");
		theform.login_username.focus();
		return false;
		}
	if(theform.login_password.value==''){
		alert("Please enter your password");
		theform.login_password.focus();
		return false;
		}
	}

