var bProduction = false;
var sCurLoc = document.location.href;

sCurLoc = sCurLoc.substring(0, sCurLoc.indexOf("/", 10));
if ((sCurLoc == "https://www.smartone-vodafone.com") || (sCurLoc == "http://www.smartone-vodafone.com") || (sCurLoc == "http://smartone-vodafone.com") || (sCurLoc == "http://www.smartonevodafone.com.hk") || (sCurLoc == "http://smartonevodafone.com.hk") || (sCurLoc == "http://www.smartonevodafone.com") || (sCurLoc == "http://smartonevodafone.com") || (sCurLoc == "http://www.smartone.com.hk") || (sCurLoc == "http://smartone.com.hk") || (sCurLoc == "http://www.smartone-vodafone.com.hk") || (sCurLoc == "http://smartone-vodafone.com.hk")) {
	bProduction = true;
}
function PopUpNoScroll(sURL, sWinName, iWidth, iHeight) {
     var sStr;
     sStr = "width=" + iWidth + ",height=" + iHeight + ",left=0,top=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,fullscreen=no";
     var newwin = window.open(sURL, sWinName, sStr);
     newwin.focus();
}

function PopUp(sURL, sWinName, iWidth, iHeight, bMenu) {
     var sStr;
     if (bMenu) {
           sStr = "width=" + iWidth + ",height=" + iHeight + ",left=0,top=0,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no";
     } else {
           sStr = "width=" + iWidth + ",height=" + iHeight + ",left=0,top=0,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,fullscreen=no";
     }
     var newwin = window.open(sURL, sWinName, sStr);
     newwin.focus();
}

function PopUpWithStatus(sURL, sWinName, iWidth, iHeight, bMenu) {
     var sStr;
     if (bMenu) {
           sStr = "width=" + iWidth + ",height=" + iHeight + ",left=0,top=0,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no";
     } else {
           sStr = "width=" + iWidth + ",height=" + iHeight + ",left=0,top=0,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no,fullscreen=no";
     }
     var newwin = window.open(sURL, sWinName, sStr);
     newwin.focus();
}

function PopUpNew(sURL, sWinName, bMenu) {
     var sStr;
     if (bMenu) {
           sStr = ",left=0,top=0,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no";
     } else {
           sStr = ",left=0,top=0,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,fullscreen=no";
     }
     var newwin = window.open(sURL, sWinName, sStr);
     newwin.focus();
}

// ++++++++++++++++++++++++++++++
// eNewsletter
function PopUpeNews(sURL) {
	PopUpWithStatus(sURL, "eNews", 600, 530, true);
}

// ++++++++++++++++++++++++++++++
// Pets World, Pets Show
function PopUpPetsShow() {
	PopUp("http://pets.smartone-vodafone.com/petshow/html/cn_index.htm", "PetsShow", 780, 530, true);
}

// iShow
function PopUpiShow() {
	PopUp("http://www.ishow.com.hk/i/?lang=zh", "ishow", 780, 530, true);
}

// Send SMS
function PopUp_SendSMS() {
	PopUp("http://smartmail.smartone-vodafone.com/smsonline/login.php?lang=C", "SendSMS", 780, 530, true);
}

// SMS via email - registration
function PopUp_SVE_Register() {
	if (bProduction) {
		PopUp("https://myaccount.smartone-vodafone.com/i-sub/sve_reqpin.jsp", "SVERegister", 780, 530, true);
	} else {
		PopUp("http://cagora/i-sub/sve_reqpin_test.jsp", "SVERegister", 780, 530, true);
	}
}

// Vodafone Business Email - registration
function PopUp_VBE_Register() {
	if (bProduction) {
		PopUp("https://myaccount.smartone-vodafone.com/i-sub/emg_reqpin.jsp", "VBERegister", 780, 530, true);
	} else {
		PopUp("http://cagora/i-sub/emg_reqpin_test.jsp", "VBERegister", 780, 530, true);
	}
}

