function DGE (id){ return document.getElementById(id); } function enableFormat() { document.getElementById("DownloadMode").disabled = (!document.getElementById("downloadChkBox").checked); } //This function is used to set the value of the hidden variable downloadMode. function setDownloadMode(downloadOptionvalue) { document.forms[0].downloadMode.value = downloadOptionvalue; } function submitPage(action, page) { document.forms[0].action = action; document.forms[0].pageNum.value = page; document.forms[0].submit(); } function popWindowHelp(thefile) { var popWindow = window.open(thefile, 'popWindow', 'toolbar=no,width=800,height=400,directories=no,status=no,scrollbars=no,resizable=yes,menubar=no'); browserName = navigator.appName; if (browserName == "Netscape") { popWindow.focus(); } } function popWindowSized(thefile,theWidth,theHeight) { var winl = (screen.width - theWidth) / 2; var wint = (screen.height - theHeight) / 2; winprops = 'toolbar=no,width='+theWidth+',height='+theHeight+',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,top='+wint+',left='+winl; var popWindow = window.open(thefile, 'popWindow', winprops); browserName = navigator.appName; if (browserName == "Netscape") { popWindow.focus(); } } function popWindowSized(thefile,theWidth,theHeight) { var winl = (screen.width - theWidth) / 2; var wint = (screen.height - theHeight) / 2; winprops = 'toolbar=no,width='+theWidth+',height='+theHeight+',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,top='+wint+',left='+winl; var popWindow = window.open(thefile, 'popWindow', winprops); browserName = navigator.appName; if (browserName == "Netscape") { popWindow.focus(); } } function checkDate() { var list = document.forms[0].dateRange; var listValue = list.options[list.selectedIndex].value; if (listValue != "Custom") { dateArray = new Array(); fromDate = new Array(); toDate = new Array(); dateArray = document.getElementById("dateRange").value.split("+"); fromDate = dateArray[0].split(" "); fromTime = fromDate[1].split(":"); fromDate = fromDate[0].split("-"); toDate = dateArray[1].split(" "); toTime = toDate[1].split(":"); toDate = toDate[0].split("-"); document.getElementById("fromYear").value = fromDate[0]; document.getElementById("fromMonth").value = fromDate[1]; document.getElementById("fromDate").value = fromDate[2]; document.getElementById("fromHour").value = fromTime[0]; document.getElementById("fromMinute").value = fromTime[1]; document.getElementById("fromSecond").value = fromTime[2]; document.getElementById("toYear").value = toDate[0]; document.getElementById("toMonth").value = toDate[1]; document.getElementById("toDate").value = toDate[2]; document.getElementById("toHour").value = toTime[0]; document.getElementById("toMinute").value = toTime[1]; document.getElementById("toSecond").value = toTime[2]; disableDates(); } else if (listValue == "Custom") { enableDates(); setDateToday(document.forms[0].fromYear,document.forms[0].fromMonth,document.forms[0].fromDate); setDateToday(document.forms[0].toYear,document.forms[0].toMonth,document.forms[0].toDate); } } function setCustom() { document.getElementById("dateRange").value = "Custom"; } function checkAll(namePrefix) { var counter; var formElements = document.body.getElementsByTagName("input"); var matchName = new RegExp(namePrefix); for (counter = 0; counter < formElements.length; counter++) { if (formElements[counter].name.match(matchName)) { formElements[counter].checked = true; } } } function checkNone(namePrefix) { var counter; var formElements = document.body.getElementsByTagName("input"); var matchName = new RegExp(namePrefix); for (counter = 0; counter < formElements.length; counter++) { if (formElements[counter].name.match(matchName)) { formElements[counter].checked = false; } } } function otherCodeCheck() { if (document.getElementById("resultCode").value != "resultCode4") { document.getElementById("customRangeCode").disabled = true; document.getElementById("customRangeCode").style.backgroundColor = '#f0f0f0'; } else { document.getElementById("customRangeCode").disabled = false; document.getElementById("customRangeCode").style.backgroundColor = '#ffffff'; } } function gotoTemplate() { var counter; var templateButtons = document.forms[0].selecttemplate; var templateName; for (counter = 0; counter < templateButtons.length; counter++) { if (templateButtons[counter].checked) { templateName = templateButtons[counter].value; } } switch (templateName) { case "dailyactivity": window.location = "standard.jsp"; break; case "tranxsummary": window.location = "tranxSummary.jsp"; break; case "settlement": window.location = "settlement.jsp"; break; case "shippingbilling": window.location = "shippingBilling.jsp"; break; case "batchid": window.location = "batchID.jsp"; break; case "payflowlink": window.location = "payFlowLink.jsp"; break; case "fraudprotection": window.location = "fraudProtection.jsp"; break; case "buyerauth": window.location = "buyerAuth.jsp"; break; case "filterscorecard": window.location = "filterScorecard.jsp"; break; case "recurringbilling": window.location = "recurringBilling.jsp"; break; case "customreport": window.location = "customReport.jsp"; break; } } function disableDateRange() { document.getElementById("dateRange").disabled = true; document.getElementById("fromMonth").disabled = true; document.getElementById("fromDate").disabled = true; document.getElementById("fromYear").disabled = true; document.getElementById("fromHour").disabled = true; document.getElementById("fromMinute").disabled = true; document.getElementById("fromSecond").disabled = true; document.getElementById("toMonth").disabled = true; document.getElementById("toDate").disabled = true; document.getElementById("toYear").disabled = true; document.getElementById("toHour").disabled = true; document.getElementById("toMinute").disabled = true; document.getElementById("toSecond").disabled = true; } function enableDateRange() { document.getElementById("dateRange").disabled = false; document.getElementById("fromMonth").disabled = false; document.getElementById("fromDate").disabled = false; document.getElementById("fromYear").disabled = false; document.getElementById("fromHour").disabled = false; document.getElementById("fromMinute").disabled = false; document.getElementById("fromSecond").disabled = false; document.getElementById("toMonth").disabled = false; document.getElementById("toDate").disabled = false; document.getElementById("toYear").disabled = false; document.getElementById("toHour").disabled = false; document.getElementById("toMinute").disabled = false; document.getElementById("toSecond").disabled = false; } function updateSearchForm() { var whichSearch = document.getElementById("searchType").value; switch (whichSearch) { case "transactionID": document.getElementById("searchText").innerHTML = "Transaction ID:"; document.getElementById("searchHelp").innerHTML = " "; disableDateRange(); break; case "batchID": document.getElementById("searchText").innerHTML = "Batch ID:"; document.getElementById("searchHelp").innerHTML = " "; enableDateRange(); break; case "account": document.getElementById("searchText").innerHTML = "Credit Card Number:"; document.getElementById("searchHelp").innerHTML = " "; enableDateRange(); break; case "creditcard": document.getElementById("searchText").innerHTML = "Transaction ID:"; document.getElementById("searchHelp").innerHTML = "Credit card number is referenced by the transaction ID"; enableDateRange(); break; case "comment1": document.getElementById("searchText").innerHTML = "Comment 1:"; document.getElementById("searchHelp").innerHTML = " "; enableDateRange(); break; case "comment2": document.getElementById("searchText").innerHTML = "Comment 2:"; document.getElementById("searchHelp").innerHTML = " "; enableDateRange(); break; case "purchaseorder": document.getElementById("searchText").innerHTML = "Purchase Order Number:"; document.getElementById("searchHelp").innerHTML = " "; enableDateRange(); break; } } function searchGoTo() { if (document.getElementById("Download").checked) { popDownload(); } else { if (document.getElementById("searchType").value == "transactionID") { window.location = "searchTransIDDetail.jsp"; } else { window.location = "searchResult.jsp"; } } } function popDownload() { var winl = (screen.width - 412) / 2; var wint = (screen.height - 283) / 2; var popWindow = window.open('/data/jsp/reports/sampleDownload.jsp','popDownload','width=412,height=283,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,top='+wint+',left='+winl); browserName = navigator.appName; if (browserName == "Netscape") { popWindow.focus(); } } function checkDownload(resultPage) { if (document.getElementById("Download").checked) { popDownload(); } else { window.location = resultPage; } } function runOrSchedule(repName) { if (document.forms[0].occurrenceType[0].checked) { document.getElementById("runNow").style.display = "block"; document.getElementById("schedule").style.display = "none"; document.getElementById("recurrenceEntry").style.display = "none"; document.getElementById("scheduleTime").style.display = "none"; document.getElementById("saveTemplate").style.display = "none"; document.getElementById("saveReport").style.display = "none"; checkCustomDate(); document.getElementById("actionButtons").innerHTML = ' \ '; } else if(document.forms[0].occurrenceType[1].checked){ document.getElementById("saveTemplate").style.display = "block"; document.getElementById("saveReport").style.display = "none"; document.getElementById("runNow").style.display = "none"; document.getElementById("schedule").style.display = "none"; document.getElementById("recurrenceEntry").style.display = "none"; document.getElementById("scheduleTime").style.display = "none"; document.getElementById("customDate").style.display = "none"; document.getElementById("actionButtons").innerHTML = ' \ '; } else if(document.forms[0].occurrenceType[2].checked){ document.getElementById("runNow").style.display = "none"; document.getElementById("schedule").style.display = "block"; document.getElementById("saveReport").style.display = "block"; document.getElementById("saveTemplate").style.display = "none"; document.getElementById("recurrenceEntry").style.display = "block"; document.getElementById("scheduleTime").style.display = "none"; document.getElementById("customDate").style.display = "none"; document.getElementById("actionButtons").innerHTML = ' \ '; } } function changeRecurrence() { var counter; var recurrenceField = document.getElementById("recurrenceEntry"); var whichRecurrence = document.getElementById("recurrence").value; switch (whichRecurrence) { case "D": recurrenceField.innerHTML = '

