
function Login(frm){
	var sw = true;
	document.getElementById("tdAccEmail").style.border = "";
	document.getElementById("divMsgAccEmailR").style.display = "none";
	document.getElementById("tdAccPwd").style.border = "";
	document.getElementById("divMsgAccPasswordR").style.display = "none";
//	if (!isEmail(frm.txtUser.value)){
	if (frm.txtUser.value.Trim() == ""){
		sw = false;
//		document.getElementById("tdAccEmail").style.border = "solid 2px #ff0000";
		document.getElementById("divMsgAccEmailR").style.display = "";
	}
	if (frm.txtPassword.value.Trim() == ""){
		sw = false;
//		document.getElementById("tdAccPwd").style.border = "solid 2px #ff0000";
		document.getElementById("divMsgAccPasswordR").style.display = "";
	}
	if (sw){
		frm.submit();
	}
}


/////////to delete:
function ValidateAccount(frm){
	var xMsg="";
//	if (!isEmail(frm.Email.value.Trim())) xMsg += "\n\t- Email Address (invalid)";
//	if (frm.CRCCode.value.length != 20) xMsg += "\n\t- 20-digits Secret Code (invalid)";
	if (xMsg == ""){
		frm.tg.value = "VALIDATEACCOUNT";
		frm.submit();
	}else{
		alert("To continue please fill correctly the following fields:\n" + xMsg);
	}
}

function SendSuscribe(){
	var iEmail = document.frmSuscribe.txtEmail.value;
	if (iEmail == ""){
		alert("Please fill e-mail");
		document.frmSuscribe.txtEmail.focus();
	}else{
		if (isEmail(iEmail)){
			document.frmSuscribe.submit();
		}else{
			alert("Please enter valid e-mail");
			document.frmSuscribe.txtEmail.focus();
		}
	}
}

function ReSendValidateCode(iCode){
  window.open("/WebInclude/ResendValidation.asp?UID=" + iCode, "RESEND","menubar=0,resizable=0,scroll=0,top=180,left=300,width=450,height=150");
}
