﻿// JScript File

    function checkEnter(e)
    { //e is event object passed from function invocation var characterCode literal character code will be stored in this variable

        if(e && e.which)
        { //if which property of event object is supported (NN4)
            e = e;
            characterCode = e.which; //character code is contained in NN4's which property
        }
        else
        {
            e = event;
            characterCode = e.keyCode; //character code is contained in IE's keyCode property
        }

        if(characterCode == 13)
        { //if generated character code is equal to ascii 13 (if enter key)
            e.returnValue=false;
            e.cancelBubble =true;
            login();
            return false;
        }
        else
        {
            return true;
        }
    }
    
    function login()
    {
        var username = document.getElementById('ctl00_GoBoom_Login_txtUserName').value;
        var password = document.getElementById('ctl00_GoBoom_Login_txtPassword').value;
        if (username == '' || password == '')
        {
            alert('Please enter username and/or password');
        }
        else
        {
            userlogin.btnLogin_Click(username,password,btnLogin_Click_CallBack);
        }
    }
    function btnLogin_Click_CallBack(response)
    {
        if(response.error != null)
         {
            alert(response.error);
         }
      
        if(response.value != null) 
        {
            if(response.value == 'Error')
            {
                alert('Wrong Username and/or Password. Please try again.');
            }
            else
            {
                window.location.href = response.value;
            }
        }
    }

    function IsIE()
    {
	    return ( navigator.appName=="Microsoft Internet Explorer" ); 
    }


    function ShowMyInfoPopUp(e)  /* code to open signup pop up */
	{	
       
       
//        // SET BACKGROUND START
//        var dvBgImg = document.getElementById('dvBackImg1'); 
//         if (window.innerHeight && window.scrollMaxY) 
//         {// Firefox
//            yWithScroll = window.innerHeight + window.scrollMaxY;
//            xWithScroll = window.innerWidth + window.scrollMaxX;
//         } 
//        else if (document.body.scrollHeight > document.body.offsetHeight)
//        { // all but Explorer Mac
//            yWithScroll = document.body.scrollHeight;
//            xWithScroll = document.body.scrollWidth;
//        } 
//        else 
//        { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
//            yWithScroll = document.body.offsetHeight;
//            xWithScroll = document.body.offsetWidth;
//        }      	                                       
//            
//        dvBgImg.style.height= yWithScroll + 'px';
//        dvBgImg.style.width = xWithScroll + 'px';
//      
//        dvBgImg.style.left = '0px';
//        dvBgImg.style.top = '0px';

//        dvBgImg.style.display = 'block';
//                        
//    // SET BACKGROUND END
       
       
        document.getElementById('ctl00_GoBoom_Login_ifrSignUp').src='/signupframe.aspx';
        document.getElementById('dvUserExist').style.display = "none";
               
		var	dvMyInfo = document.getElementById('dvMyInfo');
        var x = 0 , y = 0;
        
        dvMyInfo.style.left = (screen.width/2)-1250 + 'px';
		dvMyInfo.style.top = (screen.height /2)-330 + 'px';	
		
        if(dvMyInfo.style.display == '')
		{ 
			dvMyInfo.style.display = 'block'; 			
		}
		else if(dvMyInfo.style.display == 'none')
		{
			dvMyInfo.style.display = 'block'; 			
		}
		else if(dvMyInfo.style.display == 'block')	
		{	
			dvMyInfo.style.display = 'none';	
		}
	 }
	
	  function CloseDivPopUp(Obj) //close pop on close button click
      {
        if(Obj != null)
	    {
	        Obj.style.display = 'none';
	    }
      }
	 function isCharKey(evt)
     {
        var browsername = navigator.appName;
        if (browsername == "Netscape")
        {
            var charCode = evt.which;
        }
        else
        {
            var charCode = (evt.which) ? evt.which : event.keyCode
        }
        if ((charCode > 31) && (charCode < 48 || charCode > 57) && (charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 122))
	        return false;
	    else    
	        return true;
    }
    
    function validate()
    {
        var sErr = ""  
        if (document.getElementById('ctl00_GoBoom_Login_txtFirstName').value=="")
        {
            sErr += "Please enter First name. \n";
        }
        if (document.getElementById('ctl00_GoBoom_Login_txtLastName').value=="")
        {
            sErr += "Please enter Last name. \n";
        }
      
        if(document.getElementById('ctl00_GoBoom_Login_txtWebURL').value != "")
        {
            var Url="^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+$";
            var tempURL=document.getElementById('ctl00_GoBoom_Login_txtWebURL').value;
            var matchURL=tempURL.match(Url);
             if(matchURL==null)
             {
                 sErr += "Web URL does not look valid. \n";
                 document.getElementById('ctl00_GoBoom_Login_txtWebURL').value="http://";
             }
        }
            
        if (document.getElementById('ctl00_GoBoom_Login_txtLoginName').value=="")
        {
            sErr += "Please enter Login name. \n";
        }
        
        if (document.getElementById('ctl00_GoBoom_Login_txtLoginName').value !="")
        {
            if (document.getElementById('ctl00_GoBoom_Login_txtLoginName').value.length < 6 || document.getElementById('ctl00_GoBoom_Login_txtLoginName').value.length > 15 )
            {
                sErr += "Login name must be of 6-10 characters. \n";
            }
        }
        
        if(document.getElementById('ctl00_GoBoom_Login_txtEmailId').value=="")
        {
            sErr += "Please enter Email Id. \n";
        }
        if(document.getElementById('ctl00_GoBoom_Login_txtEmailId').value != "")
        {
         //  [a-zA-Z0-9]+\.[a-zA-Z0-9]+
            var emailPat1 = /^(\".*\"|[a-zA-Z0-9]+\.[a-zA-Z0-9]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
            var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
            
            var emailid=document.getElementById('ctl00_GoBoom_Login_txtEmailId').value;
            
            var matchArray = emailid.match(emailPat);
            var matchArray1 = emailid.match(emailPat1);
            if (matchArray == null && matchArray1 == null)
            {
                sErr += "Your email id seems incorrect. Please try again. \n";
            }
        }
        
        if(document.getElementById('ctl00_GoBoom_Login_txtChoosePassword').value=="")
        {
            sErr += "Please enter Password. \n";
        }
        if (document.getElementById('ctl00_GoBoom_Login_txtChoosePassword').value.length < 6 || document.getElementById('ctl00_GoBoom_Login_txtChoosePassword').value.length >10)
        {
            sErr += "Password length must be between 6 to 10 characters. \n";
        }
        
        if(document.getElementById('ctl00_GoBoom_Login_txtRetypePassword').value=="")
        {
            sErr += "Please Re type Password. \n";
        }
        
        if(document.getElementById('ctl00_GoBoom_Login_txtChoosePassword').value != document.getElementById('ctl00_GoBoom_Login_txtRetypePassword').value) 
        {
            sErr += "Retyped Password not matched. \n";
        }
       
       if(sErr == "")
       {   
            return true;
       }
       else
       {   
            alert(sErr); 
       }
    }
    
    function ContinueSignup()
    {
       //alert('test');
       var valid = validate();
        if(valid == true)
       {
            var sLoginName = document.getElementById('ctl00_GoBoom_Login_txtLoginName').value;
            var sEmailId = document.getElementById('ctl00_GoBoom_Login_txtEmailId').value;
            
            var iChars = "!@#$%^&*()+=-[]\';,./{}|\":<>? ";
            for (var i = 0; i < sLoginName.length; i++) 
            {
                if (iChars.indexOf(sLoginName.charAt(i)) != -1) 
                {
                    alert("Special characters are not allowed in Login Name.");
                    return;
                }
            }
            userlogin.imageContinue_Click(sLoginName,sEmailId,imageContinue_Click_CallBack);    
       }
    }
    
    function imageContinue_Click_CallBack(response)
    {
        if(response.error != null)
         {
           alert(response.error);
         }
      
        if(response.value != null) 
        {
            if(response.value == 1)
            {
                document.getElementById('dvUserExist').style.display = "block";
            }
            else
            {
                document.getElementById('TBL_Registration').style.display = "none";
                document.getElementById('TBL_Terms').style.display = "block";
            }
        }
    }

	function SignUp()
	{
	   if (document.getElementById('ctl00_GoBoom_Login_cbAcceptTerms').checked == false)
        {
            alert('Please accept Terms and Conditions.');
            document.getElementById('ctl00_GoBoom_Login_cbAcceptTerms').focus();
        }
        else
        {
            document.getElementById('imgAjax').style.display="block";
            var sFname = document.getElementById('ctl00_GoBoom_Login_txtFirstName').value;
            var sLname = document.getElementById('ctl00_GoBoom_Login_txtLastName').value;
            var bGender 
            var sWebURL = document.getElementById('ctl00_GoBoom_Login_txtWebURL').value;
            var sLoginName = document.getElementById('ctl00_GoBoom_Login_txtLoginName').value;
            var sEmailId = document.getElementById('ctl00_GoBoom_Login_txtEmailId').value;
            var sPassword = document.getElementById('ctl00_GoBoom_Login_txtChoosePassword').value;
            var sRetypesPassword = document.getElementById('ctl00_GoBoom_Login_txtRetypePassword').value;
            var sHostName = document.getElementById('ctl00_GoBoom_Login_hdnhostname').value;
            var sPath = document.getElementById('ctl00_GoBoom_Login_hdnsPath').value;
            
            if (document.getElementById('ctl00_GoBoom_Login_rdbGender_0').checked == true)
	        {
	            bGender = 0;
	        }
	        else
	        {
	            bGender = 1;
	        }
    		userlogin.imageSignUp_Click(sFname,sLname,bGender,sWebURL,sLoginName,sEmailId,sPassword,sHostName,sPath,imageSignUp_Click_CallBack);
        }
	}
		
	function imageSignUp_Click_CallBack(response)
    {
       
         if(response.error != null)
         {
           alert(response.error);
         }
      
        if(response.value != null) 
        {
           document.getElementById('TBL_Registration').style.display = "none";
           document.getElementById('TBL_Terms').style.display = "none";
           document.getElementById('TBL_Successful').style.display = "block";
           clearControls(1);
        }
        document.getElementById('imgAjax').style.display="none";
    }
    
    function ResetSignUp()
    {
        document.getElementById('TBL_Registration').style.display = "block";
        document.getElementById('TBL_Successful').style.display = "none";
        document.getElementById('TBL_Terms').style.display = "none";
    }
   
     
   // Add Bookmarks Functions START
   
    function ShowAddLinkPopUp(e)  /* code to open add link info pop up */
	{	
       
        var	dvAddLink = document.getElementById('dvAddLink');
        var x = 0 , y = 0;

        dvAddLink.style.left = (screen.width/2)-1350 + 'px';
		dvAddLink.style.top = (screen.height /2)-450 + 'px';	
		
        if(dvAddLink.style.display == '')
		{ 
			dvAddLink.style.display = 'block'; 			
		}
		else if(dvAddLink.style.display == 'none')
		{
			dvAddLink.style.display = 'block'; 			
		}
		else if(dvAddLink.style.display == 'block')	
		{	
			dvAddLink.style.display = 'none';	
		}
	 }
        
    function validateAddLink()
    {
        var sErr = ""  
        
        if (document.getElementById('ctl00_GoBoom_Login_drpBookmarkCategory').options[document.getElementById('ctl00_GoBoom_Login_drpBookmarkCategory').selectedIndex].value == 0)
        {
            sErr += "Please select Category. \n";
        }
        if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkURL').value=="")
        {
            sErr += "Please enter Bookmark URL. \n";
        }
        
        if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkTitle').value=="")
        {
            sErr += "Please enter Bookmark Title. \n";
        }
      
      
      if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkTitle').value !="")
        {
            if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkTitle').value.length < 15)
            {
                sErr += "Bookmark Title must be greater than 15 characters. \n";
            }
            if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkTitle').value.length > 80)
            {
                sErr += "Bookmark Title must be less than 80 characters. \n";
            }
            
//            var iChars = "!@#$%^&*()+=-[]\';,./{}|\":<>?’‘“”";
            var iChars = "!@#$%^&*()+=-[]\';,./{}|\":<>?’‘“”ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëðñôõö÷øùúûüýþÿ™¥§©®£¢šžš›œŸ¢£¤¥¦§ª«¬°±²…†‡ˆ‰Š‹Œ£¢šž˜";
            var ttl = document.getElementById('ctl00_GoBoom_Login_txtBookmarkTitle').value;
            for (var i = 0; i < ttl.length; i++) 
            {
                if (iChars.indexOf(ttl.charAt(i)) != -1) 
                {
                    alert("Special characters are not allowed in Title.");
                    return;
                }
            }
            
            try
            {
                var arr = new Array();
                var restWords = "drug||sex||porn||viagra||claris||casino||poker||gambling||escort";
                arr = restWords.split("||");
               
                for(var k = 0; k < arr.length; k++)
                {   
                    //alert(arr[k]);
                    var foundAtPosition;
                    ttl = ttl.toLowerCase();
                    foundAtPosition = ttl.indexOf(arr[k],0);
                    //alert(foundAtPosition);
                    if(foundAtPosition != -1)
                    {
                       var errmsg = 'You have used some restricted words in Title. \n'
                        errmsg += 'Some Restricted words are : drug,sex,viagra,claris etc...' 
                        alert(errmsg);
                        return;
                    }
                }
            }
            catch(err)
            {
                alert(err);
            }
       }
      
       if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').value=="")
        {
            sErr += "Please enter Bookmark description. \n";
            document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').focus();
        }
        
        if(document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').value != "")
        {
            if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').value.length < 200 || document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').value.length > 400)
            {
                sErr += "Bookmark description must be between 200-400 charecters. \n";
                document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').focus();
            }
            
            var tg1 = "<";
            var tg2 = ">";
            tempDesc = document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').value
            var matchtg1 = tempDesc.match(tg1);
            var matchtg2 = tempDesc.match(tg2);
            
            if(matchtg1!=null || matchtg2!=null)
            {
                sErr += "Html tags (like <,/,> etc...) are not allowed in description. \n";
            }
            
            try
            {
                var arrDesc = new Array();
                var restWords = "drug||sex||porn||viagra||claris||casino||poker||gambling||escort";
                arrDesc = restWords.split("||");
                for(var k = 0; k < arrDesc.length; k++)
                {   
                    //alert(arr[k]);
                    var foundAtPosition;
                    tempDesc = tempDesc.toLowerCase();
                    foundAtPosition = tempDesc.indexOf(arrDesc[k],0);
                    //alert(foundAtPosition);
                    if(foundAtPosition != -1)
                    {
                        var errmsg = 'You have used some restricted words in Description. \n'
                        errmsg += 'Some Restricted words are : drug,sex,viagra,claris etc...' 
                        alert(errmsg);
                        return;
                    }
                 }
              }
              catch(err)
              {
                alert(err);
              }
        }
      
        if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').value=="")
        {
            sErr += "Please enter Bookmark keywords. \n";
            document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').focus();
        }
        
        if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').value!="")
        {
            if (document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').value.length > 400)
            {
                sErr += "Keywords must not greater than 400 characters. \n";
                document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').focus();    
            }
            
            
            try
            {
                var arrKwrds = new Array();
                var restWords = "drug||sex||porn||viagra||claris||casino||poker||gambling||escort";
                arrKwrds = restWords.split("||");
                var keywords = document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').value
                keywords = keywords.toLowerCase();
                for(var k = 0; k < arrKwrds.length; k++)
                {   
                    //alert(arr[k]);
                    var foundAtPosition;
                    foundAtPosition = keywords.indexOf(arrKwrds[k],0);
                    //alert(foundAtPosition);
                    if(foundAtPosition != -1)
                    {
                       var errmsg = 'You have used some restricted words in Keywords. \n'
                        errmsg += 'Some Restricted words are : drug,sex,viagra,claris etc...' 
                        alert(errmsg);
                        return;
                    }
                }
            }
            catch(err)
            {
                alert(err);
            }
            
        }
        
       if(sErr == "")
       {   
            return true;
       }
       else
       {   
            alert(sErr); 
       }
    }
      
    function AddLink()
    {
        var nCategory = document.getElementById('ctl00_GoBoom_Login_drpBookmarkCategory').options[document.getElementById('ctl00_GoBoom_Login_drpBookmarkCategory').selectedIndex].value;
        var sBookmarkURL = document.getElementById('ctl00_GoBoom_Login_txtBookmarkURL').value;
        var sBookmarkTitle = document.getElementById('ctl00_GoBoom_Login_txtBookmarkTitle').value;
        var sBookmarkDesc = document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').value;
        var sBookmarkKeywords= document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').value;
        
         var valid = validateAddLink();
         if(valid == true)
         {
            if(document.getElementById('ctl00_GoBoom_Login_rdbShared_0').checked == true)
            {
                bShared = true;
            }
            else
            {
                bShared = false;
            }
            document.getElementById('imgAjax1').style.display="block";
            userlogin.btnSubmitBookmark_Click(nCategory,sBookmarkURL,sBookmarkTitle,sBookmarkDesc,sBookmarkKeywords,bShared,btnSubmitBookmark_Click_CallBack);
         }   
    }
        
    function btnSubmitBookmark_Click_CallBack(response)
    {
       
         if(response.error != null)
         {
           alert(response.error);
         }
      
        if(response.value != null) 
        {
            var arr1 = new Array();
            arr1 = response.value.split("||");
            
            if (arr1[0] == 0)
            {
                var msg = "URL you enterd is already submitted by other user,\n"
                msg += "Press ok to Go to it's details page and boom it to add it in your favorites."
                 var temp = confirm(msg);
                if (temp == true)
                { 
                    window.location.href = arr1[1];
                }
                else
                {
                    document.getElementById('imgAjax1').style.display="none";
                }
            }
            
            if (arr1[0] == 1)
            {
                document.getElementById('imgAjax1').style.display="none";
                window.location.href = arr1[1];
            }
            
            if (arr1[0] == 2)
            {
                document.getElementById('imgAjax1').style.display="none";
                alert("Bad URL");
            }
        }
    }
        
  function clearControls(flg)
  {
        if(flg==1)
        {
            document.getElementById('ctl00_GoBoom_Login_txtFirstName').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtLastName').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtWebURL').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtLoginName').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtEmailId').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtChoosePassword').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtRetypePassword').value = '';
            document.getElementById('ctl00_GoBoom_Login_rdbGender_0').checked = true;
        }
        else if(flg==2)
        {
            document.getElementById('ctl00_GoBoom_Login_drpBookmarkCategory').options[document.getElementById('ctl00_GoBoom_Login_drpBookmarkCategory').selectedIndex].value = 0;
            document.getElementById('ctl00_GoBoom_Login_txtBookmarkURL').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtBookmarkTitle').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc').value = '';
            document.getElementById('ctl00_GoBoom_Login_txtBookmarkKeywords').value = '';
            document.getElementById('ctl00_GoBoom_Login_rdbShared_0').checked = true;
        }
  }
  function decreaseLength(obj,objTextLength)
  {	
	objTextLength.value= 401 - (obj.value.length + 1);
  }
   function CountWords()
    {    
        objtext = document.getElementById('ctl00_GoBoom_Login_txtBookmarkDesc');
        objlbl = document.getElementById('ctl00_GoBoom_Login_lblMaxLength');
        maxlen = 400;
        
        if(objlbl != null)
        {           
            if (objtext.value.length < parseInt(maxlen))
            {                
                objlbl.innerHTML = parseInt(maxlen) - objtext.value.length;     
            }
            else
            {               
                objlbl.innerHTML=0;
                var str = objtext.value;
                objtext.value = str.substring(0,str.length - 1);//set maxlen txtlen character not allowed more
            }
        }
    }
   // Add Bookmarks Functions END
   //----------------------------------------------------------
   // Forgot password functions START
      
      function ShowForgotPassPopUp(e)  /* code to open add link info pop up */
	  {	
       
        var	dvForgotPassword = document.getElementById('dvForgotPassword');
        var x = 0 , y = 0;
//		x = parseInt(e.clientX) ; 
//		y = parseInt(e.clientY) ;
//		
//		if (IsIE())
//		{
//		    dvForgotPassword.style.left =  x + parseInt(document.body.scrollLeft) - 1300 + 'px';
//		    dvForgotPassword.style.top = y  + parseInt(document.body.scrollTop) - 90 + 'px';		
//		}else
//		{
//			dvForgotPassword.style.left = x - 1200 + parseInt(document.body.scrollLeft) + 'px';
//			dvForgotPassword.style.top = y - 90 + parseInt(document.body.scrollTop) + 'px';
//		}	

        dvForgotPassword.style.left = (screen.width/2)-1200 + 'px';
		dvForgotPassword.style.top = (screen.height /2)-300 + 'px';
		
        if(dvForgotPassword.style.display == '')
		{ 
			dvForgotPassword.style.display = 'block'; 			
		}
		else if(dvForgotPassword.style.display == 'none')
		{
			dvForgotPassword.style.display = 'block'; 			
		}
		else if(dvForgotPassword.style.display == 'block')	
		{	
			dvForgotPassword.style.display = 'none';	
		}
	 }
      
      
      function RequestPassword()
      {
            var sLoginName = document.getElementById('ctl00_GoBoom_Login_txtsLoginName').value;
            var sEmailId = document.getElementById('ctl00_GoBoom_Login_txtsUserEmail').value;
            var sHostName = document.getElementById('ctl00_GoBoom_Login_hdnhostname').value;
            var sPath = document.getElementById('ctl00_GoBoom_Login_hdnsPath').value;
            
            userlogin.btnRequestPass_Click(sLoginName,sEmailId,sPath,sHostName,btnRequestPass_Click_CallBack);
      }
      
      function btnRequestPass_Click_CallBack(response)
      {
            if(response.error != null)
             {
               alert(response.error);
             }
          
            if(response.value != null) 
            {
                if(response.value == 1)
                {
                    document.getElementById("TBL_PasswordSuccessful").style.display = 'block';
                    document.getElementById("TBL_RequestPassword").style.display = 'none';
                    
                }
                else if(response.value == 2)
                {
                    alert('You have entered a wrong login name and/or password please try again.');
                }
           }
      }
      
      function ResetForgotPassword()
      {
         document.getElementById("TBL_PasswordSuccessful").style.display = 'none';
         document.getElementById("TBL_RequestPassword").style.display = 'block';
         document.getElementById('ctl00_GoBoom_Login_txtsLoginName').value = '';
         document.getElementById('ctl00_GoBoom_Login_txtsUserEmail').value = '';
      }
      
      // Forgot password functions END