var txtUserNameClientID= '<%=txtUserName.ClientID%>';
var txtEmailClientID= '<%=txtUserEmail.ClientID%>';
var lblUserName= '<%=lblUserName.ClientID%>';
var lblEmail= '<%=lblEmail.ClientID%>';
var lblEmailError= '<%=lblEmailError.ClientID%>';
var lblUserNameEmpty=document.getElementById(lblUserName);
var lblEmailEmpty=document.getElementById(lblEmail);
var lblEmailErrorValue=document.getElementById(lblEmailError);
lblUserNameEmpty.style.display='none';
lblEmailEmpty.style.display='none';
lblEmailErrorValue.style.display='none';
var UserName=document.getElementById(txtUserNameClientID);
var Email=document.getElementById(txtEmailClientID);
if(UserName.value!="" && Email.value.indexOf("@") != -1&& Email.value!="" &&Email.value.indexOf(".") != -1)
{
__doPostBack('<%=mgBtnUpdateUserInfo.ClientID.Replace("_","$")%>','');
ShowEditUserPanel(this,'divEditZone','hide')
}
else if(UserName.value=="")
{
lblUserNameEmpty.style.display='block';
}
if (Email.value.indexOf("@") == -1||Email.value.indexOf(".") == -1|| Email.value=="")
{ if(Email.value=="")
{
lblEmailEmpty.style.display='block';
return;
}
if(Email.value.indexOf("@") == -1||Email.value.indexOf(".") == -1)
{
lblEmailErrorValue.style.display='block';
}
}
var txtEmailClientID= '<%=txtUserEmail.ClientID%>';
var lblUserName= '<%=lblUserName.ClientID%>';
var lblEmail= '<%=lblEmail.ClientID%>';
var lblEmailError= '<%=lblEmailError.ClientID%>';
var lblUserNameEmpty=document.getElementById(lblUserName);
var lblEmailEmpty=document.getElementById(lblEmail);
var lblEmailErrorValue=document.getElementById(lblEmailError);
lblUserNameEmpty.style.display='none';
lblEmailEmpty.style.display='none';
lblEmailErrorValue.style.display='none';
var UserName=document.getElementById(txtUserNameClientID);
var Email=document.getElementById(txtEmailClientID);
if(UserName.value!="" && Email.value.indexOf("@") != -1&& Email.value!="" &&Email.value.indexOf(".") != -1)
{
__doPostBack('<%=mgBtnUpdateUserInfo.ClientID.Replace("_","$")%>','');
ShowEditUserPanel(this,'divEditZone','hide')
}
else if(UserName.value=="")
{
lblUserNameEmpty.style.display='block';
}
if (Email.value.indexOf("@") == -1||Email.value.indexOf(".") == -1|| Email.value=="")
{ if(Email.value=="")
{
lblEmailEmpty.style.display='block';
return;
}
if(Email.value.indexOf("@") == -1||Email.value.indexOf(".") == -1)
{
lblEmailErrorValue.style.display='block';
}
}