private void lead_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            HideScriptErrors(lead, true);

            if (lead.Source.ToString() == "http://shubhalabha.in/eng/crm/index.php?entryPoint=WebToLeadCapture")
            {
                RegistryKey regKey = Registry.CurrentUser;
                regKey = regKey.CreateSubKey(@"amis\");

                regKey.SetValue("sd", DateTime.Today.Day + "-" + DateTime.Today.Month + "-" + DateTime.Today.Year);
                regKey.SetValue("Login", "done");


                regKey.SetValue("crm", "done");
                this.Hide();
                Shubhascanner.Mainapplication s = new Mainapplication();
                s.ShowDialog();

                return;
            }
        }
        private void lead_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {

            HideScriptErrors(lead, true);

            if (lead.Source.ToString() == "http://shubhalabha.in/eng/crm/index.php?entryPoint=WebToLeadCapture")
            {

                RegistryKey regKey = Registry.CurrentUser;
                regKey = regKey.CreateSubKey(@"amis\");
                
                regKey.SetValue("sd", DateTime.Today.Day + "-" + DateTime.Today.Month + "-" + DateTime.Today.Year);
                regKey.SetValue("Login", "done");

               
                regKey.SetValue("crm", "done");
                this.Hide();
                Shubhascanner.Mainapplication  s = new Mainapplication();
                s.ShowDialog();

                return;
            }

        }