// Mega Recharge
function PopUp_MegaRecharge() {
	if (bProduction) {
		PopUp("https://myaccount.smartone-vodafone.com/irn_c.htm", "MegaRecharge", 780, 530, true);
	} else {
		PopUp("http://myastage.smartone-vodafone.com/irn_c.htm", "MegaRecharge", 780, 530, true);
	}
}

// IDD Recharge
function PopUp_IDDRecharge() {
	if (bProduction) {
		PopUp("https://myaccount.smartone-vodafone.com/ir_c.htm", "IDDRecharge", 780, 530, true);
	} else {
		PopUp("http://myastage.smartone-vodafone.com/ir_c.htm", "IDDRecharge", 780, 530, true);
	}
}

// PayGo
function PopUp_PayGoRecharge() {
	if (bProduction) {
		PopUp("https://myaccount.smartone-vodafone.com/irt_c.htm", "PayGoRecharge", 780, 530, true);
	} else {
		PopUp("http://myastage.smartone-vodafone.com/irt_c.htm", "PayGoRecharge", 780, 530, true);
	}
}

// Value Talk
function PopUp_ValueTalkRecharge() {
	if (bProduction) {
		PopUp("https://myaccount.smartone-vodafone.com/irv_c.htm", "ValueTalkRecharge", 780, 530, true);
	} else {
		PopUp("http://myastage.smartone-vodafone.com/irv_c.htm", "ValueTalkRecharge", 780, 530, true);
	}
}

// Good Talk
function PopUp_GoodTalkRecharge() {
	if (bProduction) {
		PopUp("https://myaccount.smartone-vodafone.com/irg_c.htm", "GoodTalkRecharge", 780, 530, true);
	} else {
		PopUp("http://caguat.smartone-vodafone.com/irg_c.htm", "GoodTalkRecharge", 780, 530, true);
	}
}

// Phonebook Backup
function PopUpPhonebookBackup() {
	if (bProduction) {
		PopUp("https://phonebook.smartone-vodafone.com/Login_c.jsp", "PhoneBook", 790, 530, true);
	} else {
		PopUp("http://202.140.94.69/Login_c.jsp", "PhoneBook", 790, 530, true);
	}
}

// DeveloperForum
function PopUpDeverloperForum() {
	if (bProduction) {
		PopUp("https://capf.smartone-vodafone.com", "DeveloperForum", 780, 530, true);
	} else {
		PopUp("http://developerforumdev.smartone.com.hk/jsp/submit.jsp?service=submit", "DeveloperForum", 780, 530, true);
	}
}

// ++++++++++++++++++++++++++++++
function Highlightbox(lang, dlItem, L1, L2, L3, L4, brand, model, clipHt, resizeMe) {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=" + lang + "&dlItem=" + dlItem + "&L1=" + L1 + "&L2=" + L2 + "&L3=" + L3 + "&L4=" + L4 + "&brand=" + brand + "&model=" + model+ "&clipHt=" + clipHt+ "&resizeMe=" + resizeMe, "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=" + lang + "&dlItem=" + dlItem + "&L1=" + L1 + "&L2=" + L2 + "&L3=" + L3 + "&L4=" + L4 + "&brand=" + brand + "&model=" + model+ "&clipHt=" + clipHt+ "&resizeMe=" + resizeMe, "DownloadZone", 780, 530, false);
	}
}

