

//Open Community Login Pane
function community_open() {
	linkCtrl=document.getElementById("community");
	paneCtrl=document.getElementById("community_login");

	if(paneCtrl.style.display=="none") {
		linkCtrl.innerHTML="<a href='javascript:void(0);' onClick='community_open();' style='color:#214985;'><IMG src='/images/arrow2.gif' width=7 height=4 border=0 style='margin-right:3px;margin-top:7px;' align=top>community login</a>";
		paneCtrl.style.display="";

		if(document.getElementById("username").value.length>0) document.getElementById("password").focus();
		else document.getElementById("username").focus();
	} else {
		linkCtrl.innerHTML="<a href='javascript:void(0);' onClick='community_open();' style='color:#6D6D6D;'><IMG src='/images/arrow1.gif' width=4 height=7 border=0 style='margin-right:5px;margin-top:5px;' align=top>community login</a>";
		paneCtrl.style.display="none";
	}
}

//Submit login form on "Enter"
function login_form_submit() {
	if(event.keyCode==13) document.getElementById('login_form').submit();
}

