
function validateLogin(formId) {

	var alertVar = '';
	if (document.getElementById('loginid').value == '')
		alertVar += 'Login ID cannot be empty.\n';
	if (document.getElementById('password').value == '')
		alertVar += 'Password cannot be empty.\n';
	if (alertVar == '') {
		//return true;
// 		document.forms[0].method = 'POST';
// 		document.enterprofile.password.value = createRandomPass(document.enterprofile.email.value,document.enterprofile.loginid.value);
 		document.getElementById('loginForm').submit();
	} else {
		alert(alertVar);
		//return false;
	}
}