// Download Zone Main Page
function PopUpDownloadZone() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Wallpaper
function PopUpDownloadZone_Wallpaper() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=wallpaper&brand=&model=", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=wallpaper&brand=&model=", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Wallpaper with Hardcode Handset
function PopUpDownloadZone_Wallpaper_Direct() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=wallpaper&L1=wallpaper&L2=animecartoon&L3=onionclub&L4=&brand=Sharp&model=SX633&clipHt=1365.1&resizeMe=no&revamp=true", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=wallpaper&L1=wallpaper&L2=animecartoon&L3=onionclub&L4=&brand=Sharp&model=SX633&clipHt=1365.1&resizeMe=no&revamp=true", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Wallpaper with Hardcode Handset
function PopUpDownloadZone_Wallpaper_Go(sL1, sL2, sL3, sL4) {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=wallpaper&L1=" + sL1 + "&L2=" + sL2 + "&L3=" + sL3 + "&L4=" + sL4 + "&brand=Sharp&model=SX633&clipHt=1365.1&resizeMe=no&revamp=true", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=wallpaper&L1=" + sL1 + "&L2=" + sL2 + "&L3=" + sL3 + "&L4=" + sL4 + "&brand=Sharp&model=SX633&clipHt=1365.1&resizeMe=no&revamp=true", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Wallpaper Sport Star
function PopUpDownloadZone_Wallpaper_SS() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=wallpaper&L1=wallpaper&L2=popstars&L3=p&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=wallpaper&L1=wallpaper&L2=popstars&L3=p&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - RingTone
function PopUpDownloadZone_RingTone() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=ringtone", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=ringtone", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - RingTone with Hardcode Handset
function PopUpDownloadZone_RingTone_Direct() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=ringtone&L1=polyphonic&L2=chinesemusic&L3=topartists&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=ringtone&L1=polyphonic&L2=chinesemusic&L3=topartists&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - RingTone Sport Star
function PopUpDownloadZone_RingTone_SS() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=ringtone&L1=polyphonic&L2=others&L3=footballmania&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=ringtone&L1=polyphonic&L2=others&L3=footballmania&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - RingSong
function PopUpDownloadZone_RingSong() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=truetone", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=truetone", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - RingSong with Hardcode Handset
function PopUpDownloadZone_RingSong_Direct() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=truetone&L1=ringsongexpress&L2=&L3=&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=truetone&L1=ringsongexpress&L2=&L3=&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - MMS ecard
function PopUpDownloadZone_MMS() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=mms&brand=&model=", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=mms&brand=&model=", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - MMS ecard with Hardcode Handset
function PopUpDownloadZone_MMS_Direct() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=mms&L1=mmsecard&L2=lovemissyou&L3=sanrioworld&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=mms&L1=mmsecard&L2=lovemissyou&L3=sanrioworld&L4=&brand=Sharp&model=SX633", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Full Song
function PopUpDownloadZone_MP3() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=mp3&brand=&model=", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=mp3&brand=&model=", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Singer Song Writer Section
function PopUpDownloadZone_SingerSongWriter() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=mp3&brand=Sharp&model=SX633&L1=singersongwritercollection", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=mp3&brand=Sharp&model=SX633&L1=singersongwritercollection", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Music Video
function PopUpDownloadZone_MV() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=mv&brand=&model=", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=mv&brand=&model=", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - Music Video - Live Concert
function PopUpDownloadZone_MV_Concert() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=mv&brand=Sharp&model=SX633&L1=liveconcertfootage&L2=&L3=&L4=", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=mv&brand=Sharp&model=SX633&L1=liveconcertfootage&L2=&L3=&L4=", "DownloadZone", 780, 530, false);
	}
}

