Possible Duplicate:
JavaScript or-expression in a switch case
case 'att':
   window.location.replace('/att-Forms.htm');
   break;
case 'at&t':
   window.location.replace('/att-Forms.htm');    
   break;
is there a way to shorten this with some kind of "or" function?
Combine the cases
case 'att':
case 'at&t':
    window.location.replace('/att-Forms.htm');    
    break;
                        Just place case statements one after another:
case "att":
case "at&t":
    window.location.replace("/att-Forms.htm");
    break;
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With