function no_login(){
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=no_login";
                  location.replace(url);
}
         function imprint() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=imprint";
                  location.replace(url);
         }
         function brand() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=brand";
                  location.replace(url)
         }
         function ndc_go() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=ndc";
                  location.replace(url)
         }
         function with_logo() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=imprint&id=with";
                  location.replace(url);
         }
         function without_logo() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=expert";
                  location.replace(url);
         }
         function fuzzy() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=fuzzy";
                  location.replace(url);
         }
         function convertb() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=convertb";
                  location.replace(url);
         }
         function generic_convert() {
           var temp = document.form1.info.value;
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=generic_convert&generic=" + temp;
                  location.replace(url);
         }
         function brand_convert() {
           var temp = document.form1.info.value;
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=brand_convert&generic=" + temp;
                  location.replace(url);
         }
         function back_main() {
           var url = "http://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=main";
                  location.replace(url);
         }
         function next_page11() {
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_num"
                 location.replace(url)
         }
         function back() {
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=main";
          location.replace(url);
         }
         function not_found() {
           var temp = document.form1.id.value
           var temp1 = document.form1.screen.value
           var temp2 = "/cgi-bin/index_n.cgi?PAGE_TAG=not_found&id=" + temp
           var temp3 = temp2 + "&screen="
           var temp4 = temp3 + temp1
           var temp5 = temp4 + "&remain="
           var temp6 = document.form1.remain.value
           var url = temp5 + temp6
           location.replace(url)
         }
         function back1() {
           if (document.form1.screen.value == "imprint"){
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imprint";
          location.replace(url);
          } 
           if (document.form1.screen.value == "num"){
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_num";
           location.replace(url);
           } 
            if (document.form1.screen.value == "alpha1"){
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_alpha";
          location.replace(url);
           }
            if (document.form1.screen.value == "remainder"){
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_alpha";
          location.replace(url);
           }
         }
         function getSelectValue7(selectObject) {
                var choice = selectObject.options[selectObject.selectedIndex].value
                document.form1.remain.value = choice
                var temp = document.form1.id.value
                var temp1 = document.form1.screen.value
                if(document.form1.usage.value == "1time"){
                var temp2 = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_list1&id=" + temp
                    } else {
                var temp2 = "/cgi-bin/index_n.cgi?PAGE_TAG=db_cgi&id=" + temp
                       }
                var temp3 = temp2 + "&screen="
                var temp4 = temp3 + temp1
                var temp5 = temp4 + "&remain="
                var url = temp5 + choice
                location.replace(url)
         }
         function next_page1() {
           var temp = document.form1.id.value
           var temp1 = document.form1.screen.value
           var temp2 = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_alpha&id=" + temp
           var temp3 = temp2 + "&screen="
           var url = temp3 + temp1
                  location.replace(url)
         }
         function back2() {
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imprint";
          location.replace(url);
         }
         function getSelectValue2(selectObject) {
                var choice = selectObject.options[selectObject.selectedIndex].value
                document.form1.id.value = choice
                var temp = document.form1.id.value
                var temp1 = document.form1.screen.value
                var temp2 = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_rem&id=" + temp
                var temp3 = temp2 + "&screen="
                var url = temp3 + temp1
                  location.replace(url)
         }
         function next_page2() {
          var temp = document.form1.id.value
           var temp1 = document.form1.screen.value
           var temp2 = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_rem&id=" + temp
           var temp3 = temp2 + "&screen="
           var url = temp3 + temp1
                  location.replace(url)
         }
         function back3() {
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_num";
          location.replace(url);
         }
         function getSelectValue3(selectObject) {
                var choice = selectObject.options[selectObject.selectedIndex].value
                document.form1.id.value = choice
                var temp = document.form1.id.value
                var temp1 = document.form1.screen.value
                var temp2 = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_rem&id=" + temp
                var temp3 = temp2 + "&screen="
                var url = temp3 + temp1
                  location.replace(url)
         }
         function no_login1(){
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=nlnf";
                  location.replace(url);
         }
         function not_found2() {
           var temp = document.form1.id.value
           var temp1 = document.form1.screen.value
           var temp2 = document.form1.remain.value
           var temp3 = document.form1.x_first_name.value
           var temp4 = document.form1.x_last_name.value
           var temp5 = document.form1.x_phone.value
           var temp6 = document.form1.x_email.value
           var temp6a = document.form1.comments.value
           var temp7 = "/cgi-bin/index_n.cgi?PAGE_TAG=mail&id=" + temp
           var temp8 = temp7 + "&screen=" + temp1 + "&remain=" + temp2 + "&x_first_name=" + temp3
           var url = temp8 + "&x_last_name=" + temp4 + "&x_phone=" + temp5 + "&x_email=" + temp6 + "&comment=" + temp6a
           location.replace(url)
         }
        function go_home() {
        var url = "/cgi-bin/index_n.cgi";
        location.replace(url);
        }
         function next_page3() {
           var url = "https://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=cc_form&product=1time";
           location.replace(url)
         }
         function back4() {
           var temp1 = document.form1.screen.value
           var temp2 = document.form1.id.value
           if (document.form1.screen.value == "imprint" && document.form1.remain.value){
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_rem&id=" + temp2 + "&screen=imprint";
           location.replace(url);
          }
           if (document.form1.screen.value == "num" && document.form1.remain.value){
           var temp1 = document.form1.screen.value
           var temp2 = document.form1.id.value
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_rem&id=" + temp2 + "&screen=num";
           location.replace(url);
           }
           if (document.form1.screen.value == "alpha1" && document.form1.remain.value){
           var temp1 = document.form1.screen.value
           var temp2 = document.form1.id.value
           url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_rem&id=" + temp2 + "&screen=alpha1";
           location.replace(url);
           } else {
           url = "/cgi-bin/index_n.cgi";
           location.replace(url);
           }
         }
         function next_page4() {
                        if (!document.form1.email.value || document.form1.email.value == " " || document.form1.email.value == "  ") {
                        alert("You must enter your e-mail address.")
                        return false
                 } else {
           var tmp = document.forms.form1.id.value;
           var tmp1 = document.forms.form1.screen.value;
           var tmp2 = document.forms.form1.remain.value;
           var tmp3 = document.forms.form1.email.value;
           var tmp4 = tmp + "&screen=" + tmp1 + "&remain=" + tmp2 + "&email=" + tmp3;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=db_cgi&id=" + tmp4;
           location.replace(url);
          }
         }
       function loadFocus4(){
              document.forms.form1.email.focus();
                   }
         function getSelectValue4(selectObject) {
           var choice = selectObject.options[selectObject.selectedIndex].value;
           document.form1.desc.value = choice;
           var tmp = document.form1.id.value;
           var tmp1 = document.form1.screen.value;
           var tmp2 = document.form1.remain.value;
           var tmp3 = document.form1.comment.value;
           var tmp4 = document.form1.screen2.value;
           var tmp5 = tmp + "&screen=" + tmp1 + "&screen2=" + tmp4 +"&remain=" + tmp2 + "&comments=" + tmp3 + "&desc=" + choice;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=detail&id=" + tmp5
           location.replace(url);
         }
         function back5() {
             var screen=document.form1.screen.value;
             var screen2=document.form1.screen2.value;
             if(screen == "num" && screen2 == ""){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_num";
               location.replace(url);
             }
             if(screen == "alpha1" && screen2 == ""){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_alpha";
               location.replace(url);
             }
             if(screen == "remainder" && screen2 == ""){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=imp_rem&id=&screen=alpha1";
               location.replace(url);
             }
             if(screen == "ndc" && screen2 == ""){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=ndc";
               location.replace(url);
             }
             if(screen == "brand" && screen2 == ""){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=brand";
               location.replace(url);
             }
             if(screen == "imprint" && screen2 == ""){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=imprint";
               location.replace(url);
             }
             if(screen == "expert_imp"){
               var id=document.form1.id.value;
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=expert&id=" + id + "&screen=imprint";
               location.replace(url);
             }
             if(screen2 == "expert"){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=expert";
               location.replace(url);
             }
         }
         function try_again(){
               var url = "/cgi-bin/index_n.cgi?PAGE_TAG=main";
               location.replace(url);
         }
         function comp_ident() {
           var temp=document.form1.Back.value
           var url = "/cgi-bin/company.cgi?id=" + temp
           window.open(url, "main")
         }
         function test_it() {
           var tmp=document.form1.firm_seq.value
           var tmp1=document.form1.catlgr.value
           var url = "/cgi-bin/company.cgi?firm_seq=" + tmp + "&catlgr=" + tmp1
            newWindow = window.open(url, "TEST", "toolbar=0,menubar=0,height=300,width=800")
         }
         function test_it1() {
           var tmp=document.form1.new_firm_seq.value
           var tmp1=document.form1.new_catlgr.value
           var url = "/cgi-bin/company.cgi?firm_seq=" + tmp + "&catlgr=" + tmp1
            newWindow = window.open(url, "TEST", "toolbar=0,menubar=0,height=300,width=800")
         }
         function search_again() {
           var url="/cgi-bin/index_n.cgi?PAGE_TAG=main";
           location.replace(url);
         }
         function back6() {
           var tmp1 = document.form1.id.value;
           var tmp2 = document.form1.screen.value;
           var tmp2a = document.form1.screen2.value;
           var tmp3 = document.form1.remain.value;
           var tmp4 = document.form1.comments.value;
           if(tmp2a == "expert"){
           var tmp2 = "expert";
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=db_cgi&id=&screen=" + tmp2 + "&remain=" + tmp1 + " " + tmp3 + "&comments=" + tmp4;
           } else { 
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=db_cgi&id=" + tmp1 + "&screen=" + tmp2 + "&remain=" + tmp3 + "&comments=" + tmp4;
           }
           location.replace(url);
         }
         function submit_comment() {
         var choice=document.forms.form1.rand.value;
         var url="/cgi-bin/index_n.cgi?PAGE_TAG=question&RAND=" + choice;
         location.replace(url);
         }
         function view_photo() {
         var id=document.forms.form1.rec_num.value;
         var url = "/cgi-bin/photo.cgi?id=" + id 
         newWindow = window.open(url, "TEST", "toolbar=0,menubar=0,height=200,width=275");
         }
         function view_mono() {
         var photo=document.forms.form1.mono1.value;
         var url = "/" + photo;
         newWindow = window.open(url, "TEST", "resizable=1,scrollbars=1,toolbar=1,menubar=1,height=600,width=800");
         }
         function view_substance() {
                  newWindow = window.open("/controlled-substances.html", "TEST", "resizable=1,scrollbars=1,toolbar=1,menubar=1,height=600,width=800");
         }
         function getSelectValue5(selectObject) {
                var choice = selectObject.options[selectObject.selectedIndex].value
                document.form1.id.value = choice
                if(document.form1.usage.value == "1time"){
                var url = "/cgi-bin/index_n.cgi?PAGE_TAG=brand_list1&id=" + choice;
                location.replace(url);
                    } else {
                var url = "/cgi-bin/index_n.cgi?PAGE_TAG=db_cgi&brand=" + choice + "&screen=brand";
                location.replace(url)
               }
         }
         function back7() {
                var url = "/cgi-bin/index_n.cgi?PAGE_TAG=main";
                location.replace(url);
         }
        function back8() {
           url="/cgi-bin/index_n.cgi?PAGE_TAG=main";
           location.replace(url);
         }
         function getSelectValue6(selectObject) {
                var choice = selectObject.options[selectObject.selectedIndex].value
                document.form1.id.value = choice
                if(document.form1.usage.value == "1time"){
                var url = "/cgi-bin/index_n.cgi?PAGE_TAG=ndc_list1&ndc=" + choice;
                location.replace(url);
                    } else { var url = "/cgi-bin/index_n.cgi?PAGE_TAG=db_cgi&ndc=" + choice + "&screen=ndc";
                location.replace(url);
               }
         }
         function next_page5() {
           var tmp = document.form1.id.value;
           var tmp1 = document.form1.screen.value;
           var tmp2 = document.form1.remain.value;
           var tmp3 = tmp + "&screen=" + tmp1 + "&remain=" + tmp2;
           var url = "https://sss.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=cc_form&id=1time";

           location.replace(url);
         }
         function back9() {
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=brand";
           location.replace(url);
         }
         function next_page6() {
           var tmp = document.form1.id.value;
           var tmp1 = document.form1.screen.value;
           var tmp2 = document.form1.remain.value;
           var tmp3 = tmp + "&screen=" + tmp1 + "&remain=" + tmp2;
           var url = "https://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=cc_form&id=1time";
           location.replace(url);
         }
         function back10() {
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=ndc";
           location.replace(url);
         }
         function next_page7(){
                        var invalid = " "; 
                        if (document.form1.email.value != document.form1.email2.value) {
                         alert("The e-mail addresses you have entered do not match - Please re-enter")
                         return false
                        }
                        if (!document.form1.firstname.value) {
                         alert("You must enter your first name.")
                         return false
                        }
                        if (!document.form1.lastname.value) {
                         alert("You must enter your last name.")
                         return false
                        }
                        if (!document.form1.email.value) {
                         alert("You must enter your e-mail address.")
                         return false
                        }
                        if (document.form1.userid.value.indexOf(invalid) > -1) {
                         alert("Sorry, spaces are not allowed in User Names.");
                         return false;
                        }
                        if (!document.form1.userid.value) {
                         alert("You must enter a User Name.")
                         return false
                 } else {
           var tmp = document.forms.form1.firstname.value;
           var tmp1 = document.forms.form1.lastname.value;
           var tmp2 = document.forms.form1.email.value;
           var tmp3 = document.forms.form1.userid.value;
           var tmp4 = "&email=" + tmp2 + "&userid=" + tmp3;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=new_login_apply&firstname=" + tmp + "&lastname=" + tmp1 + tmp4;
           location.replace(url);
          }
         }
       function loadFocus1(){
              document.forms.form1.firstname.focus();
                   }
         function reverse1() {
           document.form1.contact0.checked=false;
           document.form1.contact1.checked=true;
         }
         function reverse0() {
           document.form1.contact0.checked=true;
           document.form1.contact1.checked=false;
         }
         function next_page8() {
           var contact= document.form1.contact0.checked;
           var tmp = document.form1.comments.value;
           var tmp2 ='"' + tmp + '"';
           var tmp1 = document.form1.id.value;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=restart&id=" + tmp2 + "&screen=" + tmp1 + "&contact=" + contact;
           location.replace(url);
         }
         function err_dup_login() {
           var tmp = document.forms.form1.username.value;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=err_duplicate_login&username=" + tmp;
           location.replace(url);
         }
         function err_dup_email() {
           var tmp = document.forms.form1.email.value;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=err_duplicate_email&password=" + tmp;
           location.replace(url);
         }
         function err_dup_ip() {
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=err_duplicate_ip";
           location.replace(url);
         }
         function err_no_id() {
         var url="/cgi-bin/index_n.cgi?PAGE_TAG=err_userid";
         location.replace(url);
         }
         function err_invalid_pass() {
         var url="/cgi-bin/index_n.cgi?PAGE_TAG=err_password";
         location.replace(url);
         }
         function err_no_pass() {
         var url="/cgi-bin/index_n.cgi?PAGE_TAG=err_password";
         location.replace(url);
         }
         function time_expired() {
         var url="/cgi-bin/index_n.cgi?PAGE_TAG=time_expired";
         location.replace(url);
         }
         function go_trial() {
         var value = document.forms.form1.username.value;
         var fstname = document.forms.form1.firstname.value;
         var lstname= document.forms.form1.lastname.value;
         var pdf = document.forms.form1.pdf.value;
         var usage_val = "";
         document.cookie = "USAGE=" + escape(usage_val);
         document.cookie = "USERNAME=" + escape(value);
         document.cookie = "PDF=" + escape(pdf);
         var url="/cgi-bin/index_n.cgi?PAGE_TAG=main&firstname=" + fstname + "&lastname=" + lstname;
         location.replace(url);
         }
         function next_page9(){
                        if (!document.form1.email.value) {
                         alert("You must enter your e-mail address.")
                         return false
                        }
                        if (!document.form1.userid.value) {
                         alert("You must enter your User Name.")
                         return false
                 } else {
           var tmp2 = document.forms.form1.email.value;
           var tmp3 = document.forms.form1.userid.value;
           var tmp4 = "&email=" + tmp2 + "&userid=" + tmp3;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=resend_password" + tmp4;
           location.replace(url);
          }
         }
         function err_no_userid() {
           var url = "/cgi-bin/index_n.cgi";
           location.replace(url);
          alert("The User Name you have chosen is not in our system.");
          return false;
         }
         function bad_password() {
           var url = "/cgi-bin/index_n.cgi";
           location.replace(url);
          alert("The e-mail address is not valid for this userid.");
          return false;
         }
         function call_cc() {
          var status= document.form1.check_new.checked;
          for (counter = 0; counter < document.form1.product.length; counter++)
           {
           if (document.form1.product[counter].checked)
           var product = document.form1.product[counter].value;
           if(product == "1time"){
           document.cookie = "USAGE=1time";
           document.cookie = "STATUS=" + status;
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=main&refferer=pricing";
           location.replace(url);
           } else {
           var status= document.form1.check_new.checked;
           document.cookie = "STATUS=" + status;
           var url = "https://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=cc_form&product=" + product + "&status=" + status;
           location.replace(url);
         }
         }
         }
         function call_cc2() {
           document.cookie = "USAGE=1time";
           document.cookie = "STATUS=true";
           document.cookie = "CLICK=click";
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=main&refferer=pricing";
           location.replace(url);
         }
         function call_cc3() {
          var status= document.form1.check_new.checked;
          for (counter = 0; counter < document.form1.product.length; counter++)
           {
           if (document.form1.product[counter].checked)
           var product = document.form1.product[counter].value;
           var status= document.form1.check_new.checked;
           document.cookie = "STATUS=" + status;
           var url = "https://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=cc_form&product=" + product + "&status=" + status;
           location.replace(url);
         }
         }
         function go_pricing2() {
         location.replace("/cgi-bin/index_n.cgi?PAGE_TAG=pricing2");

         }
         function back() {
           var url = "/cgi-bin/index_n.cgi";
           location.replace(url);
         }
         function reverse1b() {
           document.form1.check_new.checked=false;
           document.form1.check_renew.checked=true;
         }
         function reverse0a() {
           document.form1.check_new.checked=true;
           document.form1.check_renew.checked=false;
         }
       function loadFocus(){
              document.forms.form1.x_card_num.focus();
                   }
         function verify_data(){
         if(!document.form1.x_card_num.value){
           alert("You must enter a credit card number");
           return false;
           }
         if(!document.form1.x_exp_date.value){
           alert("You must enter a credit card expiration date");
           return false;
           }
         if(!document.form1.x_first_name.value){
           alert("You must enter the first name of the cardholder");
           return false;
           }
         if(!document.form1.x_last_name.value){
           alert("You must enter the last name of the cardholder");
           return false;
           }
         if(!document.form1.x_address.value){
           alert("You must enter the address of the cardholder");
           return false;
           }
         if(!document.form1.x_city.value){
           alert("You must enter the city of the cardholder");
           return false;
           }
         if(!document.form1.x_state.value){
           alert("You must enter the state of the cardholder");
           return false;
           }
         if(!document.form1.x_zip.value){
           alert("You must enter the zip code of the cardholder");
           return false;
           }
         if(!document.form1.x_phone.value){
           alert("You must enter the phone number of the cardholder");
           return false;
           }
         if(!document.form1.x_email.value){
           alert("You must a valid email address");
           return false;
           }
         if(document.form1.x_email.value != document.form1.x_email2.value){
           alert("Re-enter your e-mail address in both entry fields - mismatch");
           return false;
           }
         if(!document.form1.x_login_id.value){
           alert("You must a User Name");
           return false;
           }
           var strng = document.form1.x_login_id.value;
           var illegalChars = /\W/;
         if (illegalChars.test(strng)) {
           alert("The username contains illegal characters.");
           return false;
           }
         }
        function go_there() {
        document.form1.submit();
        }
       function back2() {
                history.go(-1);
         }
       function create_cookie() {
           var ccnum = document.form1.x_card_num.value;
           var ccexp = document.form1.x_exp_date.value; 
           document.cookie = "CCNUM=" + ccnum;
           document.cookie = "CCEXP=" + ccexp;
         }
       function go_password() {
                        if (!document.forms.form1.userid.value) {
                         alert("You must enter a User Name.")
                         return false
                        }
                        if (!document.forms.form1.email.value) {
                         alert("You must enter your e-mail address.")
                         return false
                        }
                        if (!document.forms.form1.oldpass.value) {
                         alert("You must enter your Old Password.")
                         return false
                        }
                        if (!document.forms.form1.password.value) {
                         alert("You must enter your new password.")
                         return false
                        }
                        if (!document.forms.form1.password2.value) {
                         alert("You must re-enter your new password.")
                         return false
                        }
                        if (document.forms.form1.password.value != document.forms.form1.password2.value) {
                         alert("The new passwords do not match.")
                         return false
                        } else {
                var user = document.forms.form1.userid.value;
                var email = document.forms.form1.email.value;
                var oldpass = document.forms.form1.oldpass.value;
                var passwd = document.forms.form1.password.value;
                var passwd2 = document.forms.form1.password2.value;
                var url="/cgi-bin/index_n.cgi?PAGE_TAG=set_password&userid=" + user + "&email=" + email + "&oldpass=" + oldpass + "&passwd=" + passwd + "&password2=" + passwd2;
                location.replace(url);
                }
         }
       function loadFocus2(){
              docGGument.forms.form1.userid.focus();
                   }
         function next_page10(){
                if(document.form1.usage.value != "1time"){var pge="db_cgi";}
                if(document.form1.usage.value == "1time"){var pge="imp_list1";}
                        if (!document.form1.info.value) {
                        var id = document.form1.id.value;
                        var screen = document.form1.screen.value;
                        var expt = "\(PLAIN_LOGO_ONLY\)";
                        var url ="/cgi-bin/index_n.cgi?PAGE_TAGE=" + pge + "&id=" + id + "&screen=expert_imp&remain=" + expt;
                        location.replace(url);
                        } else {
                        if (document.form1.screen.value == "imprint"){
                        var id = document.form1.id.value;
                        var screen = document.form1.screen.value;
                        var expt = document.form1.info.value;
                        var url ="/cgi-bin/index_n.cgi?PAGE_TAGE=" + pge + "&id=" + id + "&screen=expert_imp&remain=" + expt;
                        location.replace(url);
                        } else {
                        if (document.form1.screen.value == ""){
                        var expt = document.form1.info.value;
                        var url ="/cgi-bin/index_n.cgi?PAGE_TAGE=" + pge + "&id=&screen=expert&remain=" + expt;
                        location.replace(url);
                        }
                        }
                        }
         }
       function loadFocus3(){
              document.forms.form1.info.focus();
                   }
         function back() {
           if (document.form1.screen.value == "") {
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=main";
           } else {
                      if (document.form1.screen.value == "imprint") {
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=imprint&id=with";
           }
           }
          location.replace(url);
         }
         function go_purchase() {
           var url = "https://www.drugid.info/cgi-bin/index_n.cgi?PAGE_TAG=cc_form&product=1time";
           location.replace(url);
         }
         function call_fax() {
           var url = "http://www.drugid.info/po_fax.pdf";
           location.replace(url);
         }