// Download Zone - My connecting tone
function PopUpDownloadZone_MYCT() {
	if (bProduction) {
		PopUpWithStatus("https://download.smartone-vodafone.com/jsp/main.jsp?sLang=chi&dlItem=myct", "DownloadZone", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/main.jsp?sLang=chi&dlItem=myct", "DownloadZone", 780, 530, false);
	}
}

// ++++++++++++++++++++++++++++++
// Game Shock Teens
function PopUpTeensGame() {
	if (bProduction) {
		PopUpWithStatus("https://game.smartone-vodafone.com/jsp/GS2_tchinese/index.jsp?ts=t", "GameShock", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/GS2_tchinese/index.jsp?ts=t", "GameShock", 800, 660, false);
	}
}

// ++++++++++++++++++++++++++++++
// Game Shock
function PopUpGameShock() {
	if (bProduction) {
		PopUpWithStatus("https://game.smartone-vodafone.com/jsp/GS2_tchinese/index.jsp", "GameShock", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/GS2_tchinese/index.jsp", "GameShock", 800, 660, false);
	}
}

function PopUpGameShock_Game(sGID) {
	if (bProduction) {
		PopUpWithStatus("https://game.smartone-vodafone.com/jsp/GS2_tchinese/game_details.jsp?gid=" + sGID, "GameShock", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/GS2_tchinese/game_details.jsp?gid=" + sGID, "GameShock", 800, 660, false);
	}
}

function PopUpGameShock_home() {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_gameshock.html?dest_url=" + escape("https://game.smartone-vodafone.com/jsp/GS2_tchinese/index.jsp"), "GameShock", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_gameshock.html?dest_url=" + escape("http://202.140.96.137/jsp/GS2_tchinese/index.jsp"), "GameShock", 800, 660, false);
	}
}
function PopUpGameShock_Game_home(sGID) {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_gameshock_game.html?dest_url=" + escape("https://game.smartone-vodafone.com/jsp/GS2_tchinese/game_details.jsp?gid=" + sGID), "GameShock", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_gameshock_game.html?dest_url=" + escape("http://202.140.96.137/jsp/GS2_tchinese/game_details.jsp?gid=" + sGID), "GameShock", 800, 660, false);
	}
}

function PopUpGameShock_Capcom() {
	if (bProduction) {
		PopUpWithStatus("https://game.smartone-vodafone.com/jsp/GS2_tchinese/game_listing.jsp?ts=f&l1=3&brd=&mod=&hsg=00&cat=M2_game_Capcomgsxmonthly|M2_game_Capcom", "GameShock", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/GS2_tchinese/game_listing.jsp?ts=f&l1=3&brd=&mod=&hsg=00&cat=M2_game_Capcomgsxmonthly|M2_game_Capcom", "GameShock", 800, 660, false);
	}
}

function PopUpGameShock_Namco() {
	if (bProduction) {
		PopUpWithStatus("https://game.smartone-vodafone.com/jsp/GS2_tchinese/game_listing.jsp?ts=f&l1=3&brd=&mod=&hsg=00&cat=M2_game_Namco", "GameShock", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/GS2_tchinese/game_listing.jsp?ts=f&l1=3&brd=&mod=&hsg=00&cat=M2_game_Namco", "GameShock", 800, 660, false);
	}
}

// Game Shock - GSX
function PopUpGameShock_GSX() {
	PopUpGameShock();
}

// Game Shock - Java Games
function PopUpGameShock_JAVA() {
	PopUpGameShock();
}

// Game Shock - 3D Games
function PopUpGameShock_3D() {
	PopUpGameShock();
}

// Game Shock - Mobile Online Game
function PopUpMobileOnlineGame() {
	PopUpGameShock();
}

// Game Shock - Who R U
function PopUpWhoRU() {
	if (bProduction) {
		PopUpWithStatus("https://game.smartone-vodafone.com/jsp/GS2_tchinese/pg_whoru.jsp?l1=3", "GameShock", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/GS2_tchinese/pg_whoru.jsp?l1=3", "GameShock", 780, 530, false);
	}
}

// Game Shock - Pocket Kingdom
function PopUpPocketKindgom() {
	PopUpGameShock();
}

// ++++++++++++++++++++++++++++++
// Teens Music
function PopUpTeensMusic() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/main.jsp?ts=t", "TeensMusic", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/main.jsp?ts=t", "TeensMusic", 800, 660, false);
	}
}
function PopUpTeensMusic_Top() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/mn_listing.jsp?ts=t&l1=topcharts&l2=topmusicdownloads&t=0&cat=E1_chart_dl_local", "TeensMusic", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/mn_listing.jsp?ts=t&l1=topcharts&l2=topmusicdownloads&t=0&cat=E1_chart_dl_local", "TeensMusic", 800, 660, false);
	}
}
function PopUpTeensMusicbox() {
	if (bProduction) {
		PopUpWithStatus("http://download.musicbox.com.hk/teens/jsp/MusicBox/chinese/index.jsp", "TeensMusicBox", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/MusicBox/chinese/index.jsp", "TeensMusicBox", 780, 530, false);
	}
}

// ++++++++++++++++++++++++++++++
// MOMP
function PopUpMOMP() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/main.jsp", "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/main.jsp", "MOMP", 800, 660, false);
	}
}
function PopUpMOMP_CNT() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/dz_listing.jsp?category=M5_chart_cnt&type=_ctone&hg=all&lang=eng&ts=f&l1=contenttype&l2=connectingtone&l3=tophits&l4=&l5=&brd=&mod=&hsg=all", "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/dz_listing.jsp?category=M5_chart_cnt&type=_ctone&hg=all&lang=eng&ts=f&l1=contenttype&l2=connectingtone&l3=tophits&l4=&l5=&brd=&mod=&hsg=all", "MOMP", 800, 660, false);
	}
}
function PopUpMOMP_RS() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/dz_listing.jsp?category=E1_prerelease&type=truetone&hg=all&hsgroup=&lang=eng&ts=f&l1=contenttype&l2=ringsong&l3=ringsongexpress&l4=&l5=&brd=&mod=&hsg=all", "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/dz_listing.jsp?category=E1_prerelease&type=truetone&hg=all&hsgroup=&lang=eng&ts=f&l1=contenttype&l2=ringsong&l3=ringsongexpress&l4=&l5=&brd=&mod=&hsg=all", "MOMP", 800, 660, false);
	}
}
function PopUpMusicNow_Top() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/mn_listing.jsp?l1=topcharts&l2=topmusicdownloads&t=0&cat=E1_chart_dl_local", "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/mn_listing.jsp?l1=topcharts&l2=topmusicdownloads&t=0&cat=E1_chart_dl_local", "MOMP", 800, 660, false);
	}
}

