

// Login Intranet Script

function goIntra(){

	thisform = document.intranet_form;

	v = true;

	if (thisform.userloginid.value == ''){

		v = false;

		thisform.userloginid.focus();

	}



	if (v && thisform.input_password.value == ''){

		v = false;

		thisform.input_password.focus();

	}



	if (v) {

	    thisform.elements["password"].value = MD5(thisform.elements["input_password"].value);

		thisform.elements["input_password"].value = "";

		thisform.action="http://home.tswmc.edu.hk/it-school/php/login_do.php3";

		thisform.submit();

	}

}