function go_pdf_form() {
        if(document.form1.pdf_type.value == "NO"){
           var url = "/cgi-bin/index_n.cgi?PAGE_TAG=pdf_no";
        }
        if(document.form1.pdf_type.value == "POL"){
         var rec = document.forms.form1.rec_num.value;
         document.cookie = "RECORD=" + escape(rec);
         var url = "/cgi-bin/pdf_form.cfm";
        }
        location.replace(url);
}
function access_pdf() {
         var url = "/cgi-bin/index_n.cgi?PAGE_TAG=view_pdf";
        location.replace(url);
}
function getSelectValuePDF(selectObject) {
           var choice = selectObject.options[selectObject.selectedIndex].value;
           document.form1.pdf.value = choice;
           var url="http://www.drugid.info/cgi-bin/launch_pdf.cgi?FILE=" + choice;
           location.replace(url);
}
function back_rpt() {
           url = "/cgi-bin/index_n.cgi";
          location.replace(url);
         }
function next_page_fuzzy() {
                        var id = document.form1.info.value;
                        var url ="/cgi-bin/index_n.cgi?PAGE_TAGE=fuzzy_db&id=" + id;
                         location.replace(url);
         }
function reverseb() {
          document.form1.BrandConvert.checked=false;
          document.form1.GenericConvert.checked=true;
          url = "/cgi-bin/index_n.cgi?PAGE_TAGE=convertb";
          location.replace(url);
         }
function reverseg() {
          document.form1.GenericConvert.checked=false;
          document.form1.BrandConvert.checked=true;
          url = "/cgi-bin/index_n.cgi?PAGE_TAGE=convertg";
          location.replace(url);
         }
function get_fuzzy_detail() {
	var recnum=document.form1.recnum.value;
	var url = "/cgi-bin/index_n.cgi?PAGE_TAGE=fuzzy_detail&rec_num=" + recnum;
	location.replace(url);
document.write(val1);
}