function PopUpMusicFansZone() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/music_events.jsp?l1=fanzone&l2=upcomingmusicevents", "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/music_events.jsp?l1=fanzone&l2=upcomingmusicevents", "MOMP", 800, 660, false);
	}
}

function PopUpMediabox() {
	if (bProduction) {
		PopUpWithStatus("https://music.smartone-vodafone.com/jsp/Music_tchinese/mediabox.jsp?l1=mediabox", "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Music_tchinese/mediabox.jsp?l1=mediabox", "MOMP", 800, 660, false);
	}
}
function PopUpMOMP_Link(sURL) {
	PopUpWithStatus(sURL, "MOMP", 800, 660, false);
}
function PopUpMusicNow_CNT_home() {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_ctone.html?dest_url=" + escape("https://music.smartone-vodafone.com/jsp/Music_tchinese/dz_listing.jsp?category=M5_chart_cnt&type=_ctone&hg=all&lang=eng&ts=f&l1=contenttype&l2=connectingtone&l3=tophits&l4=&l5=&brd=&mod=&hsg=all"), "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_ctone.html?dest_url=" + escape("http://202.140.96.137/jsp/Music_tchinese/dz_listing.jsp?category=M5_chart_cnt&type=_ctone&hg=all&lang=eng&ts=f&l1=contenttype&l2=connectingtone&l3=tophits&l4=&l5=&brd=&mod=&hsg=all"), "MOMP", 800, 660, false);
	}
}
function PopUpMusicNow_CNT_SongName_home(sURL) {
	PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_ctone_songname.html?dest_url=" + escape(sURL), "MOMP", 800, 660, false);
}
function PopUpMusicNow_CNT_SingerName_home(sURL) {
	PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_ctone_singername.html?dest_url=" + escape(sURL), "MOMP", 800, 660, false);
}
function PopUpMusicNow_RS_home() {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_rs.html?dest_url=" + escape("https://music.smartone-vodafone.com/jsp/Music_tchinese/dz_listing.jsp?category=E1_prerelease&type=truetone&hg=all&hsgroup=&lang=eng&ts=f&l1=contenttype&l2=ringsong&l3=ringsongexpress&l4=&l5=&brd=&mod=&hsg=all"), "MOMP", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_rs.html?dest_url=" + escape("http://202.140.96.137/jsp/Music_tchinese/dz_listing.jsp?category=E1_prerelease&type=truetone&hg=all&hsgroup=&lang=eng&ts=f&l1=contenttype&l2=ringsong&l3=ringsongexpress&l4=&l5=&brd=&mod=&hsg=all"), "MOMP", 800, 660, false);
	}
}
function PopUpMusicNow_RS_SongName_home(sURL) {
	PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_rs_songname.html?dest_url=" + escape(sURL), "MOMP", 800, 660, false);
}
function PopUpMusicNow_RS_SingerName_home(sURL) {
	PopUpWithStatus("/RedirectPages/tchinese/site_musicnow_rs_singername.html?dest_url=" + escape(sURL), "MOMP", 800, 660, false);
}

