function submitenter(myfield,e) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	
	if (keycode == 13){
	   myfield.form.submit();
	   return false;
	} else {
	   return true;
	}
}

function focuslogin() {
	
	document.login.userid.focus();
}

function chkform() {
	
	if (window.document.login.terms.checked==false)
	{
			alert("Please tick \"Terms and Conditions\" before signing-in.");
			return false;
	}
	return true;
}

function termsopen()
{
	window.open("/guest/terms.html","terms","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1024,height=600,top=0");
}

function ictopen()
{
	window.open("/ict_cca.html","ict","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=820,height=600,top=0");
}

