﻿function showlogin() {
    document.getElementById("login").style.display = document.getElementById("login").style.display == 'block' ? 'none' : 'block';
}

function showlogin1() {
    document.getElementById("login1").style.display = document.getElementById("login1").style.display == 'block' ? 'none' : 'block';
}

function sendmail() {
    document.getElementById('spanlogin').innerHTML = "";        
       // var email = trim(document.forms["frmlogin"].txtEmail.value);
 var email = trim(document.getElementById("plc_lt_zoneLogin_Login_userControlElem_loginTxtEmail").value);
        if (email != "") {
            if (validateemail(email) == true) {
                return true;
            }
            else {
                document.getElementById('spanlogin').innerHTML = "<br><font  color='red'>*</font> Please enter valid Email-Id";
           }
        }
        else {
            document.getElementById('spanlogin').innerHTML = "<br><font  color='red'>*</font> Please enter email";
        }
    return false;    

}


function sendunsubscribemail() {
    document.getElementById('spanunsubscribe').innerHTML = "";
   // frmunsubscribe
   // var email = trim(document.forms["frmunsubscribe"].txtEmail.value);
	 var email = trim(document.getElementById("plc_lt_zoneLogin1_Login1_userControlElem_login1TxtEmail").value);
    if (email != "") {
        if (validateemail(email) == true) {
            return true;
        }
        else {
            document.getElementById('spanunsubscribe').innerHTML = "<br><font  color='red'>*</font> Please enter valid Email-Id";
        }
    }
    else {
        document.getElementById('spanunsubscribe').innerHTML = "<br><font  color='red'>*</font> Please enter email";
    }
    return false;
}


