<!--
var gLg = 0;

function SYMBOL_CHECK(TheObjValue){//used with other inputs
  if (TheObjValue.match(/[\\\/:*?" <>|]/)) {//matches \/:*?"<>| and space)
	return 1;
  }
	return 0;
}
function checkEmailAddr(frm){
	if (frm.txtLogin.value == ""){
		alert("Please enter your e-mail address");
		frm.txtLogin.focus();
		return false;
	} 
	if (frm.txtLogin.value.search(/\S+@+\S+\.\S+/) == -1 || SYMBOL_CHECK(frm.txtLogin.value)){
		alert("Please enter valid e-mail address (no spaces and do not use characters /\\:*?\"<>|)");
		frm.txtLogin.select();
		frm.txtLogin.focus();
		return false;
	} 
	return true;
}
function Init(){
	var frm = document.Form1;
	frm.txtPwd.value = "";
	if (frm.txtLogin.value == "" || gLg == 0){
		frm.txtLogin.select();
		frm.txtLogin.focus();
	} else {
		frm.txtPwd.focus();
	}
}
function getPRemind(){
	var frm = document.Form1;
	if (checkEmailAddr(frm)){
		window.location.href = "ForgetPassword.aspx?em=" + frm.txtLogin.value;
	}
}
function checkSubmit(frm){
	if (frm.txtLogin.value == ""){
		alert("Please enter your e-mail address");
		frm.txtLogin.focus();
		return false;
	} 
	if (frm.txtLogin.value.search(/\S+@+\S+\.\S+/) == -1 || SYMBOL_CHECK(frm.txtLogin.value)){
		alert("Please enter valid e-mail address (no spaces and do not use characters /\\:*?\"<>|)");
		frm.txtLogin.select();
		frm.txtLogin.focus();
		return false;
	} 
	if (frm.txtPwd.value == ""){
		alert("Please enter your password");
		frm.txtPwd.focus();
		return false;
	}
	if (SYMBOL_CHECK(frm.txtPwd.value)){
		alert("Please enter valid password (do not use characters /\\:*?\"<>|, or any spaces)");
		frm.txtPwd.select();
		frm.txtPwd.focus();
		return false;
	}
	return true;
} 
//-->