function popupApp(hst) { window.open(hst,'ICARD','toolbar=no,width=780,height=550,scrollbars=yes,location=yes,status=yes,resizable=yes'); } function applyOnlineCU(strP,strI,strS,strE) { var hst = "https://www.cardservicesdirect.com.au/AUCRD/ICARD/apps/internet_telephone_application/apply_now.do?S="+strS+"&P="+strP+"&E="+strI; hst = parseOrg(hst); popupApp(hst); } function applyOnline(strP,strI,strS) { var hst = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?s="+ strS+"&p="+strP; var sc = getParameterString(hst, 's'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?p="+l1+strP+"000&s="+ strS; popupApp(hst1); } function apply(strP,strI,strS) { var hst = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?s="+ strS+"&p="+strP; var sc = getParameterString(hst, 's'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?p="+l1+strP+"000&s="+ strS; popupApp(hst1); } function apply12(strP,strI,strS) { var hst = "https://" + location.host + "/global_docs/cards_apply_citigoldcard.htm?Code="+ strS+"&p="+strP; var sc = getParameterString(hst, 'Code'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/global_docs/cards_apply_citigoldcard.htm?Code="+l1+strP+"000&s="+ strS; popupApp(hst1); } function apply13(strP,strI,strS) { var hst = "https://" + location.host + "/CardsOnline/Platinum.htm?Code="+ strS+"&p="+strP; var sc = getParameterString(hst, 'Code'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/CardsOnline/Platinum.htm?Code="+l1+strP+"000&s="+ strS; popupApp(hst1); } function selectProduct(strS,path) { if (path == null) path = "."; hst = path + "/icard_" + strS + ".htm"; popupApp(hst); } function applyQFFopt(strP,strI,strS) { var hst = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?s="+ strS+"&p="+strP+"&T=TQF03&E=LQF01&R=0"; var sc = getParameterString(hst, 's'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?p="+l1+strP+"000&s="+ strS+"&T=TQF03&E=LQF01&R=0"; location.href = hst1; } function applyQFFAgent(Agent,strP,strI,strS) { var hst = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?s="+ strS+"&p="+strP+"&T=TQF02&E=LQF01&R=0&A="+Agent; var sc = getParameterString(hst, 's'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?p="+l1+strP+"000&s="+ strS+"&T=TQF02&E=LQF01&R=0&A="+Agent; popupApp(hst1); } function getParameter(parmeter) { var sli="" var a=top.window.location; str=new String(a) var index = str.indexOf(parmeter); if(index!=-1) { var str1 = str.substring(index); var index1 = str1.indexOf("&"); if (index1 == -1){ var index = str1.indexOf("="); var sli = str1.slice(index+1); } else { var index = str1.indexOf("="); var sli = str1.slice(index+1,index1); } } return sli; } function applyCard(strP,strI){ code=getParameter("code"); apply(strP,strI,code); } function selectCodes(strS,type) { switch(type) { case "gold": hst="/global_docs/icard_Gold.htm?code="+strS; popupApp(hst); break; case "silver": hst="/global_docs/icard_Silver.htm?code="+strS; popupApp(hst); break; case "plat": hst="/global_docs/icard_Platinum.htm?code="+strS; popupApp(hst); break; } } function linkBP(sourcecode) { popupApp("/cardsoffer/offers/BP_select.htm?" + sourcecode); } function applyBP(strS,strA) { var hst = "https://" + location.host + "/AUGCB/ICARD/apps/internet_telephone_application/apply_now.do?s="+ strS+"&p=020&T=TQF04&R="+strA; location.href = parseOrg(hst); } function applyBP1(strS,strA) { var hst = "https://" + location.host + "/AUGCB/ICARD/apps/internet_telephone_application/apply_now.do?s="+ strS+"&p=020&T=TQF05&R="+strA; location.href = parseOrg(hst); } function applyBP3(strS,strA,strB) { var hst = "https://" + location.host + "/AUGCB/ICARD/apps/internet_telephone_application/apply_now.do?s="+ strS+"&p=020&T=TQF05&R="+strA+"&A="+strB; location.href = parseOrg(hst); } function applyOnlineBP(strS,strA) { var hst = "https://" + location.host + "/AUGCB/ICARD/apps/internet_telephone_application/apply_now.do?s="+strS+"&p=020&T=TQF04&A="+strA; hst = parseOrg(hst); popupApp(hst); } function applyPersonal(strP,strI){ code=getParameter("PLSC"); applyOnline(strP,strI,code); } function applyReady1(strP,strI){ code=getParameter("RC"); applyOnline(strP,strI,code); } function parseOrg(urlString) { var sc = getParameterString(urlString, 'S'); var scType = sc.charAt(0); if (scType == '6') { //PIL urlString += '&O=650'; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF urlString += '&O=222'; } else { //Cards urlString += '&O=111'; } return urlString; } function getParameterString(urlString, parmeter) { var sli="" var index = urlString.indexOf(parmeter); if(index!=-1) { var str1 = urlString.substring(index); var index1 = str1.indexOf("&"); if (index1 == -1){ var index = str1.indexOf("="); var sli = str1.slice(index+1); } else { var index = str1.indexOf("="); var sli = str1.slice(index+1,index1); } } return sli; } function applyOnlineCI(strP,strI,strS,strE) { var hst = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?s="+ strS+"&p="+strP+"&E="+strE; var sc = getParameterString(hst, 'S'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?p="+l1+strP+"000&s="+ strS+"&E="+strE; popupApp(hst1); } function applyOnlineFrQFF(strP,strI,strS,strT,strE) { var urlquery = location.href.split("?"); if (urlquery.length == 1) urlquery[1] = ''; var hst = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?s="+ strS+"&p="+strP; var sc = getParameterString(hst, 's'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?p="+l1+strP+"000&s="+strS+"&T="+strT+"&E="+strE+"&R="+urlquery[1]; popupApp(hst1); hst = parseOrg(hst); top.location = hst } function applyOnline2(strP,strI,strS) { var urlquery = location.href.split("?"); if (urlquery.length == 1) urlquery[1] = ''; var hst = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?s="+ strS+"&p="+strP; var sc = getParameterString(hst, 's'); var scType = sc.charAt(0); var l1; if (scType == '6') { //PIL l1= 650; } else if (scType == 'V' || scType == 'R' || scType == 'A' || scType == 'Q') { //PC, RC, DCCL, QFF l1= 222; } else { //Cards l1= 111; } var hst1 = "https://" + location.host + "/AUGCB/ICARD/appnew/getApplyNow.do?p="+l1+strP+"000&s="+strS+"&I="+strI+"&T=TQF01&E=LQF01&R="+urlquery[1]; popupApp(hst1); } function applyOnlineFRTM(strP,strI,strS) { if (intronum=validAgentCode()) { if(strp=='650'&&strI=='PLV001'){ var x=location.host; var hst = "https://"+x+"/global_docs/kana/kana_PIL_form.htm?F=AU_ONL_APP&p="+strP+"&s="+strS+"&I="+strI+"&T=TAG01&A="+intronum; } else{ var hst = "https://" + location.host + "/AUGCB/ICARD/apps/internet_telephone_application/apply_now.do?p="+strP+"&s="+strS+"&T=TAG01&A="+intronum; } hst = parseOrg(hst); window.open(hst,'ICARD','toolbar=no,width=780,height=550,scrollbars=yes,location=yes,status=yes,resizable=yes'); } } function applyOnlineFRFM(strP,strI,strS,strE,strT,strA,strR) { var hst = "https://" + location.host + "/AUGCB/ICARD/apps/internet_telephone_application/apply_now.do?s="+ strS+"&p="+strP+"&E="+strE+"&T="+ strT+"&A="+strA+"&R="+strR; hst = parseOrg(hst); popupApp(hst); } function applyOnlineRCPIL(strP,strI,strS,strT,strA) { var hst = "https://" + location.host + "/AUGCB/ICARD/apps/internet_telephone_application/apply_now.do?s="+ strS+"&p="+strP+"&T="+ strT+"&A="+strA; hst = parseOrg(hst); popupApp(hst); }