| Every day schedule to deliver yesterday (1 day prior) report. |

'; break; case "W": recurrenceField.innerHTML = '

\ \ | \ \
\ \ | Schedule to deliver report of data of prior week on selected day of every week. \
\
\ \ | Monday \ | Tuesday \ | Wednesday \ | Thursday \
\
\ \ | Friday \ | Saturday \ | Sunday \
\ \ \ | \

'; break; case "M": recurrenceField.innerHTML = '

| Schedule to deliver report on Day of every month of prior months data.?? |

'; break; } if(whichRecurrence=='W') { var whichDay = document.forms[0].dayOfWeek.value; if(whichDay != "") { days = new Array("M","T","W","TH","F","S","SU"); for(i=0;i if none passed function will exit as it has nowhere to go internalName -> defaults to popupWin if none specified internalArgs -> string of defaults for window attributes ------------------------------------------------------------------------------- */ function openWindow(internalURL,internalName,internalArgs) { if (internalURL == null || internalURL == '') { exit; } if (internalName == null || internalName == '') { internalName = 'popupWin'; } if (internalArgs == null || internalArgs == '') { internalArgs = 'scrollbars,resizable,toolbar,status,width=640,height=480,left=50,top=50'; } popupWin = window.open(internalURL,internalName,internalArgs); popupWin.focus(); } function openWindow640(thisURL) { openWindow(thisURL,'popupWin640',''); } function openWindowWH(thisURL,thisW,thisH) { internalArgs = 'scrollbars,resizable,toolbar,status,left=50,top=50,width=' + thisW + ',height=' + thisH; openWindow(thisURL,'popupWinWH',internalArgs); } function openWindowDemo(thisURL) { internalName = 'popupWinDemo'; internalArgs = 'scrollbars,resizable,toolbar,status,left=50,top=50,width=640,height=600'; openWindow(thisURL,internalName,internalArgs); } function openWindowDemoSmall(thisURL) { internalName = 'popupWinDemo'; internalArgs = 'scrollbars,resizable,toolbar,status,left=50,top=50,width=250,height=250'; openWindow(thisURL,internalName,internalArgs); } function openWindowATC(thisURL,thisType,thisWidth,thisHeight,thisArgs,thisName) { if (thisType != '') { switch (thisType) { case 'demo': openWindowDemo(thisURL); break; case 'demosmall': openWindowDemo(thisURL); break; case '640': openWindow640(thisURL); break; } } else { if ((thisWidth != '') && (thisHeight != '')) { openWindowWH(thisURL,thisWidth,thisHeight); } else { openWindow(thisURL,thisName,thisArgs); } } } var singlePop; function openSinglePop(thisURL,thisWidth,thisHeight) { var internalArgs = 'left=50,top=50,width=' + thisWidth + ',height=' + thisHeight + ',resizable=1,scrollbars=1'; if (singlePop != null) { newPop = window.open(thisURL,'singlePop',internalArgs); singlePop.close(); singlePop = newPop; } else { singlePop = window.open(thisURL,'singlePop',internalArgs); } } function popWindow(mypage) { w = 630; h = 500; var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable' win = window.open(mypage, "_blank", winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function windowNamer(thisURL) { var name = 'popupWin_'; var hash=0; for( i=0 ; i"; document.write(linkStr); } function checkAnswerLength(callingObj){ if (callingObj.name.match("1")) theNum = "1"; else theNum = "2"; var questName = "question" + theNum; var ansName = "answer" + theNum; var quest = document.forms[0][questName].value; var questAns = document.forms[0][ansName].value; if (quest.match("Last 4")) { if (questAns.length > 4){ document.forms[0][ansName].value = questAns.substring(0,4); } } } function showInfoMessage(){ if(document.getElementById('sendPromotions').checked){ document.getElementById('infoMessage').style.display='none'; document.getElementById('sendPromotions').value="true"; document.getElementById('marketingFlagChecked').value="true" ; }else{ document.getElementById('infoMessage').style.display='block'; document.getElementById('sendPromotions').value="false"; document.getElementById('marketingFlagChecked').value="false" ; } }