// ++++++++++++++++++++++++++++++
// MusicXS
function PopUpMusicXS_home() {
	PopUpWithStatus("/RedirectPages/tchinese/site_musicxs.html", "MusicXS", 800, 660, false);
}


// ++++++++++++++++++++++++++++++
// HomePhone+
function PopUpHomePhone_home() {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus.html?dest_url=" + escape("http://www.homephoneplus.com/jsp/tchinese/index.jsp"), "HomePhone", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus.html?dest_url=" + escape("http://homeplusdev.smartone-vodafone.com/jsp/tchinese/index.jsp"), "HomePhone", 800, 660, false);
	}
}
function PopUpHomePhone_Offer1_home(sURL) {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_offer1.html?dest_url=" + escape("http://www.homephoneplus.com" + sURL), "HomePhone", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_offer1.html?dest_url=" + escape("http://homeplusdev.smartone-vodafone.com" + sURL), "HomePhone", 800, 660, false);
	}
}
function PopUpHomePhone_Offer2_home(sURL) {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_offer2.html?dest_url=" + escape("http://www.homephoneplus.com" + sURL), "HomePhone", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_offer2.html?dest_url=" + escape("http://homeplusdev.smartone-vodafone.com" + sURL), "HomePhone", 800, 660, false);
	}
}
function PopUpHomePhone_Com_Better() {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_com_better.html?dest_url=" + escape("http://www.homephoneplus.com/jsp/tchinese/index.jsp"), "HomePhone", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_com_better.html?dest_url=" + escape("http://homeplusdev.smartone-vodafone.com/jsp/tchinese/index.jsp"), "HomePhone", 800, 660, false);
	}
}
function PopUpHomePhone_Business() {
	if (bProduction) {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_business.html?dest_url=" + escape("http://www.homephoneplus.com/jsp/tchinese/index.jsp"), "HomePhone", 800, 660, false);
	} else {
		PopUpWithStatus("/RedirectPages/tchinese/site_homephoneplus_business.html?dest_url=" + escape("http://homeplusdev.smartone-vodafone.com/jsp/tchinese/index.jsp"), "HomePhone", 800, 660, false);
	}
}

// ++++++++++++++++++++++++++++++
// EzPay
function PopUpEzPay(mySec) {
	if (mySec!="index"){
		if ((mySec=="buy")||(mySec=="shop")) {
			if (bProduction) {
				PopUpWithStatus("https://ezpay.smartone-vodafone.com/jsp/EzPay/html/tchinese/vou_map.jsp?req="+mySec, "EzPay", 800, 530, false);
				} else {
				PopUpWithStatus("http://webstage1.smartone-vodafone.com/jsp/EzPay/html/tchinese/vou_map.jsp?req="+mySec, "EzPay", 800, 530, false);
			}
		} else {
			if (bProduction) {
				PopUpWithStatus("https://ezpay.smartone-vodafone.com/jsp/EzPay/html/tchinese/"+mySec+".jsp", "EzPay", 800, 530, false);
			} else {
				PopUpWithStatus("http://webstage1.smartone-vodafone.com/jsp/EzPay/html/tchinese/"+mySec+".jsp", "EzPay", 800, 530, false);
			}
		}
	}
}

