         //end of added by satish
      function openNewWindow()
	  {	
	      window.open("demo/Demo.html","ForgotPassword1","toolbars=no,scrollbars=yes,menubar=no,height=600,width=900,left=180,top=150")
	  }
      function openCopyrightInfoWindow()
	  {		  
	      window.open("frmCopyright.aspx","ForgotPassword1","toolbars=no,scrollbars=yes,menubar=no,height=400,width=750,left=180,top=150")
	  }
	   function openDisclaimerWindow()
	  {	
	      window.open("frmDisclaimer.aspx","ForgotPassword1","toolbars=no,scrollbars=yes,menubar=no,height=400,width=750,left=180,top=150")
	  }
	  function openTermsWindow()
	  {	
	      window.open("frmTermsCondition.aspx","Terms","toolbars=no,scrollbars=yes,menubar=no,height=400,width=750,left=180,top=150")
	  }
	  function openPrivacyPolicyWindow()
      {	
          window.open("frmPrivacypolicy.aspx","Privacypolicy","toolbars=no,scrollbars=yes,menubar=no,height=400,width=800,left=180,top=150")
      }
	  function clickButton(e, buttonid){ 
              var bt = document.getElementById(buttonid); 
             
              if (typeof bt == 'object')
              { 
                    if(navigator.appName.indexOf("Netscape")>(-1))
                    { 
                          if (e.keyCode == 13)
                          { 
                                bt.click(); 
                                return false; 
                          } 
                    }
                    
                    if(navigator.appName.indexOf("Opera")>(-1))
                    { 
                          if (e.keyCode == 13)
                          { 
                                bt.click(); 
                                return false; 
                          } 
                    } 
                    if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                          if (event.keyCode == 13){ 
                                bt.click(); 
                                return false; 
                          } 
                    } 
              } 
        } 
	  function StateMaintains()
	  {
	        var url = "StateHandler.ashx";
            if (window.XMLHttpRequest) 
            {
                req = new XMLHttpRequest();
                req.open('POST', url, true);
                req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                req.send("");
                setTimeout('StateMaintains()',60000*15); 
                //alert("state call");
            } 
            else if (window.ActiveXObject) 
            {
                req = new ActiveXObject('Microsoft.XMLHTTP')
                if (req) {
                    req.open('POST', url, true);
                    req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                    req.send("");
                    
                }                
                setTimeout('StateMaintains()',60000*15); 
                //alert("state call");
            }	        
	  }	  
	  setTimeout('StateMaintains()',60000*15); 
	  
	      function frmLogout()
    {
       window.location.href ="frmLogout.aspx";
        return false;
    }

     //alert(navigator.userAgent);
     
     //alert(navigator.platform);
    //code for firefox
    //for Mac OS -- redirect the user between old & new versions of application
    //for windows -- redirect the user between old & new versions of application
    //for linux -- redirect the user between old & new versions of application
      if(navigator.userAgent.indexOf("Firefox")!=-1)
      {
            var versionindex=navigator.userAgent.indexOf("Firefox")+8
            if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
		    {
		    
		    }
		    else
		    {
		     window.location.href="http://www.24x7guru.com:8080/default.aspx";
		    }
      }
//code for opera      
//for Mac OS -- redirect the user to error page
//for windows -- redirect the user between old & new versions of application
//for linux -- redirect the user to error page

      else if(navigator.userAgent.indexOf("Opera")!=-1)
    {
        if((navigator.platform=="MacPPC")||(navigator.platform=="Linux i686"))
        {
         window.location.href="frmerror.aspx?eid=4"
        }
        else
        {
           var versionindex=navigator.userAgent.indexOf("Opera")+6
            if (parseInt(navigator.userAgent.charAt(versionindex))>=8)
            {
                //alert("You are using Opera 8 or 9")
            }
            else
            {
            window.location.href="http://www.24x7guru.com:8080/default.aspx";
            }
        }
    }
//code for safari
//for Mac OS -- keep the user on the new version
//for windows -- redirect the user to error page
//for linux -- redirect the user to error page

    else if(navigator.userAgent.indexOf("Safari")!=-1)
    {
        if(navigator.platform=="MacPPC")
        {
        //alert("you are using safari on mac o/s");
        }
        else
        {
            window.location.href="frmerror.aspx?eid=4"
        }
        
    }
//For Konqueror 
// re-direct the user to error page irrespective of operating system
    else if(navigator.userAgent.indexOf("Konqueror")!=-1)
    {  
       //alert("you are using konqueror");
        window.location.href="frmerror.aspx?eid=4"
    }  



    
    
//code for netscape
//for Mac OS -- redirect the user to error page
//for windows -- redirect the user between old & new versions of application
//for linux -- redirect the user to error page

     else if(navigator.userAgent.indexOf("Netscape")!=-1)
    {
        if((navigator.platform=="MacPPC")||(navigator.platform=="Linux i686"))
        {
         window.location.href="frmerror.aspx?eid=4"
        }
        else
        {
           var versionindex=navigator.userAgent.indexOf("Netscape")+9
            if (parseInt(navigator.userAgent.charAt(versionindex))>=7)
            {
                //alert("You are using Netscape version"+ parseInt(navigator.userAgent.charAt(versionindex)));
            }
            else
            {
            window.location.href="http://www.24x7guru.com:8080/default.aspx";
            }
        }
    }
    
//for IE 
//for Mac OS -- redirect the user to error page
//for windows -- redirect the user between old & new versions of application
//for linux -- redirect the user to error page
 
    else if (navigator.appVersion.indexOf("MSIE")!=-1)
    {
        if((navigator.platform=="MacPPC")||(navigator.platform=="Linux i686"))
        {
         window.location.href="frmerror.aspx?eid=4"
        }
        else
        {
            temp=navigator.appVersion.split("MSIE")
            version=parseFloat(temp[1])
                if(version>=6)
                {
                //alert("You're using the Internet Explorer browser. "+version)
                }
                else
                {
                  //alert("You're using the Internet Explorer browser. "+version)
                    window.location.href="http://www.24x7guru.com:8080/default.aspx";
                }
         }
     }
     // For Mozilla
      else if(navigator.userAgent.indexOf("Gecko")!=-1)
     {
        if((navigator.userAgent.indexOf("Firefox")!=-1)||(navigator.userAgent.indexOf("Opera")!=-1)||(navigator.userAgent.indexOf("Safari")!=-1)||(navigator.userAgent.indexOf("Konqueror")!=-1)||(navigator.userAgent.indexOf("Netscape")!=-1))
        {
        
        }
        else
        {
            //alert("Into Mozilla");
          if(parseInt(navigator.appVersion)>=5)
          {
          //alert(parseInt(navigator.appVersion));
          }
          else
          {
           window.location.href="http://www.24x7guru.com:8080/default.aspx";
          }
         
        }
     }
     
 else
{
    window.location.href="frmerror.aspx?eid=4"         
}          
