﻿
function buttonclick(){

 var ButtonSub = document.getElementById('img_submit')
 var Selection = document.getElementById('ddl_Insur').selectedIndex;
 var Zip = document.getElementById('tb_Zip').value;
   
      if(Selection == 0){
            ButtonSub.onclick = location.href='http://myinsuranceexpert.com/health-insurance-quotes-step-1.aspx?zipcode=' + Zip
             }
            else    if (Selection == 1){
          ButtonSub.onclick = location.href='http://myinsuranceexpert.com/health-insurance-quotes-step-1.aspx?zipcode=' + Zip
            }
       
             else   if (Selection == 2){
          
                ButtonSub.onclick = location.href='http://myinsuranceexpert.com/health-insurance-quotes-step-1.aspx?zipcode=' + Zip
                }
       
                else    if (Selection == 3){
                 
                    ButtonSub.onclick = location.href='http://myinsuranceexpert.com/Life-Insurance-Quotes.aspx'
                 
                    }
                    
                      else  if (Selection == 4){
                     
                        ButtonSub.onclick = location.href='http://myinsuranceexpert.com/dentalinsurancequotes.aspx'
               
                        }
                        else if (Selection == 5){
                        ButtonSub.onclick = location.href='http://myinsuranceexpert.com/travelhealthinsurancequotes.aspx'
                     
                        }
                            else if (Selection == 6){
                                ButtonSub.onclick = location.href='http://myinsuranceexpert.com/newimmigranthealthinsurancequotes.aspx'
                             
                            }


}




  
  
  
  