// ++++++++++++++++++++++++++++++
// Called by Music Pages
function ChooseHandset() {
	document.location.href="/jsp/SmarTone_iN/music/tchinese/index.jsp";
}

// ++++++++++++++++++++++++++++++
// Holdings
function PopUpHoldings() {
	if (bProduction) {
		PopUpWithStatus("http://www.smartone.com.hk/jsp/tchinese/index.jsp", "Holdings", 780, 530, true);
	} else {
		PopUpWithStatus("http://webstage4.smartone.com.hk/jsp/tchinese/index.jsp", "Holdings", 780, 530, true);
	}
}

function PopUpIR() {
	if (bProduction) {
		PopUpWithStatus("http://www.smartone.com.hk/jsp/smc_investor/results/tchinese/index.jsp", "Holdings", 780, 530, true);
	} else {
		PopUpWithStatus("http://webstage4.smartone.com.hk/jsp/smc_investor/results/tchinese/index.jsp", "Holdings", 780, 530, true);
	}
}

// ++++++++++++++++++++++++++++++
// Mobile Broadband
function PopUpMBB_Customer() {
	if (bProduction) {
		PopUpWithStatus("https://www.smartone-vodafone.com/jsp/business/mobilebroadband/html/tchinese/login.jsp?LoginType=BAL", "MBB", 790, 530, false);
	} else {
		PopUpWithStatus("http://webstage1.smartone-vodafone.com/jsp/business/mobilebroadband/html/tchinese/login.jsp?LoginType=BAL", "MBB", 790, 530, false);
	}
}

function PopUpMBB_Admin() {
	if (bProduction) {
		PopUpWithStatus("https://roamingtopup.smartone-vodafone.com/roam/login.jsp", "MBB", 790, 530, false);
	} else {
		PopUpWithStatus("http://omuat/roam/login.jsp", "MBB", 790, 530, false);
	}
}

// ++++++++++++++++++++++++++++++
// Bookmark-Sync
function PopUpBookmarkSync() {
	if (bProduction) {
		PopUpWithStatus("http://bookmark.smartone-vodafone.com/jsp/IOM/chinese/index.jsp", "bookmark", 780, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/logodownload/IOM/chinese/index.jsp", "bookmark", 780, 530, false);
	}
}

// ++++++++++++++++++++++++++++++
// Vboxx
function PopUpVboxx() {
	if (bProduction) {
		PopUpWithStatus("https://www.vboxx.hk/jsp/Video/main.jsp?sLang=chi", "vboxx", 800, 530, false);
	} else {
		PopUpWithStatus("http://202.140.96.137/jsp/Video/main.jsp?sLang=chi", "vboxx", 800, 530, false);
	}
}
//+++++++++++++++++++++
function PopBlackberryBoldDemo() {
		window.open("/BlackBerry-Bold/index_c.html", "demo", "width=1015,height=600,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no,fullscreen=no");
	}
//++++++++++++++++++++++++++
//bb storm video - Apr 20
function popBBvideo(whichVideo) {
	window.open("/jsp/phone/bbvideo.jsp?video="+whichVideo, "bbVideo", "width=640,height=398,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,fullscreen=no");
}
//end bb storm video - Apr 20

// ++++++++++++++++++++++++++++++
// J COMICS
function PopUpJCOMICS() {
	if (bProduction) {
		PopUpWithStatus("http://www.smartone-vodafone.com/jsp/jcomics/tchinese/index.jsp", "JCOMICS", 930, 780, false);
	} else {
		PopUpWithStatus("http://webstage1.smartone-vodafone.com/jsp/jcomics/tchinese/index.jsp", "JCOMICS", 930, 780, false);
	}
}