﻿// JScript File
var start
var server = window.location.hostname
//if(server.indexOf("localhost") > -1){
//    start = "http://10.229.232.148"
//} else if(server.indexOf("10.") > -1){
//    start = "http://10.229.232.148"
//} else if(server.indexOf("staging.") > -1){
//    start = "http://staging.wyethallbrands.com"
//} else if(server.indexOf("www.") > -1){
//    start = "http://www.wyethallbrands.com"
//}
function SpecialOffers(){
    window.open("http://www.wyethallbrands.com/special_offers.aspx", "SpecialOffers", "resizable=1,scrollbars=1,status=1s,toolbar=0,menubar=0,location=0,width=650,height=500");
}

function GetCoupon(CouponId){
    var x, y, URL
    x = 750
    y = 500  
    switch(CouponId)
    {
    case 1:
        URL = "https://alavert.wyethcoupons.com/pages/6"
      break;    
    default:
      //Do Nothing
    }
    //The OpenWindow function is in the global.js file
    OpenWindow(URL,x,y)
}

