Skip to content

Instantly share code, notes, and snippets.

@delqn
Created June 23, 2013 17:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save delqn/5845852 to your computer and use it in GitHub Desktop.
Save delqn/5845852 to your computer and use it in GitHub Desktop.
<link rel="stylesheet" type="text/css" href="css/corners.css">
<link rel="stylesheet" type="text/css" href="/jsp/bofa/css/colorbox.css">
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/js/core.js"></script>
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/js/jquery.colorbox-min.js"></script>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="Start making transfer payments now.">
<meta name="keywords" content="make payment, transfer, wire transfer, pay individual" />
<title>This screen lets you start a domestic or international transfer to Bank of America and non-Bank of America individual accounts.</title>
<link href="/jsp/bofa/css/screen.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="/jsp/bofa/css/model_1/win_ie.css">
<link rel="stylesheet" type="text/css" href="/jsp/bofa/css/hs_safebutton.css">
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/scripts/button_script.js"></script>
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/scripts/common_button.js"></script>
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/scripts/hs_safebutton.js"></script>
<script language=JavaScript src="scripts/bofa_cp.js" type="text/javascript"> </script>
<script language=JavaScript src="scripts/cf_cp.js" type="text/javascript"> </script>
<script language="JavaScript" type="text/javascript">
<!--
function hover(ref, classRef) { eval(ref).className = classRef; }
//-->
</script>
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/scripts/font_test.js"></script>
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/scripts/common_misc.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
var dom=document.getElementById?1:0;
var ie=document.all?1:0;
var ns=document.layers?1:0;
function show(obj){
obj=findObj(obj);
if(!obj)return;
if(dom||ie){
obj.style.visibility="visible";
obj.style.display=""
}else if(ns){
if(document.layers[obj]){
obj.visibility="show";
obj.display=""
}
}
}
function hide(obj){
obj=findObj(obj);
if(!obj)return;
if(dom||ie){
obj.style.visibility="hidden";
obj.style.display="none"
}else if(ns){
if(document.layers[obj]){
obj.visibility="hide";
obj.display="none"
}
}
}
function showHide(showId,hideId){
show(showId);
hide(hideId)
}
function findObj(obj){
var p,i,found,doc;
doc=document;
if(!(found=doc[obj])&&ie){
found=doc.all[obj]
}
for(i=0;!found&&i<doc.forms.length;i++){
found=doc.forms[i][obj]
}
for(i=0;!found&&ns&&i<doc.layers.length;i++){
found=find(obj,doc.layers[i].document)
}
if(!found&&dom){
found=document.getElementById(obj)
}
return found
}
function firstFocus() {
if (document.forms.length > 0) {
j=0;
if(document.forms[0].name == "SiteSearchForm"){
j=1;
}
var TForm = document.forms[j];
if (TForm != undefined) {
for (i = 0; i < TForm.length; i++) {
if (TForm.elements[i].type != undefined && ((TForm.elements[i].type == "text") ||
(TForm.elements[i].type == "textarea") ||
(TForm.elements[i].type == "radio") ||
(TForm.elements[i].type.toString().charAt(0) == "s"))) {
if(document.forms[j].elements[i].style.visibility != "")
document.forms[j].elements[i].focus();
break;
}
}
}
}
}
function popitup(url,height,width,scrollbars)
{
newwindow=window.open(url,'','height='+height+',width='+width+',left=50,top=50,scrollbars='+scrollbars);
if (window.focus) {newwindow.focus()}
return false;
}
function writeToTimeoutWin(curTimeOut)
{
var timeout_option = "toolbar=0" + ",location=0" + ",directories=0"
+ ",status=0" + ",menubar=0" + ",scrollbars=0"
+ ",resizable=0" + ",width=320" + ",height=210";
// AOL browser requires a blank HTML when opening a new window, but Safari overlays
// all the data written to the window with the html doc if provided in the window.open
// statement
blankWindowTemplate = "/jsp/bofa/blank.html";
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("safari") != -1)
{
blankWindowTemplate = "";
}
var timeout_win = window.open(blankWindowTemplate, "NewWindow", timeout_option, true );
timeout_win.document.write('<HTML><HEAD><TITLE>Please - Note<\/TITLE>\n');
timeout_win.document.write('<link rel="stylesheet" type="text/css" href="/jsp/bofa/css/model_1/win_ie.css">');
timeout_win.document.write('<scr' + 'ipt language="JavaScript" type="text/javascript">');
timeout_win.document.write('function submitForm() { window.opener.clearGoToTimeout(); document.frmTimeout.submit(); }\n');
timeout_win.document.write( 'function hover(ref, classRef) { eval(ref).className = classRef; }');
timeout_win.document.write('<\/scr' + 'ipt>');
timeout_win.document.write('<\/head>\n');
timeout_win.document.write('<body bgcolor="#ffffff" link="#0000cc" vlink="#ff0000" alink="#cecece" onload=\'window.setTimeout("this.close()",' + (TimeOutWaitMilliseconds-2000).toString() + ');\'>\n');
timeout_win.document.write('<FORM METHOD=POST name=frmTimeout ACTION="' + resetTimeoutURL + '">\n');
timeout_win.document.write('<input type=hidden name=timerreset value=yes>\n' );
timeout_win.document.write('<input type="hidden" name="__fid__" value="gKDguIAog2nMJLkGdrlcw"><\/form>\n');
timeout_win.document.write('<table cellpadding=0 cellspacing=0 border=0 width=300 align=center >');
timeout_win.document.write('<tr><td align=center width="100%" colspan=3>');
timeout_win.document.write('<img alt="" src="/jsp/bofa/images/timeout-header.gif" border=0 width=310 height=55>\n');
timeout_win.document.write('<\/td><\/tr>\n')
timeout_win.document.write('<tr><td align=center width="100%" colspan=3>');
timeout_win.document.write('<img alt="" src="/jsp/bofa/images/clr.gif" border=0 width=1 height=5>\n');
timeout_win.document.write('<\/td><\/tr>\n')
timeout_win.document.write('<tr><td>&nbsp;<\/td><td align=left>\n');
timeout_win.document.write('<p class="text2">\n');
timeout_win.document.write('Your Online Banking session is about to be timed out. As a security precaution, sessions end after ' + (curTimeOut+TimeOutWaitMilliseconds)/60000 + ' minutes of inactivity. Click OK to continue your current session.');
timeout_win.document.write('<\/p>\n');
timeout_win.document.write('<\/td><td>&nbsp;<\/td><\/tr>\n')
timeout_win.document.write('<tr><td align=center width="100%" colspan=3>');
timeout_win.document.write('<img alt="" src="/jsp/bofa/images/clr.gif" border=0 width=1 height=5>\n');
timeout_win.document.write('<\/td><\/tr>\n')
timeout_win.document.write('<tr><td>&nbsp;<\/td><td align=center>\n');
getButton('OK', 'javascript: void submitForm();', '', '', '/jsp/bofa/images/', '', 'btn1', '','','', timeout_win.document);
timeout_win.document.write('<\/td><td>&nbsp;<\/td><\/tr>\n');
timeout_win.document.write('<\/table>\n');
timeout_win.document.write('<\/body>\n');
timeout_win.document.write('<\/html>\n');
timeout_win.document.close();
}
//-->
</script>
<SCRIPT SRC="/jsp/bofa/common_javascript.js" language="JAVASCRIPT" type="TEXT/JAVASCRIPT"></SCRIPT>
<script type="text/javascript" src="https://www.bankofamerica.com/www/en_US/js/search/search-loader.js"></script>
<script>
function changeColor() {
var obj = arguments[0];
obj.style.color = '#333333';
}
</script>
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script> -->
</head>
<body id="body" bgcolor="#ffffff" text="#000000" class="body" onLoad="firstFocus(); LoadPage();">
<img src="https://secure.bankofamerica.com/myaccounts/sec-redirect/ssopingback.go?source=ce&pingBackToken=ce&signon=N" width="0" height="0" style='display: none;' alt=""/>
<script language="JavaScript" type="text/javascript">
<!--
var UITimeoutMilliseconds = 480000;
examineFontSize("body");
//-->
</script>
<script type="text/javascript">
var fsdNavClientOptions = {
"clientName": "CASHEDGE",/**OLB/YODLEE/CASHEDGE/FISERV/INTUIT**/
"clientBorneo": false,
"locale": "en_US",
"clientActiveTab": "transfers", /**App to populate with one of these values: accounts,billpay,transfers,businessservice,cashback,toolsinvesting,newaccounts,helpsupport**/
"searchSourceSite": "olb",
"searchSourceDir": "/login",
"searchSourceTitle": "Bank of America | Online Banking",
"entryURL": "https://transfers.bankofamerica.com/jsp/bofa/pageDelegate.jsp",
"helpURL": "https://transfers.bankofamerica.com/jsp/bofa/templates/logEventCEHandover.jsp?CEpage=TF01.01E&amp;startEvent=Yes&amp;endEvent=Yes&amp;screenConstant=TF01.01E", /*URL for Help page hosted within the application*/
"CEpage": "make_transfer.jsp"
,"sourceApplication":"cashedge"
};
</script>
<script src="https://secure.bankofamerica.com/pa/components/utilities/top-nav-util/1.1/script/topnav.js" type="text/javascript"></script>
<style>
#olb-globals-header-container .olb-header-module-fsdnav-skin .fsdnav-header ul.fsdnav-header-links .fsdnav-profile-settings a.fsd-locale-set,
#olb-globals-footer-container .olb-footer-module-fsdnav-skin .fsd-footer-links .fsd-locale-li,
#olb-globals-footer-container .olb-footer-module-fsdnav-skin .fsd-footer-links a.fsd-locale-set {
display:none !important;
}
</style>
<!-- This empty DIV is to be placed in the FTL, as a placeholder for the DOM injected header/nav-->
<div id="olb-globals-header-container" style="height:111px;"></div>
<!-- (C) Copyright 2007 CashEdge Inc. All rights reserved.
This software is confidential and proprietary information of CashEdge Inc and except as authorized or permitted under the
Agreement between you and CashEdge you have no rights to use, transfer or otherwise sublicense the CashEdge
Software. You may not (i) copy or otherwise reproduce the CashEdge Software; (ii) rent, transfer or grant any rights in
the CashEdge Software in any form to any person.-->
<div class="skipLincs"><form method="post" name="ceSiteSearchFormHidden" id="ceSiteSearchFormHidden"><input type="hidden" name="__fid__" value="gKDguIAog2nMJLkGdrlcw"></form></div>
<div class=pagelabel>
<table width=735 border=0 cellspacing=0 cellpadding=0 class="nav3" >
<tr>
<td colspan=2><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=6></td>
</tr>
<tr>
<td valign=bottom><div style="display: block;"><img src="/jsp/bofa/images/clr.gif" alt="" width=200 height=10></div>
<div><a name="skipnav"></a>
<h1 class=pagelabel>
<script language="JavaScript" type="text/JavaScript">
<!--
document.write('Make Transfer');
//-->
</script>
<noscript> Make Transfer</noscript>
<br /> </h1>
</div>
</td>
<td class=text2 align=right valign=top nowrap><img src="/jsp/bofa/images/clr.gif" alt="" width=10 height=1></td>
</tr>
<tr>
<td colspan=2><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=10></td>
</tr>
<tr>
<td class=rulegrey3 colspan=2><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=1></td>
</tr>
<tr>
<td colspan=2><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=12></td>
</tr>
</table>
</div>
</tr>
</table>
</td>
</tr>
</table>
<div id="forErrMsgs">
<!-- End Module Frame -->
<!-- End Module Frame -->
</div>
<div id="disableInternationalTransfermessage" class="text2" style="display:none;margin:0px 0px 0px 15px"></div>
<table width=747 cellspacing=0 cellpadding=0 border=0 >
<tr>
<td>
<span style="margin:0px 0px 0px 15px" class="text2">Transfer money almost anywhere quickly and easily for a domestic or international account -
your account or someone else's. <a style="margin:10px 0px 0px 15px"
href="/jsp/bofa/account_add_ft.jsp?topNavigation=2&subNavigation=22&startEvent=Yes&endEvent=Yes&CEpage=account_add_ft.jsp"
class="linknormal" title="Add new account">Add an account.</a></span>
</td>
</tr>
</table>
<script type="text/javascript">
// Edit the selected To and From Accounts.
function editAccounts(isDomesticTransfer) {
if (isDomesticTransfer) {
setDurationValue();
}
var idx = document.getElementById("obdCountryCode").selectedIndex;
document.getElementById("obdCountry").value = document.getElementById("obdCountryCode").options[idx].text
document.getElementById("processAction").value = 'editAccounts';
document.getElementById('makeTransferForm').submit();
}
function getToCfiSelect() {
var toCfi;
if (null != document.getElementById("toCFIId1") && (document.getElementById("toCFISpan1").style.display != 'none')) {
toCfi = document.getElementById("toCFIId1");
} else if (null != document.getElementById("toCFIId2") && (document.getElementById("toCFISpan2").style.display != 'none')) {
toCfi = document.getElementById("toCFIId2");
} else if (null != document.getElementById("toCFIId3") && (document.getElementById("toCFISpan3").style.display != 'none')) {
toCfi = document.getElementById("toCFIId3");
}
return toCfi;
}
// Show the payments details section, to be filled by user.
function showPaymentDetails() {
document.getElementById("processAction").value = 'fillPaymentDetails';
var toCfi = getToCfiSelect();
var toIdx = toCfi.selectedIndex;
var fromIdx = document.getElementById("fromCFIId").selectedIndex;
// set the selected to account text.
document.getElementById("toAccountText").value = toCfi.options[toIdx].text;
// set the selected from account text.
document.getElementById("fromAccountText").value = document.getElementById("fromCFIId").options[fromIdx].text;
document.getElementById('toCFIId').value = toCfi.value;
document.getElementById('makeTransferForm').submit();
}
// Show the payments details section, to be filled by user.
function submitAccountDetails(txnType) {
document.getElementById("processAction").value = 'fillPaymentDetails';
var toCfi = getToCfiSelect();
var toIdx = toCfi.selectedIndex;
var fromIdx = document.getElementById("fromCFIId").selectedIndex;
// set the selected to account text.
document.getElementById("toAccountText").value = toCfi.options[toIdx].text;
var fromcfiid= document.getElementById("fromCFIId").options[fromIdx].text;
// set the selected from account text.
document.getElementById("fromAccountText").value = document.getElementById("fromCFIId").options[fromIdx].text;
document.getElementById('toCFIId').value = toCfi.value;
// if($("#changeCurrAnchorId")){
// $("a#changeCurrAnchorId").attr("href","/jsp/bofa/templates/change_default_currency.jsp?startEvent=Yes&endEvent=Yes&type=international&CEpage=TF01.01E&toCfiId="+toCfi.value);
// }
var toCfiId = toCfi.value;
hideAll();
if(txnType == 'dom' && document.getElementById("cfiDetail_isIntl_" + toCfiId)!= null && document.getElementById("cfiDetail_isIntl_" + toCfiId).innerHTML == 'yes') {
return;
}
if (-1 == toCfiId ) {
hideDetails();
} else if (-2==toCfiId) {
window.location.href = "/jsp/bofa/account_add_ft_df.jsp?topNavigation=2&subNavigation=22&startEvent=Yes&endEvent=Yes&CEpage=TF01.01E'";
return;
} else if ('AV'==toCfiId) {
window.location.href = "/jsp/sbs/bofaOLBS/payVendor/addVendorDf.jsp?topNavigation=2&subNavigation=22&startEvent=Yes&endEvent=Yes&CEpage=addVendor.jsp";
return;
}else if ('AE'==toCfiId) {
window.location.href = "/jsp/bofaOLBS/account_add_ft_df.jsp?topNavigation=2&subNavigation=22&startEvent=Yes&endEvent=Yes&CEpage=TF01.01E'";
return;
}else {
var fromCfiId = document.getElementById("fromCFIId").options[fromIdx].value;
toCfi.disabled = true;
document.getElementById("fromCFIId").disabled = true;
document.getElementById("processAction").value = 'submitAccountDetails';
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value)
+ "&toCfiId=" + encodeURI(toCfiId) + "&fromCfiId=" + encodeURI(fromCfiId);
makePOSTRequest('submitAccountDetails', '/jsp/bofa/ajax_request_processor.jsp', poststr);
}
//document.getElementById('makeTransferForm').submit();
}
function renderFrequency() {
if (document.getElementById("paymentFreq").value == "-2") {
hide('row0'); hide("rowNow");
hide('freqlayer_2');
hide('row2');
hide('row3');
hide('row4');
hide('row5');
hide('row6');hide('row6_1');
hide('row7');
}else if (document.getElementById("paymentFreq").value == "-1") {
show('row0');
show('row1');
//show("rowNow");
show('freqlayer_2');
hide('row2');
show('row3');
show('row4'); show('row4_1');
hide('row5');
hide('row6');hide("row6_1")
hide('row7');
} else if (document.getElementById("paymentFreq").value == "0") {
show('row0');
hide('row1');
show('row2');
show('row3');
show('row4'); show('row4_1');
hide('row5');
hide('row6');hide("row6_1")
hide('row7');
//hide("rowNow");
show('freqlayer_2');
} else {
show('row0');
hide('row1');
show('row2');
show('row3');
show('row4'); show('row4_1');
show('row5');
show('row6');show("row6_1")
show('row7');
//hide("rowNow");
show('freqlayer_2');
}
}
function renderFreqSection() {
if (document.getElementById("paymentFreq").value == "-1") {
show('row0');
show('row1');
hide('row2');
show('row3');
show('row4');
hide('row5');
hide('row6');
hide('row7');
} else if (document.getElementById("paymentFreq").value == "0") {
show('row0');
hide('row1');
show('row2');
show('row3');
show('row4');
hide('row5');
hide('row6');
hide('row7');
} else {
show('row0');
hide('row1');
show('row2');
show('row3');
show('row4');
show('row5');
show('row6');
show('row7');
}
}
// Hide the given sections on the load of domestic transfers screen.
function domesticStartUp() {
hide('div81');
hide('div82');
hide('div83');
if (document.getElementById("sendMail") != null && document.getElementById("sendMail").checked) {
show('send1');
} else {
hide('send1');
}
if (document.getElementById("behalf") != null && document.getElementById("behalf").checked) {
show('behalf1');
} else {
hide('behalf1');
}
hide('row1');
hide('row2');
hide('row3');
hide('row4');
hide('row5');
hide('row6');
hide('row7');
hide('row0');
var objForm = document.getElementById('makeTransferForm');
var durationType = false;
for (var x = 0; x < objForm.length; x++) {
if ((objForm.elements[x].name == "durationType") && (objForm.elements[x].type == "radio")) {
if (objForm.elements[x].checked) {
durationType = true;
break;
}
}
}
if (!durationType) {
document.getElementById('duration1').checked = true;
}
if (true == isFromTnUI() && !durationType) {
document.getElementById('duration1').checked = false;
}
}
// Hide the given sections on the load of international transfers screen.
function internationalStartUp() {
MM_preloadImages('/jsp/bofa/images/cancel_down.gif', '/jsp/bofa/images/cancel_over.gif', '/jsp/bofa/images/calculate_down.gif', '/jsp/bofa/images/calculate_over.gif', '/jsp/bofa/images/arrow_button_summary_state_over.gif');
hide('calcprogress');
hide('calcresult');
if (document.getElementById("sendMail")!= null && document.getElementById("sendMail").checked) {
show('send1');
} else {
hide('send1');
}
if (document.getElementById("behalf")!= null && document.getElementById("behalf").checked) {
show('behalf1');
} else {
hide('behalf1');
}
if (true == isFromTnUI()) {
changeButtonValueToMakeTransfer('completeTransferBtnLabel');
changeButtonTitleToMakeTransfer('completeTransferBtn');
show('intlWireSpan');
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
}
}
function setDefaultToField() {
document.getElementById('toCFIId2').options[0].selected = true;
document.getElementById('toCFIId3').options[0].selected = true;
}
function refreshToAccountsList() {
var fromIdx = document.getElementById("fromCFIId").selectedIndex;
var accountType = document.getElementById("fromCFIId").options[fromIdx].parentNode.label;
hide('toCFISpan1');
hide('toCFISpan2');
hide('toCFISpan3');
if ('Bank of America Accounts' == accountType) {
show('toCFISpan3');
} else if ('Domestic (U.S.) External Accounts' == accountType) {
show('toCFISpan2');
} else {
show('toCFISpan1');
}
hide('slowToPaySpan');
document.getElementById('toCFItd').className = 'module1text';
}
function unselectToAccounts() {
if (document.getElementById('fromCFIId').options[0].selected) {
document.getElementById('toCFIId2').options[0].selected = true;
document.getElementById('toCFIId3').options[0].selected = true;
}
}
function resetFields() {
document.getElementById("days3").checked = false;
document.getElementById("nextday").checked = false;
document.getElementById("sameday").checked = false;
document.getElementById('amount').value = "";
document.getElementById('amountUsd').value = "";
document.getElementById('amountFX').value = "";
document.getElementById('paymentFreq').value = "-2";
document.getElementById('intlTransferType').value = "";
document.getElementById('transactionDesc').value = "";
if(fromDFUI()){
document.getElementById('sendMail').checked = false;
document.getElementById('usdToFx').value = false;
}
//hide frequency divs
hide('row0');
hide("rowNow");
hide('freqlayer_2');
hide('row2');
hide('row3');
hide('row4');
hide('row5');
hide('row6');
hide('row7');
document.getElementById('durationValueNumTrans').value = "";
document.getElementById('durationValueDate').value = "";
document.getElementById('durationValueNetAmount').value = "";
document.getElementById('duration1').checked = false;
document.getElementById('duration2').checked = false;
document.getElementById('duration3').checked = false;
document.getElementById('duration4').checked = false;
document.getElementById("no").checked = true;
hide('send1');
resetOnBehalfSection();
if(document.getElementById('safePassSpan') != undefined && document.getElementById('safePassSpan') != null) {
hide('safePassSpan');
}
phoneNumberDiv.innerHTML="";
// Reset these fields as this tells AJAXPROCESSOR whether to include check for Dodd Frank additional
// purpose fields or not.
if( null!=document.getElementById('isPurposeForTransferHid')) {
document.getElementById('isPurposeForTransferHid').value = '';
document.getElementById("purposeForTransferId").selectedIndex = 0;
document.getElementById('purposeotherf').value = 'Describe the purpose of transfer';
}
//hide dodd frank enabled field
hide('purposerow');
hide('phoneNumberDiv');
hide('patronymicDiv');
hide('taxIdDiv');
hide('residentCodeDiv');
hide('paymentCodeDiv');
hide('bankCodeDiv');
hide('vatDiv');
hide('branchNameDiv');
hide('purposeErrorDiv');
}
function resetOnBehalfSection(){
document.getElementById("behalf").checked = false;
document.getElementById("nob").checked = true;
hide('behalf1');
document.getElementById("obdName").value = "";
document.getElementById("obdReferenceId").value = "";
document.getElementById("obdEmailId").value = "";
document.getElementById("obdStreetAddress").value = "";
document.getElementById("obdCity").value = "";
document.getElementById("obdState").value = "";
document.getElementById("obdCountryCode").value = "-1";
document.getElementById("obdPostalCode").value = "";
}
function resetErrMsgs(){
hide('forErrMsgs');
hideErrMsgs("err_alert_image");
changeErrText("error_span");
hide('disableInternationalTransfermessage');
if ( "undefined" != document.getElementById('errorCheckRequired') && null != document.getElementById('errorCheckRequired') ){
document.getElementById("errorCheckRequired").value = false;
}
}
function getElementsByName_iefix(tag, name) {
var elem = document.getElementsByTagName(tag);
var arr = new Array();
for(i = 0,iarr = 0; i < elem.length; i++) {
att = elem[i].getAttribute("name");
if(att == name) {
arr[iarr] = elem[i];
iarr++;
} }
return arr;}
function changeErrText(errorField){
//var fields = document.getElementsByName('error_span');
var fields = getElementsByName_iefix('*','error_span');
for (var i = 0; i < fields.length; i++) {
var tempClass = fields[i].className;
tempClass = tempClass.replace("errortext", "");
//fields[i].setAttribute("class", tempClass);
fields[i].className = tempClass;
}
}
function hideErrMsgs(fieldToReset) {
var fields = document.getElementsByName(fieldToReset);
//alert("fields in hideErrMsgs: " + fields.length);
for (var i = 0; i < fields.length; i++) {
fields[i].style.visibility = "hidden";
fields[i].style.display = "none";
}
}
function hideAll(){
hide('detailSection');
hide('stdText');hide('nextDaydiv');hide('sameDaydiv');
//hide('deliverySpeedSection');
hide('intldetailSection');hide('divIntlUSDTxn');hide('divIntlFXTxn');
hide('only_one_choice');
show('amount_frequency_desc');
hide('delivery_speed_div');
hide('emailToDiv');
hide('onBehalfDiv');
if (true == isFromTnUI()) {
changeButtonValueToContinueTransfer('completeTransferBtnLabel');
changeButtonTitleToContinueTransfer('completeTransferBtn');
hide('intlWireSpan');
}
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
}
function hideDetails(){
if (document.getElementById('fromCFIId').options[0].selected || document.getElementById('toCFIId2').options[0].selected || document.getElementById('toCFIId3').options[0].selected ) {
hideAll();
}
}
// Make a domestic wire transfer.
function makeDomesticTransfer() {
//alert("test"+ document.getElementById('nextday').value);
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
setDurationValue();
var idx = document.getElementById("obdCountryCode").selectedIndex;
document.getElementById("obdCountry").value = document.getElementById("obdCountryCode").options[idx].text
document.getElementById("processAction").value = 'completePaymentDomestic';
document.getElementById('makeTransferForm').submit();
}
// Make an international wire transfer.
function makeInternationalTransfer() {
//alert(" I am clicked :::" + document.getElementById("currencyCode").value);
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
var idx = document.getElementById("obdCountryCode").selectedIndex;
document.getElementById("obdCountry").value = document.getElementById("obdCountryCode").options[idx].text
var option = 'false';
if ("true" == option) {
document.getElementById("processAction").value = 'completePaymentUsd';
} else {
document.getElementById("processAction").value = 'completePaymentIntl';
}
//alert('intlTransferType before submit === ' + document.getElementById('intlTransferType').value);
document.getElementById('makeTransferForm').submit();
}
// Set the duration value depending upon the duration type.
function setDurationValue() {
var durationValue;
for (var i = 0; i < document.makeTransferForm.durationType.length; i++) {
if (document.makeTransferForm.durationType[i].checked) {
switch (eval(document.makeTransferForm.durationType[i].value)) {
case 0:
durationValue = findObj('durationValueNumTrans').value;
break;
case 1:
durationValue = findObj('durationValueDate').value;
break;
case 2:
durationValue = findObj('durationValueNetAmount').value;
break;
case 3:
durationValue = "-1";
break;
}
}
}
document.getElementById('durationValue').value = durationValue;
return false;
}
function setDurationValueonEdit() {
if ((null != document.getElementById('durationValue').value) && ("" != document.getElementById('durationValue').value)) {
if (document.getElementById('duration2').checked) {
document.getElementById('durationValueNumTrans').value = document.getElementById('durationValue').value;
} else if (document.getElementById('duration3').checked) {
document.getElementById('durationValueDate').value = document.getElementById('durationValue').value;
} else if (document.getElementById('duration4').checked) {
document.getElementById('durationValueNetAmount').value = document.getElementById('durationValue').value;
}
}
}
function selectService() {
var service = '';
if ((null != document.getElementById('days3')) && document.getElementById('days3').checked) {
service = 3;
} else if ((null != document.getElementById('nextday')) && document.getElementById('nextday').checked) {
service = 1;
} else if ((null != document.getElementById('sameday')) && document.getElementById('sameday').checked) {
service = 0;
}
return service;
}
function makePOSTRequest(processAction, url, parameters) {
var http_request = false;
var obj = document.forms['SiteSearchForm'];
if (obj != undefined && obj.__fid__ != undefined) {
parameters = parameters + '&__fid__=' + encodeURIComponent(obj.__fid__.value);
}
else{
var ceForm = document.forms['ceSiteSearchFormHidden'];
if(ceForm != undefined && ceForm.__fid__ != undefined){
parameters = parameters +'&__fid__='+encodeURIComponent(ceForm.__fid__.value);
}
}
/*try { // Mozilla Firefox, Opera 8.0+, Safari
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/html');
}
} catch (e) { // Internet Explorer Browsers
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
alert("Browser does not support AJAX!");
}
}
} */
http_request = getRequestObject();
if (!http_request) {
alert('Cannot create XMLHTTP instance');
return false;
}
http_request.onreadystatechange = function() {
alertContents(processAction, http_request);
}
// Process the response from the server
http_request.open('POST', url, true);
http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_request.setRequestHeader("Content-length", parameters.length);
http_request.setRequestHeader("Connection", "close");
http_request.send(parameters);
}
function getRequestObject(){
if (window.XMLHttpRequest) {
// console.log("test");
return(new XMLHttpRequest());
}else if(window.ActiveXObject) {
return(new ActiveXObject("Microsoft.XMLHTTP"));
}else{
return(null);
}
}
function alertContents(processAction, http_request) {
if (http_request.readyState == 4) {
//var xmlData = http_request.responseXML;
if (http_request.status == 200) {
//alert("processAction :" + processAction + " response : " + http_request.responseXML);
if( 'submitAccountDetails' == processAction){
var xmlData = http_request.responseXML;
//alert("xmlData : " + xmlData);
processXML(xmlData, processAction);
}else {
var result = http_request.responseText;
processResult(result, processAction);
}
} else {
alert('There was a problem with the request. Please try again. (Code: ' + http_request.status + ')');
}
}
}
function intlDisplay(result) {
if (true == isFromTnUI()) {
changeButtonValueToMakeTransfer('completeTransferBtnLabel');
changeButtonTitleToMakeTransfer('completeTransferBtn');
show('intlWireSpan');
}
hide("amount_frequency_desc");
hide("only_one_choice");
hide('detailSection');
hide("delivery_speed_div");
show("onBehalfDiv");
show("emailToDiv");
resetAll();resetAllNew();
var fromIdx = document.getElementById("fromCFIId").selectedIndex;
var fromcfiid= document.getElementById("fromCFIId").options[fromIdx].text;
if(fromcfiid.indexOf('Business')!=-1){
show('businessRadioDiv');
if(document.getElementById('businessRadio')!=null
&& document.getElementById('businessRadio')!=undefined
&& document.getElementById('businessRadio')!='undefined') {
document.getElementById('businessRadio').value = 'true';
}
}else{
hide('businessRadioDiv');
}
var toCfi = getToCfiSelect();
var toCfiId = toCfi.value;
var intlTransferType = result.getElementsByTagName("intlTransferType")[0].childNodes[0].nodeValue;
var currenciesHTML = result.getElementsByTagName("currenciesHTML")[0].childNodes[0].nodeValue;
var usdIntlWireFee = result.getElementsByTagName("usdIntlWireFee")[0].childNodes[0].nodeValue;
var foreignCurWireFee = result.getElementsByTagName("foreignCurWireFee")[0].childNodes[0].nodeValue;
var currencyCode = result.getElementsByTagName("currencyCode")[0].childNodes[0].nodeValue;
//alert("intlTransferType from ajax : " + intlTransferType + " :: currenciesHTML :" + currenciesHTML);
document.getElementById('currDropDown').innerHTML = "<select name='currencySel' id='currencySel' class='field29' onchange='showIntlFxDiv();isDFPhase2FieldsEnabled();' >"+ currenciesHTML + "</select>";
var defaultToCurrency = document.getElementById("cfiDetail_currCode_" + toCfiId).innerHTML;
var defaultToCurrencyName = defaultToCurrency;
var currOptions = document.getElementById("currencySel").options;
for (var i = 0; i < currOptions.length; i++) {
if (currOptions[i].value == defaultToCurrency) {
defaultToCurrencyName = currOptions[i].text;
}
}
//alert(defaultToCurrency + ' ' + defaultToCurrencyName);
document.getElementById('currencyCode').value = defaultToCurrency;
if(intlTransferType == 'usdWire') {
show("divIntlUSDTxn");
document.getElementById('intlTransferType').value = 'usdWire';
document.getElementById('usdFee').innerHTML = usdIntlWireFee;
document.getElementById('foreignFee').innerHTML = foreignCurWireFee;
}else if(intlTransferType == 'fxWire') {
document.getElementById('intlTransferType').value = 'fxWire';
document.getElementById('curr_fx').value = defaultToCurrency;
document.getElementById('curr_fx_label').innerHTML = defaultToCurrencyName;
document.getElementById('paymentSentCurrSpan').innerHTML = defaultToCurrencyName;
if(!fromDFUI())
document.getElementById('foreignCurWireFeeVal').innerHTML = foreignCurWireFee;
if(fromDFUI()){
document.getElementById('curr_fx').checked='true';
}
hide('divIntlUSDTxn');
show('divIntlFXTxn');
}
show('intldetailSection');
}
function processXML(result, processAction) {
// alert('processAction = ' + processAction + ', result = ' + result);
if (null != result && null != processAction) {
var serviceType = result.getElementsByTagName("serviceType");
var transferFee = result.getElementsByTagName("transferFee");
var cutOffTime = result.getElementsByTagName("cutOffTime");
var goodFundsStartDate = result.getElementsByTagName("goodFundsStartDate");
var badFundsStartDate = result.getElementsByTagName("badFundsStartDate");
var domWireStartDate = result.getElementsByTagName("domWireStartDate");
document.getElementById("goodFundsStartDt").value = goodFundsStartDate[0].childNodes[0].nodeValue;
document.getElementById("badFundsStartDt").value = badFundsStartDate[0].childNodes[0].nodeValue;
document.getElementById("domWireStartDt").value = domWireStartDate[0].childNodes[0].nodeValue;
var toEmail = result.getElementsByTagName("toEmailId");
var toEmailBody = result.getElementsByTagName("toEmailBody");
var toAccountType = result.getElementsByTagName("toAccountType");
var accountTypeVal = toAccountType[0].childNodes[0].nodeValue;
var emailtxt = toEmailBody[0].childNodes[0].nodeValue;
newemailtxt = emailtxt.replace(/\\n/g, "<br>");
// setting the hidden variable 'amountval' so that we can change its value when amount is filled.
document.getElementById("amountVal").value = newemailtxt;
try
{
document.getElementById("emailTo").value = toEmail[0].childNodes[0].nodeValue;
}
catch(e)
{
document.getElementById("emailTo").value = "";
}
if(!fromDFUI()){
//document.getElementById("emailTo").value = result.getElementsByTagName("toEmailId")[0].childNodes[0].nodeValue;
document.getElementById("emailBody").innerHTML = eval("'" + newemailtxt + "'");
var emVal = document.getElementById('emailBody').innerHTML;
var amountEmailTxt = emVal.replace(/<[bB][rR]>/g, "\n");
document.getElementById("emailBodytxt").value = amountEmailTxt;
}
var fee = "";
var time = "";
var singleSpeedText = "";
var deliverySpeedVal = "";
var gudfundstartDt = "";
if(accountTypeVal == 'INTERNATIONAL'){
intlDisplay(result);
}else{
hide('stdText');
hide('nextDaydiv');
hide('sameDaydiv');
if (true == isFromTnUI()) {
changeButtonValueToContinueTransfer('completeTransferBtnLabel');
changeButtonTitleToContinueTransfer('completeTransferBtn');
hide('intlWireSpan');
}
for (i = 0; i < serviceType.length; i++) {
//show('deliverySpeedSection');
if (serviceType[i].childNodes[0].nodeValue == '3 Business Days') {
fee = transferFee[i].childNodes[0].nodeValue;
time = cutOffTime[i].childNodes[0].nodeValue;
//gudfundstartDt = startDate[i].childNodes[0].nodeValue;
document.getElementById('immSendDate').value = document.getElementById("goodFundsStartDt").value;
document.getElementById('sendDateSpan').innerHTML = document.getElementById("goodFundsStartDt").value;
document.getElementById("stdTransferFee").innerHTML = fee;
document.getElementById("standardCutOffTime").innerHTML = time;
show('stdText');
singleSpeedText = "Your transfer will be delivered in 3 business days for a " + fee + " fee";
deliverySpeedVal = "GF";
}
if (serviceType[i].childNodes[0].nodeValue == 'Next Day') {
fee = transferFee[i].childNodes[0].nodeValue;
time = cutOffTime[i].childNodes[0].nodeValue;
//startDt = startDate[i].childNodes[0].nodeValue;
document.getElementById('immSendDate').value = document.getElementById("badFundsStartDt").value;
document.getElementById('sendDateSpan').innerHTML = document.getElementById("badFundsStartDt").value;
document.getElementById("nextTransferFee").innerHTML = fee;
document.getElementById("nextCutOffTime").innerHTML = time;
show('nextDaydiv');
singleSpeedText = "Your transfer will be delivered next day for a " + fee + " fee";
deliverySpeedVal = "BF";
}
if (serviceType[i].childNodes[0].nodeValue == 'Same Day') {
fee = transferFee[i].childNodes[0].nodeValue;
time = cutOffTime[i].childNodes[0].nodeValue;
//startDt = startDate[i].childNodes[0].nodeValue;
document.getElementById('immSendDate').value = document.getElementById("domWireStartDt").value;
document.getElementById('sendDateSpan').innerHTML = document.getElementById("domWireStartDt").value;
document.getElementById("sameTransferFee").innerHTML = fee;
document.getElementById("sameCutOffTime").innerHTML = time;
show('sameDaydiv');
singleSpeedText = "Your transfer will be delivered same day for a " + fee + " fee";
deliverySpeedVal = "domesticWire";
}
}
hide("freqlayer_2");
//hide("deliverySpeedOldSection");
renderEmailTo(accountTypeVal);
if (serviceType.length == 1) {
document.getElementById("oneSpeedText").innerHTML = singleSpeedText;
document.getElementById("deliverySpeed").value = deliverySpeedVal;
//document.getElementById("deliverySpeed").name = "deliverySpeed";
//alert("Name in delivery Speed = " + document.getElementById("deliverySpeed").name);
show("only_one_choice");
show('detailSection');
hide("delivery_speed_div");
hide('amount_frequency_desc');
//setDefaultDates(true);
setSingleDeliveryDates(deliverySpeedVal);
// show the onBehalf section only for domestic wires and intl wires
if (deliverySpeedVal == "domesticWire")
show("onBehalfDiv");
else
hide("onBehalfDiv");
} else if (serviceType.length > 1) {
show('feeTitle');
show('detailSection');
show('delivery_speed_div');
show('titleTextId1');
show('titleTextId2');
hide('amount_frequency_desc');
show('3day');
hide('only_one_choice');
//setDefaultDates(false);
hide("onBehalfDiv");
//document.getElementById('immSendDate').value = document.getElementById("goodFundsStartDt").value;
//document.getElementById('sendDateSpan').innerHTML = document.getElementById("goodFundsStartDt").value;
} else {
hide('feeTitle');
hide('detailSection');
hide('titleTextId1');
hide('titleTextId2');
//hide('deliverySpeedSection');
hide('only_one_choice');
show('amount_frequency_desc');
}
}
document.getElementById("fromCFIId").disabled = false;
var toCfi = getToCfiSelect();
toCfi.disabled = false;
}
}
function renderStates(){
var stateSel;
var stateVal;
if (null != document.getElementById("obdCountryCode") && (document.getElementById("obdCountryCode").style.display != 'none')) {
stateSel = document.getElementById("obdCountryCode");
if (null != stateSel) {
stateVal = stateSel.value;
if('US' == stateVal){
show('stateDiv');show('stateLabel');show('zipLabel');hide('postalLabel');
}
else{
hide('stateDiv');hide('stateLabel');hide('zipLabel');show('postalLabel');
}
}
}
}
function renderEmailTo(accountType) {
//alert("accounttype : " + accountType);
if('THIRD_PARTY_BOFA' == accountType || 'KTP_ACC' == accountType){
show("emailToDiv");
}else
hide('emailToDiv');
}
function renderOnBehalf() {
// alert('renderOnBehalf');
var resetSelection = false;
if (null != document.getElementById('days3') && document.getElementById('days3').checked) {
hide('onBehalfDiv');
resetSelection = true;
} else if (null != document.getElementById('nextday') && document.getElementById('nextday').checked) {
hide('onBehalfDiv');
resetSelection = true;
} else if (null != document.getElementById('sameday') && document.getElementById('sameday').checked) {
show('onBehalfDiv');
}
if(resetSelection) {
var ob = document.getElementsByName('onBehalfPayment');
for(var i = 0; i < ob.length; i++) {
if(ob[i].value == 'yes') {
ob[i].checked = false;
} else {
ob[i].checked = true;
}
hide('behalf1');
}
}
}
function renderDescription() {
if (null != document.getElementById('days3') && document.getElementById('days3').checked) {
show('descSpan');
} else if (null != document.getElementById('nextday') && document.getElementById('nextday').checked) {
show('descSpan');
} else if (null != document.getElementById('sameday') && document.getElementById('sameday').checked) {
hide('descSpan');
}
}
function renderSectionbyDuration() {
if (document.getElementById('duration1').checked) {
hide('div81');
hide('div82');
hide('div83');
} else if (document.getElementById('duration2').checked) {
show('div81');
hide('div82');
hide('div83');
} else if (document.getElementById('duration3').checked) {
hide('div81');
show('div82');
hide('div83');
} else if (document.getElementById('duration4').checked) {
hide('div81');
hide('div82');
show('div83');
}
}
function checkSlowToPay() {
var toCfi = getToCfiSelect();
var toIdx = toCfi.selectedIndex;
var accountType = toCfi.options[toIdx].parentNode.label;
if ('International External Accounts' == accountType || 'International Vendors' == accountType) {
var cfiId = toCfi.value;
document.getElementById("processAction").value = 'checkSlowToPay';
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value)
+ "&cfiId=" + encodeURI(cfiId);
makePOSTRequest('checkSlowToPay', '/jsp/bofa/ajax_request_processor.jsp', poststr);
} else {
hide('slowToPaySpan');
document.getElementById('toCFItd').className = 'module1text';
}
}
function isDFPhase2FieldsEnabled() {
if(fromDFUI()){
var toCfi = getToCfiSelect();
var toIdx = toCfi.selectedIndex;
var accountType = toCfi.options[toIdx].parentNode.label;
if ('International External Accounts' == accountType || 'International Vendors' == accountType) {
var cfiId = toCfi.value;
document.getElementById("processAction").value = 'IS_COUNTRY_PURPOSE_ENABLED';
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value)
+ "&cfiId=" + encodeURI(cfiId);
makePOSTRequest('IS_COUNTRY_PURPOSE_ENABLED', '/jsp/bofa/ajax_request_processor.jsp', poststr);
} else {
hide('purposerow');
}
if ('International External Accounts' == accountType || 'International Vendors' == accountType) {
var cfiId = toCfi.value;
document.getElementById("processAction").value = 'getCountrySpecificFields';
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value)
+ "&cfiId=" + encodeURI(cfiId);
makePOSTRequest('getCountrySpecificFields', '/jsp/bofa/ajax_request_processor.jsp', poststr);
}
}
}
var fxRate = 0;
function processResult(result, processAction) {
//alert('processAction = ' + processAction + ', result = ' + result);
if (null != result && null != processAction) {
if ('checkSlowToPay' == processAction) {
if (result.indexOf('yes') > -1) {
show('slowToPaySpan');
document.getElementById('toCFItd').className = 'module1text errorboxtop1';
} else {
hide('slowToPaySpan');
document.getElementById('toCFItd').className = 'module1text';
}
} else if( fromDFUI() && ('IS_COUNTRY_PURPOSE_ENABLED' == processAction) ){ //df phase 2 changes
if (result.indexOf('true') > -1 ){
document.getElementById('isPurposeForTransferHid').value='true';
show('purposerow');
show('purposeNoErrorDiv');
} else {
hide('purposerow');
}
}else if( fromDFUI() && ('getCountrySpecificFields' == processAction) ){ //df phase 2 changes
var flag = false;
var resultArray = result.split(':');
var countryCode= resultArray[0].replace(/^\s+|\s+$/g, "");
var isBusiness= resultArray[1];
var showTaxID =resultArray[2];
var showPhoneNo =resultArray[3];
var showBankCode =resultArray[4];
var showResidentCode= resultArray[5];
var showPaymentCode= resultArray[6];
var showPatronymic= resultArray[7];
var showBranchName= resultArray[8];
var currencyCode= resultArray[9];
var charArrayCharLength10 = "BR,AR,DZ,EG".split(',');
var usdToFxCurr =document.getElementById('usdToFx').value;
if (charArrayCharLength10 != null) {
for (var i = 0; i < charArrayCharLength10.length; i++) {
if (charArrayCharLength10[i] == countryCode && ('ARS'==currencyCode || 'BRL'==currencyCode || 'DZD'==currencyCode || 'EGP'==currencyCode || 'true' ==usdToFxCurr ) ) {
flag = true;
if('true'==showPhoneNo) {
document.getElementById('receiptPhNo').value='BLANK:10'
phoneNumberDiv.innerHTML ='<span class="bold">Recipient\'s Phone Number *&nbsp;</span><br><input type="text" name="phoneChar10" id="phoneNumber" maxlength="10" value="(10 digits)" onfocus="if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " onkeyup="setPhoneNumberValue(this.value);"><br><span class="text1b">(Do not include international prefix)</span><br><br>';
show('phoneNumberDiv');
}
if('AR'==countryCode && 'true'==showTaxID ){
document.getElementById('taxIdHid').value='BLANK:AR:'+isBusiness;//if no value passed then set the hidden value as blank
if (isBusiness =='false')
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s CUIL *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(12 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdAR" id="taxId" maxlength="12" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
else {
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s CUIT *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(12 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdAR" id="taxId" maxlength="12" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
}
show('taxIdDiv');
}
if('BR'==countryCode && 'true'==showTaxID ){
document.getElementById('bankCodeHid').value='BLANK:BR';
document.getElementById('taxIdHid').value='BLANK:BR:'+isBusiness;
if (isBusiness =='false')
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s CPF number *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(11 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdBR" id="taxId" maxlength="11" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
else {
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s CNPJ number *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(14 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdBR" id="taxId" maxlength="14" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
}
show('taxIdDiv');
bankCodeDiv.innerHTML ='<span class="bold">Agency Code (Bank Code) *&nbsp;</span><br><input type="text" value="(5 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="bankCodeBR" id="bankCode" maxlength="5" onkeyup="document.getElementById(\'bankCodeHid\').value = this.value+\':BR\';"><br><br>';
show('bankCodeDiv');
}
if('EG'==countryCode && 'true'==showBranchName ){
document.getElementById('branchNameHid').value='BLANK:EG';
branchNameDiv.innerHTML ='<span class="bold">Recipient\'s Bank Branch Name *&nbsp;</span><br><input type="text" name="branchNameEG" id="branchName" maxlength="70" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':EG\';"><br><br>';
show('branchNameDiv');
}
break;
}
}
}
var charArrayCharLength9 = "ZA,ET,CO,CL".split(',');
if (charArrayCharLength9 != null && !flag) {
for (var i = 0; i < charArrayCharLength9.length; i++) {
if (charArrayCharLength9[i] == countryCode && ('ZAR'==currencyCode || 'ETB'==currencyCode || 'COP'==currencyCode || 'CLP'==currencyCode || 'true' ==usdToFxCurr ) ) {
flag = true;
if('true'==showPhoneNo) {
document.getElementById('receiptPhNo').value='BLANK:9'
phoneNumberDiv.innerHTML = '<span class="bold">Recipient\'s Phone Number *&nbsp;</span><br><input type="text" name="phoneChar9" id="phoneNumber" maxlength="9" value="(9 digits)" onfocus="if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " onkeyup="setPhoneNumberValue(this.value);"><br><span class="text1">(Do not include international prefix)</span><br><br>';
show('phoneNumberDiv');
}
if('CO'==countryCode && 'true'==showTaxID ){
document.getElementById('taxIdHid').value='BLANK:CO:'+isBusiness;
if (isBusiness =='false')
taxIdDiv.innerHTML ='<span class="bold">Recipient Individual\'s Cedula ID # *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(9 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdCO" id="taxId" maxlength="9" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
else {
taxIdDiv.innerHTML ='<span class="bold">Company\'s NIT ID # (National Tax ID number) *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(9 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdCO" id="taxId" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
}
show('taxIdDiv');
}
if('CL'==countryCode && 'true'==showTaxID ){
document.getElementById('taxIdHid').value='BLANK:CL:false';
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s RUT # (Tax Payer ID Number) *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(9 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdCL" id="taxId" maxlength="9" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('ET'==countryCode && 'true'==showBranchName ){
document.getElementById('branchNameHid').value='BLANK:EG';
branchNameDiv.innerHTML ='<span class="bold">Recipient\'s Bank Branch Name *&nbsp;</span><br><input type="text" name="branchNameEG" id="branchName" maxlength="30" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':ET\';"><br><br>';
show('branchNameDiv');
}
break;
}
}
}
var charArrayCharLength8 = "CR,GT".split(',');
if (charArrayCharLength8 != null && !flag) {
for (var i = 0; i < charArrayCharLength8.length; i++) {
if (charArrayCharLength8[i] == countryCode && ('CRC'==currencyCode || 'GTQ'==currencyCode || 'true' ==usdToFxCurr ) ) {
flag = true;
if('true'==showPhoneNo) {
document.getElementById('receiptPhNo').value='BLANK:8'
phoneNumberDiv.innerHTML = '<span class="bold">Recipient\'s Phone Number *&nbsp;</span><br><input type="text" name="phoneChar8" id="phoneNumber" maxlength="8" value="(8 digits)" onfocus="if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " onkeyup="setPhoneNumberValue(this.value);"><br><span class="text1">(Do not include international prefix)</span><br><br>';
show('phoneNumberDiv');
}
if('CR'==countryCode && 'true'==showTaxID ){
document.getElementById('taxIdHid').value='BLANK:CR:false';
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s Cedula Juridica # (Individual ID Number) *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(10 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdCR" id="taxId" maxlength="10" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('GT'==countryCode && 'true'==showTaxID ){
document.getElementById('taxIdHid').value='BLANK:GT:false';
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s NIT # (National Tax ID) *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(8 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdGT" id="taxId" maxlength="8" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
break;
}
}
}
if(!flag && 'KZ'==countryCode && ( 'KZT'==currencyCode || 'true' ==usdToFxCurr ) ){
flag=true;
if('true'==showTaxID) {
document.getElementById('taxIdHid').value='BLANK:KZ:false';
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s TRN (Tax Registration Number) *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(12 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdKZ" id="taxId" maxlength="12" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('true'==showResidentCode) {
document.getElementById('residentCodeHid').value='BLANK:KZ';
residentCodeDiv.innerHTML ='<span class="bold">Recipient\'s KBE Code *&nbsp;</span><span id="kbeToolTipId" class="relative"></span><br><input type="text" value="(2 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="residentCodeKZ" id="residentCode" maxlength="2" onkeyup="document.getElementById(\'residentCodeHid\').value = this.value+\':KZ\';"><br><br>';
show('residentCodeDiv');
showKbeToolTip();
}
if('true'==showPaymentCode) {
document.getElementById('paymentCodeHid').value='BLANK:KZ';
paymentCodeDiv.innerHTML ='<span class="bold">KNP Code *&nbsp;</span><span id="knpToolTipId" class="relative"></span><br><input type="text" value="(3 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="paymentCodeKZ" id="paymentCode" maxlength="3" onkeyup="document.getElementById(\'paymentCodeHid\').value = this.value+\':KZ\';"><br><br>';
show('paymentCodeDiv');
showKnpToolTip();
}
}
if(!flag && 'RU'==countryCode && ( 'RUB'==currencyCode || 'true' ==usdToFxCurr) ){
flag=true;
if('true'==showPatronymic && isBusiness =='false') {
document.getElementById('patronymicHid').value='BLANK:RU';
patronymicDiv.innerHTML ='<span class="bold">Recipient\'s Patronymic * (Surname of the father)&nbsp;</span><br><input type="text" name="patronymicRU" id="patronymic" maxlength="20" onkeyup="document.getElementById(\'patronymicHid\').value = this.value+\':RU\';"><br><br>';
show('patronymicDiv');
}
if('true'==showTaxID) {
document.getElementById('taxIdHid').value='BLANK:RU:false';
taxIdDiv.innerHTML ='<span class="bold">Recipient\'s INN Tax Authority Number *&nbsp;</span><span id="takIdToolTipId" class="relative"></span><br><input type="text" value="(10 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdRU" id="taxId" maxlength="10" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('true'==showBankCode) {
document.getElementById('bankCodeHid').value='BLANK:RU';
bankCodeDiv.innerHTML ='<span class="bold">Recipient\'s VO Code * </span>(Bank Code)&nbsp;<br><input type="text" value="(5 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="bankCodeRU" id="bankCode" maxlength="5" onkeyup="document.getElementById(\'bankCodeHid\').value = this.value+\':RU\';"><br><br>';
show('bankCodeDiv');
}
document.getElementById('vatHid').value ='blank';
show('vatDiv');
}
if(!flag && 'KE'==countryCode && 'true'==showBranchName && ( 'KES'==currencyCode || 'true' ==usdToFxCurr )){
flag=true;
document.getElementById('branchNameHid').value='BLANK:KE';
branchNameDiv.innerHTML ='<span class="bold">Recipient\'s Bank Branch Name *&nbsp;</span><br><input type="text" name="branchNameEG" id="branchName" maxlength="20" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':KE\';"><br><br>';
show('branchNameDiv');
}
if(!flag && 'VN'==countryCode && 'true'==showBranchName && ( 'VND'==currencyCode || 'true' ==usdToFxCurr )){
flag=true;
document.getElementById('branchNameHid').value='BLANK:VN';
branchNameDiv.innerHTML ='<span class="bold">Recipient\'s Bank Branch Name *&nbsp;</span><br><input type="text" name="branchNameEG" id="branchName" maxlength="15" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':VN\';"><br><br>';
show('branchNameDiv');
}
//Added for Dodd Frank Phase 2 to Show Resident Error Box
if(('PHP'==currencyCode && 'PH'==countryCode)||('THB'==currencyCode && 'TH'==countryCode)||('IDR'==currencyCode && 'ID'==countryCode)){
show('resierrorbox');
var errorHtml="<p class='errorfont1'>"+"<img src='/jsp/bofa/images/icon_alert_error_small.gif' width='16' height='14' alt='error'/>&nbsp;"
+currencyCode+'&nbsp;transfers must be made to a resident.Non-resident transactions are subject to regulatory approval and may be prohibited.</p><br></span>';
document.getElementById('resierrorbox').innerHTML="";
document.getElementById('resierrorbox').innerHTML=errorHtml;
document.getElementById('resierror').className = 'text2 errorboxtop1';
}else {
hide('resierrorbox');
document.getElementById('resierror').className = 'text2';
}
//End Added for Resident Error Box
//Added for showing help text
if(showTaxID=='true'){
showTaxIdToolTip(countryCode);
}
//End added for showing help text
}else if ('initiateFxRequest' == processAction) {
if (result.indexOf("amountPar") > -1) {
show('calcNote');
document.getElementById('amountErrSpan').innerHTML = result.substring(result.indexOf("<p id='amountPar' class='errorfont1'>"), result.indexOf("</p>"));
if(!fromDFUI())
document.getElementById('amountCol').className = 'transfer errorboxtop2';
document.getElementById('amount').value = '';
if(document.getElementById('intlTransferType').value == 'usdWire' && fromDFUI() ){
document.getElementById('amountErrSpanUsd').innerHTML = result.substring(result.indexOf("<p id='amountPar' class='errorfont1'>"), result.indexOf("</p>"));
show('amountErrSpanUsd');
}else {
show('amountErrSpan');
}
document.getElementById("curr_fx").disabled = false;
document.getElementById("curr_usd").disabled = false;
document.getElementById("amountFX").disabled = false;
}
if (result.indexOf("currPar") > -1) {
show('calcNote');
document.getElementById('currencyErrSpan').innerHTML = result.substring(result.indexOf("<p id='currPar' class='errorfont1'>"), result.length);
document.getElementById('currencyCol').className = 'errorboxtop2';
show('currencyErrSpan');
document.getElementById("curr_fx").disabled = false;
document.getElementById("curr_usd").disabled = false;
document.getElementById("amountFX").disabled = false;
}
if (result.indexOf('<fxRateId>') > -1) {
hide('calcNote');
hide('disableInternationalTransfermessage');
var temp = result.split(' ');
//var temp = result.getElementsByTagName('<fxRateId>')[0].childNodes[0].nodeValue;
//alert("fxRateId :" + temp[1]);
if(temp[1] == -100) {
show('disableInternationalTransfermessage');
document.getElementById('disableInternationalTransfermessage').innerHTML =
result.substring(result.indexOf("<br/><p id='disableInternational'"), result.length);
}
else if(temp[1] == -200) {
show('purposeErrorDiv');
hide('purposeNoErrorDiv');
document.getElementById("curr_fx").disabled = false;
document.getElementById("curr_usd").disabled = false;
document.getElementById("amountFX").disabled = false;
document.getElementById('completeTransferBtn').className = 'button';
document.getElementById('completeTransferBtn').title = document.getElementById('completeTransferBtnLabel').innerHTML;
updateAuralText( 'transferBtnAuralText' , '');
}
else {
if(fromDFUI()){
show_modal_dialog();
toggle_visibility('alert','Please wait while your transaction is being processed..','center');
}else {
show('calcprogress');
}
this.pollFxRate(0, '70000', '4000', temp[1]);
}
}
} else if ('getFxRate' == processAction) {
if (result.indexOf('<fxRate>') > -1) {
//var temp = result.getElementsByTagName('<fxRateId>')[0].childNodes[0].nodeValue;
var temp = result.split(' ');
fxRate = temp[1];
//fxRate = temp;
}
} else if ('checkAccountCategory' == processAction) {
if (result != null && trim(result) != "") {
show('accCatDiv');
document.getElementById('accCatDiv').innerHTML = "<br><p class=errorfont1><img src='/jsp/bofa/images/icon_alert_error_small.gif' width=16 height=14 alt=error>&nbsp;" + result + "</p>";
} else {
hide('accCatDiv');
}
} else if ('getCurrencies' == processAction) {
// alert('Processing result for currencies..' + result);
var toCfi = getToCfiSelect();
var toIdx = toCfi.selectedIndex;
var toCfiId = toCfi.options[toIdx].value;
//alert("result in get currencies :: processresult() :" + result );
document.getElementById('divCurrencySel').innerHTML = result;
var toCfiCurr = document.getElementById("cfiDetail_currCode_" + toCfiId).innerHTML;
if(toCfiCurr == '' || result.indexOf("value='" + toCfiCurr + "'") == -1) {
//document.getElementById('divCurrencySel').innerHTML = result;
show('divDefaultCurrency');
if (true == isFromTnUI()) {
//alert('22222' + document.getElementById('currencyCode').value );
document.getElementById('currencyCode').value = '';
//alert("currencyCode ::" + document.getElementById('currencyCode').value);
hide('amount_frequency_desc');
show("onBehalfDiv");
show("emailToDiv");
hide("divIntlFxTxn");
hide("divIntlUSDTxn");
}
showNote();
} else if (true == isFromTnUI()) {
submitAccountDetails('intl');
}
} else if ('submitDefaultCurrency' == processAction) {
var resultArr = result.split(",");
var cfiId = resultArr[0];
var currCode = resultArr[1];
//alert("result cfiId :" + cfiId + " currCode :" + currCode);
hide('divDefaultCurrency');
if(currCode == 'USD' ){
hide('divIntlFxTxn');
show('divIntlUSDTxn');
}else{
show('divIntlFxTxn');
hide('divIntlUSDTxn');
}
submitAccountDetails('intl');
//document.getElementById('cfiDetail_currCode_' + cfiId).value = currCode;
}
}
}
function saveDefaultCurrencyCode() {
document.getElementById("processAction").value = 'submitDefaultCurrency';
var defaultToCurrency = document.getElementById('defCurrencyCode').value;
var defaultToCurrencyIdx = document.getElementById('defCurrencyCode').selectedIndex;
var defaultToCurrencyName = document.getElementById('defCurrencyCode').options[defaultToCurrencyIdx].text;
document.getElementById('curr_fx').value = defaultToCurrency;
document.getElementById('curr_fx_label').innerHTML = defaultToCurrencyName;
document.getElementById('currencyCode').value = defaultToCurrency;
document.getElementById('paymentSentCurrSpan').innerHTML = defaultToCurrencyName;
var toCfiId = getToCfiSelect().value;
//alert("default currency code : " + defaultToCurrency + "index : " + defaultToCurrencyIdx + " currencyName : " + defaultToCurrencyName);
//document.getElementById('testtd').innerHTML = defaultToCurrency;
//alert("testing.... " + 'cfiDetail_currCode_' + toCfiId);
document.getElementById('cfiDetail_currCode_' + toCfiId).innerHTML = defaultToCurrency;
//alert("testing....22 ::" + document.getElementById('cfiDetail_currCode_' + toCfiId).innerHTML);
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value) + "&toCfiId=" + encodeURI(toCfiId) +
"&defaultToCurrency=" + encodeURI(defaultToCurrency);
this.makePOSTRequest('submitDefaultCurrency', '/jsp/bofa/ajax_request_processor.jsp', poststr);
//hide('divCurrencySel');show('divIntlFxTxn');
}
function calculateRate() {
resetAll();
document.getElementById("curr_fx").disabled = true;
document.getElementById("curr_usd").disabled = true;
document.getElementById("amountFX").disabled = true;
this.initiateFxRequest();
}
function onBehalfof(variable){
var value = null;
if(document.getElementById(variable)!=null
&& document.getElementById(variable)!='undefined'
&& document.getElementById(variable)!=undefined){
value = document.getElementById(variable).value;
}
return (value);
}
// Get the excahnge rate for the selected currency and amount.
function initiateFxRequest() {
hide('amountErrSpan');
hide('currencyErrSpan');
// Get From CfIId.
var fromCfiIndex = document.getElementById('fromCFIId').selectedIndex;
var fromCfiValue = '';
if(typeof(fromCfiIndex) != 'undefined')
fromCfiValue = document.getElementById('fromCFIId').options[fromCfiIndex].value;
if(!fromDFUI())
document.getElementById('amountCol').className = "transfer";
document.getElementById('currencyCol').className = '';
// set fxRate back to original.
fxRate = 0;
if(document.getElementById('intlTransferType') != null
&& document.getElementById('intlTransferType')!=undefined
&& document.getElementById('intlTransferType')!='undefined'
&& document.getElementById('intlTransferType').value == 'fxWire'){
document.getElementById("amount").value = document.getElementById("amountFX").value;
}
// document.getElementById("amount").value is used in other places also
// so just assign it to the value document.getElementById("amountFX").value,
// So it reflect in other places also.
var amount = document.getElementById("amount").value;
var fromCurrency = getFromCurrency();
// alert('fromCurr = ' + fromCurrency);
var toCFIId = document.getElementById("toCFIId").value;
var toCurrency = null;
if ('USD' == fromCurrency) {
toCurrency = document.getElementById('currencyCode').value;
//alert("this is the toCurrency :" + toCurrency);
} else {
toCurrency = 'USD';
}
document.getElementById("processAction").value = 'initiateFxRequest';
document.getElementById("toCurrency").value = toCurrency;
var iwTrfrType = document.getElementById('intlTransferType').value;
var businessAccountSelectedUri = 'false';
if(document.getElementById('businessAccountSelected')!=null
&& document.getElementById('businessAccountSelected')!='undefined'
&& document.getElementById('businessAccountSelected')!=undefined){
businessAccountSelectedUri = document.getElementById('businessAccountSelected').value;
}
//Dodd Frank Additional purpose fields.
var isPurposeForTransferHid = 'false';
var purposeForTransferId = '-50';
var purposeotherf = null;
if(null!= document.getElementById('isPurposeForTransferHid')){
isPurposeForTransferHid = document.getElementById('isPurposeForTransferHid').value;
purposeForTransferId = document.getElementById('purposeForTransferId').value;
purposeotherf = document.getElementById('purposeotherf').value;
}
var onBehalfOfName = this.onBehalfof('obdName');
var onBehalfOfRefId = this.onBehalfof('obdReferenceId');
var onBehalfOfEmailId = this.onBehalfof('obdEmailId');
var onBehalfOfStreetAdd = this.onBehalfof('obdStreetAddress');
var onBehalfOfCity = this.onBehalfof('obdCity');
var onBehalfOfCountryCode = this.onBehalfof('obdCountryCode');
var onBehalfOfState = this.onBehalfof('obdState');
var onBehalfOfPostCode = this.onBehalfof('obdPostalCode');
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value)
+ "&fromCurrency=" + encodeURI(fromCurrency) + "&toCurrency=" + encodeURI(toCurrency)
+ "&amount=" + encodeURI(amount) + "&fromCfiID=" + encodeURI(fromCfiValue)
+ "&toCfiID=" + encodeURI(toCFIId) + "&iwTrfrType=" + encodeURI(iwTrfrType)
+ "&businessAccountSelected=" + businessAccountSelectedUri
+ "&isPurposeForTransferHid=" + isPurposeForTransferHid
+ "&purposeForTransferId=" + purposeForTransferId
+ "&purposeotherf=" + purposeotherf
+ "&onBehalfOfName=" + onBehalfOfName
+ "&onBehalfOfRefId=" + onBehalfOfRefId
+ "&onBehalfOfEmailId=" + onBehalfOfEmailId
+ "&onBehalfOfStreetAdd=" + onBehalfOfStreetAdd
+ "&onBehalfOfCity=" + onBehalfOfCity
+ "&onBehalfOfCountryCode=" + onBehalfOfCountryCode
+ "&onBehalfOfState=" + onBehalfOfState
+ "&onBehalfOfPostCode=" + onBehalfOfPostCode;
this.makePOSTRequest('initiateFxRequest', '/jsp/bofa/ajax_request_processor.jsp', poststr);
}
function pollFxRate(startTime, endTime, interval, fxRateId) {
if ((fxRate == 0 || fxRate == null || fxRate == "null") && startTime <= endTime) {
this.getFxRate(fxRateId);
startTime = startTime + interval;
window.setTimeout("pollFxRate(" + startTime + "," + '70000' + "," + '4000' + "," + fxRateId + ")", interval);
} else {
document.getElementById("fxRateId").value = fxRateId;
if(fromDFUI()){
this.showExchangeRateDF();
}else{
this.showExchangeRate();
}
}
}
function getFxRate(fxRateId) {
document.getElementById("processAction").value = 'getFxRate';
//alert("getFxRate() :: fxRateId " + fxRateId + " encode fxRateId : " + encodeURI(fxRateId));
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value)
+ "&fxRateId=" + encodeURI(fxRateId);
this.makePOSTRequest('getFxRate', '/jsp/bofa/ajax_request_processor.jsp', poststr);
}
function showExchangeRate() {
if (fxRate > 0) {
var usdAmount = 0;
hide('calcprogress');
hide('calcNote');
document.getElementById("fxRate").value = fxRate;
var revFxRateDisplay = roundFxRate(1 / fxRate);
var fwdFxRateDisplay = roundFxRate(fxRate);
var formattedAmount = formatAmount(document.getElementById("amount").value);
var fxAmount = (formattedAmount * fxRate);
var fromCurrency = getFromCurrency();
var toCurrency = null;
var fxRateDivText = null;
if ('USD' == fromCurrency) {
usdAmount = document.getElementById("amount").value;
toCurrency = document.getElementById('currencyCode').value;
fxRateDivText = fwdFxRateDisplay + " " + toCurrency + "<br>1 " + toCurrency + " = " + revFxRateDisplay;
} else {
usdAmount = fxAmount;
toCurrency = 'USD';
fxRateDivText = revFxRateDisplay + " " + fromCurrency + "<br>1 " + fromCurrency + " = " + fwdFxRateDisplay;
}
document.getElementById("fxAmountPar").innerHTML = "This equates to:<br>" + roundOffAmount(toCurrency, fxAmount) + " " + toCurrency;
document.getElementById("fxRateDiv").innerHTML = "<span class='bold'>Exchange Rate:</span><br>1 USD = " +
fxRateDivText + " USD</div>";
hide_modal_dialog();
showDropDown("makeTransferForm");
hide('expireDiv');
show('calcresult');
show('fxAmountPar');
document.getElementById('fxRateDiv').style.display="";
show('rateNotGoodPar');
renderSafePassIntl(usdAmount);
this.startTimer();
} else {
var fromCurrency = getFromCurrency();
hide('calcprogress');
show('calcresult');
hide('fxAmountPar');
document.getElementById('fxRateDiv').style.display="none";
hide('rateNotGoodPar');
document.getElementById('acceptFXRate').disabled = true;
show('rateUnavailableSpan');
}
document.getElementById("curr_fx").disabled = false;
document.getElementById("curr_usd").disabled = false;
document.getElementById("amountFX").disabled = false;
}
function showExchangeRateDF() {
if (fxRate > 0) {
var usdAmount = 0;
hide('calcprogress');
hide('calcNote');
document.getElementById("fxRate").value = fxRate;
var revFxRateDisplay = roundFxRate(1 / fxRate);
var fwdFxRateDisplay = roundFxRate(fxRate);
var formattedAmount = formatAmount(document.getElementById("amount").value);
var fxAmount = (formattedAmount * fxRate);
var fromCurrency = getFromCurrency();
var toCurrency = null;
var fxRateDivText = null;
if ('USD' == fromCurrency) {
usdAmount = document.getElementById("amount").value;
toCurrency = document.getElementById('currencyCode').value;
fxRateDivText = fwdFxRateDisplay + " " + toCurrency + "<br>1 " + toCurrency + " = " + revFxRateDisplay;
} else {
usdAmount = fxAmount;
toCurrency = 'USD';
fxRateDivText = revFxRateDisplay + " " + fromCurrency + "<br>1 " + fromCurrency + " = " + fwdFxRateDisplay;
}
showDropDown("makeTransferForm");
hide('expireDiv');
show('fxAmountPar');
show('rateNotGoodPar');
renderSafePassIntl(usdAmount);
} else {
var fromCurrency = getFromCurrency();
hide('alert');
hide_modal_dialog();
if(document.getElementById('intlTransferType').value == 'fxWire' ){
hide('calcprogress');
if(fxRate < 0 ){
show('ServiceUnavailableSpan');
validateMakeTransferFields();
} else {
show('rateUnavailableSpan');
}
} else{
hide('calcprogressUsdWires');
if(fxRate < 0 ){
show('ServiceUnavailableSpanUsd');
validateMakeTransferFields();
} else {
show('rateUnavailableSpanUsdWies');
}
}
}
document.getElementById("curr_fx").disabled = false;
document.getElementById("curr_usd").disabled = false;
document.getElementById("amountFX").disabled = false;
if (fxRate > 0) {
makeInternationalTransfer();
}else{
if(fxRate == -2){
hide_modal_dialog();
toggle_visibility('alert','Please wait while your transaction is being processed..','center');
}
}
}
var t1,t2;
function startTimer() {
var reminderMessage = "Your currency exchange rate quote is good for 10 minutes, and it has now been 8 minutes since you received this quote. Your rate quote will become invalid in 2 minutes.";
t1 = window.setTimeout("toggle_visibility('alertDiv','" + reminderMessage + "')", '480000');
t2 = window.setTimeout("reCalculateRate()", '600000');
}
function reCalculateRate() {
hide('alertDiv');
var expireMessage = "Your previous currency exchange rate quote has expired after 10 minutes. A new rate quote is now being calculated and will display momentarily. Once you get the new quote, you can then choose whether or not to accept it.";
toggle_visibility('expireDiv', expireMessage);
this.calculateRate();
}
function roundDecimals(num, decimals) {
var result = num;
if (isNumeric(num)) {
result = Math.round(Math.round(num * Math.pow(10, decimals + 1)) / Math.pow(10, 1)) / Math.pow(10, decimals);
result = (new Number(result)).toString();
}
return result;
}
function roundFxRate(originalRate) {
var formattedRate = '';
if (originalRate != null) {
originalRate = (new Number(originalRate)).toString();
if (originalRate != '' && originalRate != 'undefined' && originalRate.indexOf(".") > -1) {
formattedRate = originalRate.substring(0, originalRate.indexOf(".") + 1);
var residue = '';
var charArray = originalRate.substring(originalRate.indexOf(".") + 1).split('');
var flag = false;
if (charArray != null) {
for (var i = 0; i < charArray.length; i++) {
if (charArray[i] == 0 && !flag) {
formattedRate += charArray[i];
} else {
residue += charArray[i];
flag = true;
}
}
}
residue = residue.toString();
if (residue != 'undefined' && residue.length > 4) {
residue = residue.substring(0, 5);
formattedRate += residue;
var len = formattedRate.substring(formattedRate.indexOf(".") + 1).length;
formattedRate = roundDecimals(formattedRate, (len - 1));
} else {
formattedRate += residue;
}
} else {
formattedRate = originalRate;
}
}
return formattedRate;
}
function fillAmount() {
if(!fromDFUI()){
if ("undefined" != document.getElementById('emailBody')) {
if(true == isFromTnUI()){
// when there is error condition or from editPayment then amountVal is blank
if("undefined" != document.getElementById('amountVal') && document.getElementById('amountVal').value == ""){
var tempemailtxt = 'Hi,\n\n'+document.getElementById('amount').value+' '+getFromCurrency()+' is being transferred electronically to your account at <<FI_NAME>>.\n\nContact me directly if you have any questions. I\'ve chosen to have this message sent from my bank to confirm that the transfer is scheduled.\n\nRegards,\nBOB\n';
tempemailtxt = tempemailtxt.replace(/\n/g, "<br>");
document.getElementById('emailBody').innerHTML = tempemailtxt;
} else {
document.getElementById('emailBody').innerHTML = eval("'" + document.getElementById("amountVal").value + "'");
}
}
var eVal = document.getElementById('emailBody').innerHTML;
var amountEmailTxt = eVal.replace(/<[bB][rR]>/g, "\n");
document.getElementById("emailBodytxt").value = amountEmailTxt;
}
if ("undefined" != document.getElementById('emailSubject') && null != document.getElementById('emailSubject')) {
document.getElementById('emailSubject').value = 'Money Transfer from BOB\n';
}
}
}
function fillIt() {
if(!fromDFUI()){
if ("undefined" != document.getElementById('emailBody')) {
document.getElementById('emailBody').value = 'Hi,\n\n'+document.getElementById('amount').value+' '+getFromCurrency()+' is being transferred electronically to your account at <<FI_NAME>>.\n\nContact me directly if you have any questions. I\'ve chosen to have this message sent from my bank to confirm that the transfer is scheduled.\n\nRegards,\nBOB\n';
}
if ("undefined" != document.getElementById('emailSubject')) {
document.getElementById('emailSubject').value = 'Money Transfer from BOB\n';
}
}
}
function fillEmailOnError() {
if(!fromDFUI()){
//alert("fillEmailOnError");
if ("undefined" != document.getElementById('emailBody')) {
var tempemailtxt = 'Hi,\n\n'+document.getElementById('amount').value+' '+getFromCurrency()+' is being transferred electronically to your account at <<FI_NAME>>.\n\nContact me directly if you have any questions. I\'ve chosen to have this message sent from my bank to confirm that the transfer is scheduled.\n\nRegards,\nBOB\n';
tempemailtxt = tempemailtxt.replace(/\n/g, "<br>");
var emailBody = 'Hi,\n\n'+document.getElementById('amount').value+' '+getFromCurrency()+' is being transferred electronically to your account at <<FI_NAME>>.\n\nContact me directly if you have any questions. I\'ve chosen to have this message sent from my bank to confirm that the transfer is scheduled.\n\nRegards,\nBOB\n';
document.getElementById('emailBody').innerHTML = tempemailtxt;
document.getElementById("emailBodytxt").value = emailBody;
}
if ("undefined" != document.getElementById('emailSubject') && null != document.getElementById('emailSubject')) {
document.getElementById('emailSubject').value = 'Money Transfer from BOB\n';
}
}
}
function resetEmailText() {
document.getElementById("emailSubject").value = 'Money Transfer from BOB\n';
document.getElementById("emailBody").value = 'Hi,\n\n'+document.getElementById('amount').value+' '+getFromCurrency()+' is being transferred electronically to your account at <<FI_NAME>>.\n\nContact me directly if you have any questions. I\'ve chosen to have this message sent from my bank to confirm that the transfer is scheduled.\n\nRegards,\nBOB\n';
}
function disableButton(buttonId) {
if(document.getElementById(buttonId) == null)
return;
document.getElementById(buttonId).className = "inactive";
document.getElementById(buttonId).href = "javascript:void(0);"
//alert(document.getElementById(buttonId + 'Label').innerHTML);
document.getElementById(buttonId).title = document.getElementById(buttonId + 'Label').innerHTML + '- Unavailable';
}
function enableButton(buttonId) {
document.getElementById(buttonId).className = "button";
document.getElementById(buttonId).href = "javascript:void(0);"
//alert(document.getElementById(buttonId + 'Label').innerHTML);
document.getElementById(buttonId).title = document.getElementById(buttonId + 'Label').innerHTML
}
function changeButtonValueToMakeTransfer(buttonId) {
if(document.getElementById(buttonId) == null)
return;
if(fromDFUI())
document.getElementById(buttonId).innerHTML = "Continue";
else
document.getElementById(buttonId).innerHTML = "Make Transfer";
}
function changeButtonTitleToMakeTransfer(buttonId) {
if(document.getElementById(buttonId) == null)
return;
if(fromDFUI()){
document.getElementById(buttonId).title = document.getElementById(buttonId + 'Label').innerHTML + '- Unavailable';
}else{
document.getElementById(buttonId).title = "Make Transfer - Unavailable";
}
}
function changeButtonValueToContinueTransfer(buttonId) {
if(document.getElementById(buttonId) == null)
return;
document.getElementById(buttonId).innerHTML = "Continue Transfer";
}
function changeButtonTitleToContinueTransfer(buttonId) {
if(document.getElementById(buttonId) == null)
return;
document.getElementById(buttonId).title = document.getElementById(buttonId + 'Label').innerHTML + '- Unavailable'
}
function renderSafePassDomestic() {
var amount = document.getElementById('amount').value;
if (amount != '' && isNumeric(amount)) {
//alert("1..");
amount = amount.toString();
amount = amount.replace(/,/g, "");
var safePassLimit = '1000.0';
var safePassSwitch = 'safePass';
var activityStatus = '';
if (Number(amount) <= safePassLimit || 'Y' == activityStatus) {
if (document.getElementById('amountErrImageSpan') != null) {
document.getElementById('amountList').className = "inerror";
} else {
document.getElementById('amountList').className = "";
}
//alert("amount < SafepassLimit");
hide('safePassErrSpan');
hide('amountSpacingSpan');
hide("safePassSpan");
if(document.getElementById('completeTransferBtn') != null){
document.getElementById('completeTransferBtn').className = 'button';
document.getElementById('completeTransferBtn').title = document.getElementById('completeTransferBtnLabel').innerHTML;
document.getElementById('completeTransferBtn').href = "javascript:makeDomesticTransfer();";
updateAuralText( 'transferBtnAuralText' , '');
}
} else if (Number(amount) > safePassLimit) {
//alert("amount > safePassLimit ::safePassSwitch " + safePassSwitch);
if ('safePass' == safePassSwitch) {
show("safePassSpan");
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
var isSmltr = false
if(isSmltr){
if(null!=document.getElementById('makeTransferType')){
document.getElementById('makeTransferType').value='dom';
}
verifySafepassSimulator(false);
}
} else if ('safePassRegisterLink' == safePassSwitch) {
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
if(true == isFromTnUI()){
document.getElementById('amountList').className = 'errorboxtop2';
}
else
document.getElementById('amountList').className = 'errorfield';
hide('amountErrImageSpan');
show('amountSpacingSpan');
show('safePassErrSpan');
//alert("safepass registerlink");
}else if(true == isFromTnUI()) {
if(document.getElementById('completeTransferBtn') != null)
document.getElementById('completeTransferBtn').href = "javascript:makeDomesticTransfer();";
updateAuralText( 'transferBtnAuralText' , '');
}
}
} else {
//disableButton('completeTransferBtn');
}
}
function renderSafePassIntl(amount) {
if (amount != '' && isNumeric(amount)) {
amount = amount.toString();
amount = amount.replace(/,/g, "");
//alert("1");
var errMsg = '';
var errMsgLimitErrDF = '';
if (amount > 50000 && errMsg != null && errMsg != '') {
holidaySafePassLimitCheck(amount);
//alert("2");
}else if ( amount > 2000000 && fromDFUI() && errMsgLimitErrDF != null && errMsgLimitErrDF != '' ) {
limitErrorCheck(amount);
fxRate = -2;
}else {
var safePassLimit = '1000.0';
var safePassSwitch = 'safePass';
var activityStatus = '';
//alert("3. safePassLimit " + safePassLimit + " safePassSwitch " + safePassSwitch + " activityStatus " + activityStatus);
if (Number(amount) <= safePassLimit || 'Y' == activityStatus) {
hide(getSafePassErrSpanId());
hide("safePassSpan");
if(document.getElementById('completeTransferBtn') != null && ( fromDFUI() || document.getElementById('acceptFXRate').checked || "usdWire" == document.getElementById('intlTransferType').value ) ) {
enableEasButton('completeTransferBtn');
document.getElementById('completeTransferBtn').className = 'button';
document.getElementById('completeTransferBtn').title = document.getElementById('completeTransferBtnLabel').innerHTML;
document.getElementById('completeTransferBtn').href = "javascript:makeInternationalTransfer();";
}
updateAuralText( 'transferBtnAuralText' , '');
//alert("4. completeTransferBtn javascript:makeInternationalTransfer()" );
document.getElementById(getSafePassErrDivId()).className = "";
} else if (Number(amount) > safePassLimit) {
if ('safePass' == safePassSwitch) {
if(!fromDFUI()){
show("safePassSpan");
disableButton('completeTransferBtn');
disableEasButton('completeTransferBtn','inactive');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
} else {
document.getElementById('completeTransferBtn').className = 'button';
document.getElementById('completeTransferBtn').title = document.getElementById('completeTransferBtnLabel').innerHTML;
document.getElementById('completeTransferBtn').href = "javascript:makeInternationalTransfer();";
}
var isSmltr = false
if(isSmltr){
if(null!=document.getElementById('makeTransferType')){
document.getElementById('makeTransferType').value='intr';
}
verifySafepassSimulator(false);
}
} else if ('safePassRegisterLink' == safePassSwitch) {
disableButton('completeTransferBtn');
disableEasButton('completeTransferBtn','inactive');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
document.getElementById(getSafePassErrDivId()).className = "errorbox";
show(getSafePassErrSpanId());
document.getElementById(getSafePassErrSpanId()).innerHTML = '<br><br>';
if(fromDFUI()){
fxRate = -2;
}
} else if(true == isFromTnUI()) {
if(document.getElementById('completeTransferBtn') != null)
document.getElementById('completeTransferBtn').href = "javascript:makeInternationalTransfer();";
updateAuralText( 'transferBtnAuralText' , '');
}
}
}
} else {
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
}
}
function renderSafePassIntlUsd() {
var amount = document.getElementById('amount').value;
//alert("inside renderSafePassIntlUsd");
if (amount != '' && isNumeric(amount)) {
amount = amount.toString();
amount = amount.replace(/,/g, "");
var safePassLimit = '1000.0';
var safePassSwitch = 'safePass';
var activityStatus = '';
if (Number(amount) <= safePassLimit || 'Y' == activityStatus) {
if (document.getElementById('amountErrImageSpan') != null) {
document.getElementById('amountList').className = "inerror";
} else {
document.getElementById('amountList').className = "";
}
hide('safePassErrSpan');
hide('amountSpacingSpan');
hide("safePassSpan");
document.getElementById('completeTransferBtn').className = 'button';
document.getElementById('completeTransferBtn').title = document.getElementById('completeTransferBtnLabel').innerHTML;
document.getElementById('completeTransferBtn').href = "javascript:makeInternationalTransfer();";
updateAuralText( 'transferBtnAuralText' , '');
} else if (Number(amount) > safePassLimit) {
if ('safePass' == safePassSwitch) {
show("safePassSpan");
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
} else if ('safePassRegisterLink' == safePassSwitch) {
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
document.getElementById('amountList').className = 'errorfield';
hide('amountErrImageSpan');
show('amountSpacingSpan');
show('safePassErrSpan');
}
if(true == isFromTnUI()) {
document.getElementById('completeTransferBtn').href = "javascript:makeInternationalTransfer();";
updateAuralText( 'transferBtnAuralText' , '');
}
}
} else {
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
}
}
function show1(obj) {
obj = findObj(obj);
if (!obj)return;
if (dom || ie) {
obj.style.visibility = "visible";
obj.style.display = ""
} else if (ns) {
if (document.layers[obj]) {
obj.visibility = "show";
obj.display = ""
}
}
}
// Hide an object.
function hide1(obj) {
obj = findObj(obj);
if (!obj)
return;
if (dom || ie) {
obj.style.visibility = "hidden";
obj.style.display = "none"
} else if (ns) {
if (document.layers[obj]) {
obj.visibility = "hide";
obj.display = "none"
}
}
}
function isNumeric(sText) {
var validChars = "0123456789.,";
var isNumber = true;
var character;
if(sText == null)
return false;
for (var i = 0; i < sText.length && isNumber; i++) {
character = sText.charAt(i);
if (validChars.indexOf(character) == -1) {
isNumber = false;
}
}
return isNumber;
}
function textCounter(field, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
}
function editPaymentDetails() {
document.getElementById("processAction").value = 'editPayment';
document.getElementById("makeTransferForm").submit();
}
function renderFirstTransfer() {
if (document.getElementById("paymentFreq").value == "-1" || document.getElementById("paymentFreq").value == "0") {
hide('firstTransferSpan');
} else {
show('firstTransferSpan');
}
}
function isAccountCategoryChanged() {
var check = "false";
if (check == "true") {
document.getElementById("processAction").value = "checkAccountCategory";
var newFromAccount = document.getElementById("fromCFIId").value;
var toCFISelect = this.getToCfiSelect();
var newToAccount = toCFISelect.value;
var oldFromAccount = "0";
var oldToAccount = "0";
var fromIdx = document.getElementById("fromCFIId").selectedIndex;
var fromAccountNewCategory = document.getElementById("fromCFIId").options[fromIdx].parentNode.label;
var toIdx = toCFISelect.selectedIndex;
var toAccountNewCategory = toCFISelect.options[toIdx].parentNode.label;
var poststr = "processAction=checkAccountCategory" + "&newFromCFIId=" + encodeURI(newFromAccount) + "&newToCFIId=" + encodeURI(newToAccount)
+ "&oldFromCFIId=" + encodeURI(oldFromAccount) + "&oldToCFIId=" + encodeURI(oldToAccount) + "&fromCategory=" + encodeURI(fromAccountNewCategory)
+ "&toCategory=" + toAccountNewCategory;
this.makePOSTRequest("checkAccountCategory", '/jsp/bofa/ajax_request_processor.jsp', poststr);
}
}
function trim(stringToTrim) {
return stringToTrim.replace(/^\s+|\s+$/g, "");
}
function resetAllNew(){
document.getElementById('curr_fx').checked = false;
document.getElementById('curr_usd').checked = false;
// if (fxRate > 0) {
// //var usdAmount = 0;
// hide('calcprogress');
// hide('calcNote');
// alert("hide calcNote");
// }else
{
show('calcNote');
//alert("show calcNote");
}
}
function resetAll() {
// document.getElementById('usdTransfer').disabled = false;
// document.getElementById('fxTransfer').disabled = false;
if(!fromDFUI())
document.getElementById('acceptFXRate').disabled = false;
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
hide('rateUnavailableSpan');
hide('safePassErrSpanUsd');
hide('safePassErrSpanFX');
hide("safePassSpan");
clearTimeout(t1);
clearTimeout(t2);
hide('calcresult');
hide('exchangeInfoSpan');
document.getElementById('safePassErrDivUsd').className = "";
document.getElementById('safePassErrDivFX').className = "";
// document.getElementById('usdTransfer').checked = false;
// document.getElementById('fxTransfer').checked = false;
if(fromDFUI()){
hide('limitErrorMessageId');
hide('limitErrorMessageIdUsd');
}
if(!fromDFUI())
document.getElementById('acceptFXRate').checked = false;
hide('disableInternationalTransfermessage');
}
function formatAmount(amount) {
if (amount != '' && isNumeric(amount)) {
amount = amount.toString();
amount = amount.replace(/,/g, "");
}
return amount;
}
function holidaySafePassLimitCheck(usdAmount) {
// document.getElementById('usdTransfer').disabled = true;
// document.getElementById('fxTransfer').disabled = true;
document.getElementById('acceptFXRate').disabled = true;
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
document.getElementById(getSafePassErrDivId()).className = "errorbox";
document.getElementById(getSafePassErrSpanId()).innerHTML = '<br><br>';
show(getSafePassErrSpanId());
hide("safePassSpan");
}
function limitErrorCheck(usdAmount) {
disableButton('completeTransferBtn');
updateAuralText( 'transferBtnAuralText' , '- Unavailable');
document.getElementById(getSafePassErrDivId()).className = "errorbox";
document.getElementById(getSafePassErrSpanId()).innerHTML = '';
show(getSafePassErrSpanId());
if("usdWire" == document.getElementById('intlTransferType').value) {
show('limitErrorMessageIdUsd');
}else{
show('limitErrorMessageId');
}
hide("safePassSpan");
}
function renderExcInfo() {
if (document.getElementById('usdTransfer').checked) {
show('exchangeInfoSpan');
} else {
hide('exchangeInfoSpan');
}
}
function updateEmailNew() {
// alert('new');
if(document.getElementById('intlTransferType').value == 'usdWire') {
//alert('updateEmail in if : intltype.value :' + document.getElementById('intlTransferType').value);
fillAmount();
} else {
//alert('updateEmail in else : intltype.value :' + document.getElementById('intlTransferType').value);
fillAmount();
// alert('from curr: ' + getFromCurrency());
var fromCurr = getFromCurrency();
if("USD" == fromCurr || fromCurr == '') {
// alert('accepted = ' + document.getElementById('acceptFXRate').checked);
if(!fromDFUI() && document.getElementById('acceptFXRate').checked == true) {
// alert('innerHTML = ' + document.getElementById("fxAmountPar").innerHTML);
var curText = document.getElementById("fxAmountPar").innerHTML.split(":");
var emailBody = document.getElementById('emailBody').innerHTML
.replace(document.getElementById('amount').value + " USD", curText[1].replace("<br>", "").replace("<BR>", ""));
document.getElementById('emailBodytxt').value = emailBody.replace(/<[bB][rR]>/g, "\n");;
document.getElementById('emailBody').innerHTML = emailBody;
} else if(!fromDFUI()) {
//alert('updateEmail fx fromCurrency : ' + document.getElementById('emailBody').value );
// alert('emailBodytxt = ' + document.getElementById('emailBodytxt').value);
// alert('emailBody = ' + document.getElementById('emailBody').innerHTML);
// alert('currencyCode = ' + document.getElementById('currencyCode').value);
var emailBody = document.getElementById('emailBody').innerHTML
.replace(document.getElementById('amount').value + " USD", document.getElementById('currencyCode').value);
document.getElementById('emailBodytxt').value = emailBody.replace(/<[bB][rR]>/g, "\n");;
document.getElementById('emailBody').innerHTML = emailBody;
//alert('updateEmail fx fromCurrency : ' + document.getElementById('emailBody').value );
}
}
}
}
function showhidecheck() {
if(document.getElementById('sendMail').checked != true){
hide('send1');
enableMakeTransfer();
}else {
show('send1');
validateMakeTransferFields();
}
}
function updateEmail() {
//alert('updateEmail');
if(document.getElementById('intlTransferType').value == 'usdWire') {
fillIt();
} else {
fillIt();
if("USD" == getFromCurrency()) {
if(!fromDFUI()){
if(document.getElementById('acceptFXRate').checked == true) {
var curText = document.getElementById("fxAmountPar").innerHTML.split(":");
document.getElementById('emailBody').value = document.getElementById('emailBody').value
.replace(document.getElementById('amount').value + " USD", curText[1].replace("<br>", "").replace("<BR>", ""));
} else {
document.getElementById('emailBody').value = document.getElementById('emailBody').value
.replace(document.getElementById('amount').value + " USD", document.getElementById('currencyCode').value);
}
}
}
}
}
function roundOffAmount(toCurrency, fxAmount) {
var result = fxAmount;
if (isNumeric(fxAmount)) {
var currencies = "JPY,ISK,KRW,MGA,VUV,XAF,XPF,ARS,UGX";
if (currencies == null || currencies == 'undefined') {
currencies = '';
}
var noCents = currencies.split(",");
var flag = false;
for (var i = 0; i < noCents.length; i++) {
if (noCents[i] == toCurrency) {
flag = true;
break;
}
}
if (flag) {
show('amountRoundOffSpan');
result = Math.round(new Number(fxAmount));
} else {
hide('amountRoundOffSpan');
result = roundDecimals((new Number(fxAmount)).toString(), 2);
result = (new Number(result)).toFixed(2);
}
}
return result;
}
function isFromTnUI(){
if(document.getElementById("fromTNUI")!= undefined && document.getElementById("fromTNUI")!=null )
return true;
else
return false;
}
function fromDFUI(){
if(document.getElementById("fromDFUI")!= undefined && document.getElementById("fromDFUI")!=null ){
return true;
}else {
return false;
}
}
function checkCurrencyForIntlAcct() {
hide('divDefaultCurrency');
if( null != document.getElementById("defCurrencyCode"))
document.getElementById("defCurrencyCode").selectedIndex = -1;
else
document.getElementById("currencyCode").selectedIndex = -1;
var toCfi = getToCfiSelect();
var toIdx = toCfi.selectedIndex;
var toCfiId = toCfi.options[toIdx].value;
var elementId = "currencyCode";
if(true == isFromTnUI()) {
elementId = "defCurrencyCode";
if(document.getElementById("cfiDetail_currCode_" + toCfiId) != null && document.getElementById("cfiDetail_currCode_" + toCfiId).innerHTML == ''){
hide('divIntlUSDTxn');
hide('divIntlFXTxn');
}
}
if(document.getElementById("cfiDetail_isIntl_" + toCfiId) != null) {
if(document.getElementById("cfiDetail_isIntl_" + toCfiId).innerHTML == 'yes'
&& document.getElementById("cfiDetail_currCode_" + toCfiId).innerHTML != 'USD') {
//alert("Non-USD in checkCurrencyForIntlAcct()");
document.getElementById("processAction").value = 'getCurrencies';
var poststr = "processAction=" + encodeURI(document.getElementById("processAction").value)
+ "&elementId=" + elementId + "&countryCode=" + encodeURI(document.getElementById("cfiDetail_country_" + toCfiId).innerHTML);
makePOSTRequest('getCurrencies', '/jsp/bofa/ajax_request_processor.jsp', poststr);
} else if(true == isFromTnUI() && document.getElementById("cfiDetail_isIntl_" + toCfiId).innerHTML == 'yes') {
submitAccountDetails('intl');
}
}
}
function showNote() {
var elementId = "currencyCode";
if(true == isFromTnUI()) {
elementId = "defCurrencyCode";
}
if(document.getElementById(elementId).value == 'USD') {
show('divUSDSel');
} else {
hide('divUSDSel');
}
}
function getSafePassErrSpanId() {
if("usdWire" == document.getElementById('intlTransferType').value) {
return 'safePassErrSpanUsd';
} else {
return 'safePassErrSpanFX';
}
}
function getSafePassErrDivId() {
if("usdWire" == document.getElementById('intlTransferType').value) {
return 'safePassErrDivUsd';
} else {
return 'safePassErrDivFX';
}
}
function showIntlFxDiv() {
if (true == isFromTnUI()) {
changeButtonValueToMakeTransfer('completeTransferBtnLabel');
changeButtonTitleToMakeTransfer('completeTransferBtn');
show('intlWireSpan');
}
var currencySelect = document.getElementById('currencySel');
var selCurrencyIdx = currencySelect.selectedIndex;
var selCurrency = currencySelect.options[selCurrencyIdx];
//alert('selCurr = ' + selCurrency.value + ', ' + selCurrency.text);
document.getElementById('currencyCode').value = selCurrency.value;
if(selCurrency.value == 'USD') {
document.getElementById('intlTransferType').value = 'usdWire';
//alert("1:::" + document.getElementById('intlTransferType').value);
document.getElementById('curr_fx').value = '';
document.getElementById('curr_fx_label').innerHTML = '';
document.getElementById('paymentSentCurrSpan').innerHTML = '';
hide('divIntlFXTxn');
show('divIntlUSDTxn');
} else {
document.getElementById('intlTransferType').value = 'fxWire';
//alert("2:::" + document.getElementById('intlTransferType').value);
document.getElementById('curr_fx').value = selCurrency.value;
document.getElementById('curr_fx_label').innerHTML = selCurrency.text;
document.getElementById('paymentSentCurrSpan').innerHTML = selCurrency.text;
hide('divIntlUSDTxn');
show('divIntlFXTxn');
// alert('Curr Labels = ' + document.getElementById('curr_fx_label').innerHTML + ', ' + document.getElementById('paymentSentCurrSpan').innerHTML);
}
document.getElementById('currencySel').value = 'USD';
document.getElementById('amount').value = '';
document.getElementById('amountFX').value = '';
document.getElementById('amountUsd').value = '';
updateEmail();
if(fromDFUI())
document.getElementById('usdToFx').value = true;
}
function getFromCurrency() {
if(document.getElementById('intlTransferType').value == 'usdWire') {
return 'USD';
} else {
var fromCurrencyRadio = document.getElementsByName('fromCurrency');
for(var i = 0; i < fromCurrencyRadio.length; i++) {
// alert('from curr radio ' + i + ' = ' + fromCurrencyRadio[i].value + ', ' + fromCurrencyRadio[i].checked);
if(fromCurrencyRadio[i].checked) {
return fromCurrencyRadio[i].value;
}
}
}
return '';
}
function updateAuralText( id , text ){
if(document.getElementById(id )!= undefined){
var auralTextElement = document.getElementById( id );
auralTextElement.innerHTML = text;
}
}
function makeDFTransfer() {
if(fromDFUI() && null!=getFromCurrency() && ''!=getFromCurrency()){
// if(document.getElementById('intlTransferType').value == 'fxWire' ){
if(null!=document.getElementById('intlTransferType').value && ''!=document.getElementById('intlTransferType').value ) {
calculateRate();
}
// }
}
}
// This method will set the hidden parameter 'businessAccountSelected''s value as
// BusinessSelected if and only if, user uses Business Account for Make Transfer.
// If business Account is selected, we will show Dodd Frank in-eligible pages for
// Make Transfer.
function setAccountType() {
var fromIdx = document.getElementById("fromCFIId").selectedIndex;
var fromSelectedText = document.getElementById("fromCFIId").options[fromIdx].text;
if(document.getElementById('businessAccountSelected')!=null
&& document.getElementById('businessAccountSelected')!='undefined'
&& document.getElementById('businessAccountSelected')!=undefined){
if (fromSelectedText.indexOf("Business") !=-1)
document.getElementById('businessAccountSelected').value='true';
else
document.getElementById('businessAccountSelected').value='false';
}
}
//This method validated form fields in case of
// make International transfer Dodd Frank Flow.
function validateMakeTransferFields() {
if(!fromDFUI() || null==document.getElementById('intlTransferType').value || ''==document.getElementById('intlTransferType').value )
return;
var isNull = null;
var canEnable = null;
if(document.getElementById('amountFX') != null) {
isNull = document.getElementById('amountFX').value.replace(/,/g, "");
if(isNull > 0)
canEnable = 'Y';
}
if( ( null==isNull || ''==isNull)&& document.getElementById('amountUsd') != null) {
isNull = document.getElementById('amountUsd').value;
if(isNull > 0)
canEnable = 'Y';
}
if(document.getElementById('sendMail') != null && document.getElementById('sendMail').checked) {
// amount is entered and send email is checked, but no email value is entered.
if((isNull > 0) && (document.getElementById('emailTo') == null || document.getElementById('emailTo').value == ''))
canEnable = null;
}
if (document.getElementById("behalf") != null && document.getElementById("behalf").checked) {
var selectedIndex = document.getElementById("obdCountryCode").selectedIndex;
// amount is entered and OnBehalf is checked, but one of the required info is not filled
if((isNull > 0) && ((document.getElementById("obdName") == null || document.getElementById("obdName").value == '')
|| (document.getElementById("obdReferenceId") == null || document.getElementById("obdReferenceId").value == '')
|| (document.getElementById("obdEmailId") == null || document.getElementById("obdEmailId").value == '')
|| (document.getElementById("obdStreetAddress") == null || document.getElementById("obdStreetAddress").value == '')
|| (document.getElementById("obdCity") == null || document.getElementById("obdCity").value == '')
|| selectedIndex <= 0)) {
canEnable = null;
}
var stateSel;
var stateVal;
if (null != document.getElementById("obdCountryCode") && (document.getElementById("obdCountryCode").style.display != 'none')) {
stateSel = document.getElementById("obdCountryCode");
if (null != stateSel) {
stateVal = stateSel.value;
if('US' == stateVal ){
if( isNull > 0 && ( document.getElementById("obdPostalCode") == null || document.getElementById("obdPostalCode").value == '' ))
canEnable = null;
}else if(null!=canEnable ) {
canEnable = 'Y';
}
}
}
}
if('Y' == canEnable) {
enableMakeTransfer();
} else {
disableButton('completeTransferBtn');
disableEasButton('completeTransferBtn','inactive');
}
}
function CheckPurposeForTransferValue() {
var p = document.getElementById("purposeForTransferId");
var ps = p.options[p.selectedIndex].value;
if (ps=="O") {
show('purposeother');
}
else{
hide('purposeother');
}
}
function setPhoneNumberValue(value){
var phoneLength = document.getElementById('phoneNumber').maxLength;
var valueToBePassed = value +':' +phoneLength;
document.getElementById('receiptPhNo').value = valueToBePassed;
}
function setTaxIdValue(value,name,isBusiness){
var valueToBePassed = value +':' +name+':'+isBusiness;
document.getElementById('taxIdHid').value = valueToBePassed;
}
function renderResidentCode(){
residentCodeDiv.innerHTML = '<span class="bold">Recipient\'s KBE Code *&nbsp;</span><span id="kbeToolTipId" class="relative"></span><br>';
residentCodeDiv.innerHTML = residentCodeDiv.innerHTML + '<input type="text" value="(2 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="residentCodeKZ" id="residentCode" maxlength="2" onkeyup="document.getElementById(\'residentCodeHid\').value = this.value+\':KZ\';"><br><br>';
if('BLANK'!='') {
document.getElementById('residentCode').value = '';
document.getElementById('residentCodeHid').value = ''+':KZ';
}else{
document.getElementById('residentCodeHid').value = 'BLANK:KZ';
}
show('residentCodeDiv');
showKbeToolTip();
}
function renderPaymentCode(){
paymentCodeDiv.innerHTML = '<span class="bold">KNP Code *&nbsp;</span><span id="knpToolTipId" class="relative"></span><br>';
paymentCodeDiv.innerHTML = paymentCodeDiv.innerHTML + '<input type="text" value="(3 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="paymentCodeKZ" id="paymentCode" maxlength="3" onkeyup="document.getElementById(\'paymentCodeHid\').value = this.value+\':KZ\';"><br><br>';
if('BLANK'!='') {
document.getElementById('paymentCode').value = '';
document.getElementById('paymentCodeHid').value = ''+':KZ';
}else {
document.getElementById('paymentCodeHid').value = 'BLANK:KZ';
}
show('paymentCodeDiv');
showKnpToolTip();
}
function renderBankCode(name){
if('RU'==name)
bankCodeDiv.innerHTML = '<span class="bold">Recipient\'s VO Code *</span> (Bank Code)&nbsp;<br>';
else if('BR'==name)
bankCodeDiv.innerHTML = '<span class="bold">Agency Code (Bank Code) *&nbsp;</span><br>';
if('RU'==name)
bankCodeDiv.innerHTML = bankCodeDiv.innerHTML + '<input type="text" value="(5 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="bankCodeRU" id="bankCode" maxlength="5" onkeyup="document.getElementById(\'bankCodeHid\').value = this.value+\':RU\';"><br><br>';
else if('BR'==name)
bankCodeDiv.innerHTML = bankCodeDiv.innerHTML + '<input type="text" value="(5 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="bankCodeBR" id="bankCode" maxlength="5" onkeyup="document.getElementById(\'bankCodeHid\').value = this.value+\':BR\';"><br><br>';
if('BLANK'!='') {
document.getElementById('bankCode').value = '';
document.getElementById('bankCodeHid').value = ''+':'+name;
} else {
document.getElementById('bankCodeHid').value = 'BLANK:'+name;
}
show('bankCodeDiv');
}
function renderPatronymic(){
patronymicDiv.innerHTML = '<span class="bold">Recipient\'s Patronymic * (Surname of the father)&nbsp;</span><br>';
patronymicDiv.innerHTML = patronymicDiv.innerHTML + '<input type="text" name="patronymicRU" id="patronymic" maxlength="12" onkeyup="document.getElementById(\'patronymicHid\').value = this.value+\':RU\';"><br><br>';
if('BLANK'!='') {
document.getElementById('patronymic').value = '';
document.getElementById('patronymicHid').value = ''+':RU';
}else {
document.getElementById('patronymicHid').value = 'BLANK:RU';
}
show('patronymicDiv');
}
function renderRecipientPhoneNumber(len,value){
if(len < 0)
return;
phoneNumberDiv.innerHTML = '<span class="bold"><label for="phoneNumberLabel">Recipient\'s Phone Number *&nbsp;</label></span><br>' ;
if(len==8){
phoneNumberDiv.innerHTML = phoneNumberDiv.innerHTML + '<input type="text" name="phoneChar8" id="phoneNumber" maxlength="8" value="(8 digits)" onfocus="if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " onkeyup="setPhoneNumberValue(this.value);"><br><br>';
show('phoneNumberDiv');
} else if(len==9) {
phoneNumberDiv.innerHTML = phoneNumberDiv.innerHTML + '<input type="text" name="phoneChar9" id="phoneNumber" maxlength="9" value="(9 digits)" onfocus="if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " onkeyup="setPhoneNumberValue(this.value);"><br><br>';
show('phoneNumberDiv');
} else if(len==10){
phoneNumberDiv.innerHTML = phoneNumberDiv.innerHTML + '<input type="text" name="phoneChar10" id="phoneNumber" maxlength="10" value="(10 digits)" onfocus="if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " onkeyup="setPhoneNumberValue(this.value);"><br><br>';
show('phoneNumberDiv');
}
if('BLANK'!=value) {
document.getElementById('phoneNumber').value = value;
document.getElementById('receiptPhNo').value = value+':'+len;
}else{
document.getElementById('receiptPhNo').value = 'BLANK:'+len;
}
}
function renderBranchName(name){
if('EG'==name || 'ET'==name || 'KE'==name)
branchNameDiv.innerHTML = '<span class="bold">Recipient\'s Bank Branch Name *&nbsp;</span><br>';
else if('VN'==name)
branchNameDiv.innerHTML = '<span class="bold">Bank Branch Name *&nbsp;</span><br>';
if('EG'==name)
branchNameDiv.innerHTML = branchNameDiv.innerHTML + '<input type="text" name="branchNameEG" id="branchName" maxlength="15" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':EG\';"><br><br>';
else if('ET'==name)
branchNameDiv.innerHTML = branchNameDiv.innerHTML + '<input type="text" name="branchNameET" id="branchName" maxlength="15" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':ET\';"><br><br>';
else if('KE'==name)
branchNameDiv.innerHTML = branchNameDiv.innerHTML + '<input type="text" name="branchNameKE" id="branchName" maxlength="15" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':KE\';"><br><br>';
else if('VN'==name)
branchNameDiv.innerHTML = branchNameDiv.innerHTML + '<input type="text" name="branchNameVN" id="branchName" maxlength="15" onkeyup="document.getElementById(\'branchNameHid\').value = this.value+\':VN\';"><br><br>';
if('BLANK'!='') {
document.getElementById('branchName').value = '';
document.getElementById('branchNameHid').value = ''+':'+name;
} else {
document.getElementById('branchNameHid').value = 'BLANK:'+name;
}
show('branchNameDiv');
}
function renderTaxId(countryCode,value,isBusiness) {
//IF no error then without error icon before label
//phoneNumberDiv.innerHTML = "<span class='bold'><label for='phoneNumberLabel'>Recipient's Phone Number *&nbsp;</label></span><br>" ;
if('AR'==countryCode ){
if (isBusiness =='false')
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s CUIL *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
else {
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s CUIT *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
}
if('BR'==countryCode ){
if (isBusiness =='false')
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s CPF number *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
else {
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s CNPJ number *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
}
if('CO'==countryCode ){
if (isBusiness =='false')
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient Individual\'s Cedula ID # *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
else {
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Company\'s NIT ID # (National Tax ID number) *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
}
if('CL'==countryCode ){
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s RUT # (Tax Payer ID Number) *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
if('CR'==countryCode ){
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s Cedula Juridica # (Individual ID Number) *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
if('GT'==countryCode ){
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s NIT # (National Tax ID) *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
if('RU'==countryCode ){
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s INN Tax Authority Number *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
if('KZ'==countryCode ){
taxIdDiv.innerHTML ='<span class="bold"><label for="taxIdLabel">Recipient\'s TRN (Tax Registration Number) *&nbsp;</label></span><span id="takIdToolTipId" class="relative"></span><br>';
}
showTaxIdToolTip(countryCode);
if('AR'==countryCode ){
if (isBusiness =='false')
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(12 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdAR" id="taxId" maxlength="12" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
else {
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(12 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} "name="taxIdAR" id="taxId" maxlength="12" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
}
show('taxIdDiv');
}
if('BR'==countryCode ){
if (isBusiness =='false')
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(11 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdBR" id="taxId" maxlength="11" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
else {
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(14 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdBR" id="taxId" maxlength="14" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
}
show('taxIdDiv');
show('agencyCodeDiv');
}
if('CO'==countryCode ){
if (isBusiness =='false')
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(9 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdCO" id="taxId" maxlength="9" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
else {
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" name="taxIdCO" id="taxId" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
}
show('taxIdDiv');
}
if('CL'==countryCode ){
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(9 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdCL" id="taxId" maxlength="9" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('CR'==countryCode ){
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(10 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdCR" id="taxId" maxlength="10" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('GT'==countryCode ){
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(8 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdGT" id="taxId" maxlength="8" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('RU'==countryCode ){
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(10 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdRU" id="taxId" maxlength="10" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('KZ'==countryCode ){
taxIdDiv.innerHTML =taxIdDiv.innerHTML +'<input type="text" value="(12 digits)" onfocus=" if(this.value == this.defaultValue){this.value = \'\';}" onblur= " if(this.value == \'\') { this.value = this.defaultValue;} " name="taxIdKZ" id="taxId" maxlength="12" onkeyup="setTaxIdValue(this.value,\''+countryCode+'\',\''+isBusiness+'\');"><br><br>';
show('taxIdDiv');
}
if('BLANK'!=value) {
document.getElementById('taxId').value = value;
document.getElementById('taxIdHid').value = value +':' +countryCode+':'+isBusiness;
} else {
document.getElementById('taxIdHid').value = 'BLANK:' +countryCode+':'+isBusiness;
}
}
function enableMakeTransfer() {
var safePassLimit = '1000.0';
var fromCurrency = getFromCurrency();
var formattedAmount = formatAmount(document.getElementById("amount").value);
var fxAmount = (formattedAmount * fxRate);
var usdAmount = 0;
if ('USD' == fromCurrency)
usdAmount = document.getElementById("amount").value;
else
usdAmount = fxAmount;
if(Number(usdAmount) < safePassLimit ||
( fromDFUI()
&& ( null==document.getElementById(getSafePassErrDivId()) || ''== document.getElementById(getSafePassErrDivId()).className ) )
){
enableEasButton('completeTransferBtn');
document.getElementById('completeTransferBtn').className = 'button';
document.getElementById('completeTransferBtn').title = document.getElementById('completeTransferBtnLabel').innerHTML;
document.getElementById('completeTransferBtn').href = "javascript:makeInternationalTransfer();";
updateAuralText( 'transferBtnAuralText' , '');
}
}
//Added to Show tooltip
function showTaxIdToolTip(countryCode){
if(null!=document.getElementById('takIdToolTipId')){
document.getElementById('takIdToolTipId').innerHTML='<div id="taxidpopup" class="box_pop_tax_id_transfer" style="display: none; visibility: hidden;"><div class="box_pop"> <table><tr>'
+'<td align="right" class="tooltip_close"><a onclick="hide(\'taxidpopup\');" id="colorboxclose" title="Close" href="javascript:void(0);"><span>'
+'Close</span></a></td></tr><tr><td class="module1text" id="taxPopuprow"></td></tr></table></div></div>&nbsp;&nbsp;<span onclick="show(\'taxidpopup\');"'
+'style="cursor: pointer;" class="linknormal">What is this?</span>';
if('AR'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The CUIT is a 12 digit tax ID number for corporations, the CUIL is the tax ID number for individuals.";
}
if('BR'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The CNPJ is a 14 digit tax ID number for corporations, the CPF is the 11 digit tax ID number for individuals.";
}
if('CO'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The NIT is an up to 10 digit tax ID number used by corporations, the Cedula is an 9 digit tax ID for Individuals.";
}
if('CL'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The RUT is a 9 digit tax ID number used by corporations and individuals.";
}
if('CR'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The Cedula Juridica is a 10 digit tax ID number used by corporations and individuals.";
}
if('GT'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The NIT is an 8 digit tax ID number used by corporations and individuals.";
}
if('RU'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The INN is a 10 digit tax ID number.";
document.getElementById("taxidpopup").className='box_pop_tax_id_transfer_ru';
}
if('KZ'==countryCode ){
document.getElementById('taxPopuprow').innerHTML="The TRN is a 12 digit tax ID.";
document.getElementById("taxidpopup").className='box_pop_tax_id_transfer_kz';
}
}
}
//Added show Kbe/Knp Tooltip
function showKbeToolTip(){
if(null!=document.getElementById('kbeToolTipId')){
document.getElementById('kbeToolTipId').innerHTML='<div id="kbepopup" class="box_pop_kbe_transfer" style="display: none; visibility: hidden;">'
+'<div class="box_pop" > <table> <tr> <td align="right" class="tooltip_close"><a onclick="hide(\'kbepopup\');" id="colorboxclose" title="Close" href="javascript:void(0);"><span> Close</span></a></td>'
+'</tr> <tr> <td class="module1text">The KBE is a 2 digit code to identify resident or non-resident accounts and the economic sector. </td></tr></table> </div> </div>'
+'&nbsp;&nbsp;<span onclick="show(\'kbepopup\');" style="cursor:pointer;" class="linknormal" >What is this?</span>'
}
}
//End Added For KBE/ tooltip
function showKnpToolTip(){
if(null!=document.getElementById('knpToolTipId')){
document.getElementById('knpToolTipId').innerHTML= '<div id="knppopup" class="box_pop_knp_transfer" style="display: none; visibility: hidden;">'
+'<div class="box_pop" > <table><tr><td align="right" class="tooltip_close"><a onclick="hide(\'knppopup\');" id="colorboxclose" title="Close" href="javascript:void(0);"><span> Close</span></a></td></tr>'
+'<tr><td class="module1text">The KNP is a 3 digit purpose of payment code.</td></tr></table></div></div>&nbsp;&nbsp;<span onclick="show(\'knppopup\');" style="cursor:pointer;" class="linknormal" >What is this?</span>'
}
}
//End added to show tooltip
</script>
<div id="alertDiv" style="display:none;" class="demo" role="alert">
<div id="header1" class="header"><h1>Rate Quote Reminder</h1></div>
</div>
<div id="expireDiv" style="display:none;" class="demo" role="alert"">
<div id="header2" class="header"><h1>Rate Quote Expired</h1></div>
</div>
<table width=747 cellspacing=0 cellpadding=0 border=0 >
<tr>
<td colspan=4><img src="images/clr.gif" alt="" width=1 height=12></td>
</tr>
<tr>
<td width=12><img src="images/clr.gif" alt="" width=12 height=1></td>
<td width=205 valign=top>
<script language="JavaScript" type="text/JavaScript">
function toggleLink(elementId,arrowId1,arrowId2) {
var obj = findObj(elementId);
if(!obj) return;
if (obj.style.display == "none") {
show(elementId);
showHide(arrowId1,arrowId2);
} else {
hide(elementId);
showHide(arrowId2,arrowId1);
}
}
</script>
<div style="width:100%;">
<table cellspacing=0 cellpadding=0 border=0 >
<tr>
<td><span
class=h2-ada>&nbsp;</span></td>
</tr>
</table>
<table width="100%" cellspacing=0 cellpadding=0 border=0
class=mod1-bkgd1-hs >
<tr>
<td width="100%">
<table width="100%" border=0 cellspacing=0
cellpadding=0 class=mod1-bkgd1-hs>
<tr>
<td class=module1title valign=middle nowrap>
<div class=module1title>
<h2>Quick Help</h2>
</div>
</td>
<td width="100%" align=left valign=middle nowrap><img src="/jsp/bofa/images/clr.gif" width=5 height=1 alt="" border=0>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class=mod1-brdr2-hs><img src="/jsp/bofa/images/clr.gif" width=1 height=1 alt="" border=0></td>
</tr>
<tr>
<td class=mod1-brdr-hs><img src="/jsp/bofa/images/clr.gif" width=1 height=1 alt="" border=0></td>
</tr>
<tr>
<td>
<table width="100%" cellspacing=0 cellpadding=0 border=0 >
<tr>
<td width=1 class=mod1-bkgd1-hs><img src="/jsp/bofa/images/clr.gif" width=1 height=1 border=0 alt=""></td>
<td>
<table width="100%" cellspacing=0 cellpadding=0 border=0 class=mod1-bkgd2-hs >
<tr>
<td width="100%">
<div class="announcements">
<div class="h2-ada3"><a href="#skipqh" class="h2-ada3">Skip Quick Help</a></div>
<div class="module1text">
<div class="cslinksadj2">
<span>Transfer money to an account outside the bank, and in some cases, transfer from.</span>
</div>
</div>
<div><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=10></div>
<div class=inline>
<h3 class="module1text"><a style="text-decoration: none;" href="javascript:void(0)" title="What can I do?. The section will expand to show the deails" onclick="toggleLink('para4','arrowDown4','arrowRight4')"><img src="images/quick-help-arrow-right.jpg" alt="" width=10 height=9 id="arrowRight4" style="border:0"><img src="images/quick-help-arrow-down.jpg" style="display:none" alt="" width=10 height=9 id="arrowDown4" style="border:0">&nbsp;What can I do?</a></h3>
</div>
<div class="module1text" id="para4" style="display:none">
<div class="cslinksadj2">
<span>Make a transfer by entering the following information:</span><br>
<ul style="padding:0px; margin:15px;">
<li><span>From and To accounts</span><br></li>
<li><span>Delivery Speed</span><br></li>
<li><span>Amount</span><br></li>
<li><span>Frequency</span><br><br></li>
</ul>
<span>You can also add:</span><br>
<ul style="padding:0px; margin:15px;">
<li><span>Accounts at other banks - either yours or someone else&rsquo;s, personal or business</span><br></li>
<li><span>Domestic or international accounts</span><br></li>
<li><span>Accounts of other Bank of America customers when you need to send them a wire transfer</span><br></li>
<li><span>Select investment account you own at another institution</span><br> <br></li>
</ul>
<span>You can also choose to send an email to recipients as notice of your transfer.</span>
</div>
</div>
<div class="space-non-ns4"><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=9></div>
<div><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=1></div>
<div class=inline>
<h3 class="module1text"><a style="text-decoration: none;" href="javascript:void(0)" title="What do I need to know?. The section will expand to show the deails" onclick="toggleLink('para5','arrowDown5','arrowRight5')"><img src="images/quick-help-arrow-right.jpg" alt="" width=10 height=9 id="arrowRight5" style="border:0"><img src="images/quick-help-arrow-down.jpg" style="display:none" alt="" width=10 height=9 id="arrowDown5" style="border:0">&nbsp;What do I need to know?</a></h3>
</div>
<div><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=5></div>
<div class="module1text" id="para5" style="display:none">
<div class="cslinksadj2">
<span>For immediate transfers to begin processing, you need to submit your request before the cut-off time. <a
href="javascript:void(0);" onclick="popitup('https://secure.bankofamerica.com/myaccounts/brain/redirect.go?source=cashedge&target=transferhelp',600,765,1); return false;"
class="linknormal" title="More information on cut-off times and processing times">Daily cut-off
times and processing times</a> vary by type of transfer. </span><br><br>
<span>For your security, SafePass&reg; is required for amounts over the established limits.<a
href="javascript:void(0);" onclick="popitup('http://www.bankofamerica.com/privacy/index.cfm?template=learn_about_safepass',600,765,1); return false;"
class="linknormal">Learn about SafePass.</a></span><br><br>
<span>For questions, concerns or rate exchange disputes, contact the bank&rsquo;s <a
href="javascript:void(0);" onclick="popitup('https://www3.bankofamerica.com/contact/?lob=fc&contact_returnto=http%3A%2F%2Fwww%2Ebankofamerica%2Ecom%2Fcontact%2F%3Fstatecheck%3DNC%26page%3Dsmbiz',600,765,1); return false;"
class="linknormal">Foreign Exchange.
</a></span>
</div>
</div>
<div class="space-non-ns4"><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=9></div>
<div><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=1></div>
<div class=inline>
<h3 class="module1text">What else do I need to know?</h3>
</div>
<div><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=5></div>
<div class="module1text">
<div class="cslinksadj2">
You may move money without a transfer fee by using Bill Pay from Bank of America. You may also make transfers without charge to other Bank of America customers through the Inside the Bank transfers tab in online banking if you know the recipient's account number.
</div>
<div class="cslinksadj2">
Fees are waived for certain U.S. Trust, Bank of America Private Wealth Management clients; please contact your advisor for details. For analyzed business customers please see your Fee Schedule for appropriate fees.
</div>
</div>
<div><img src="/jsp/bofa/images/clr.gif" alt="" width=1 height=10></div>
<a name="skipqh"></a></div>
</td>
</tr>
</table>
</td>
<td width=1 class=mod1-brdr-hs><img src="/jsp/bofa/images/clr.gif" width=1 height=1 border=0 alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class=mod1-brdr-hs><img src="/jsp/bofa/images/clr.gif" width=1 height=1 alt=""></td>
</tr>
</table>
</div>
</td>
<td width=20><img src="images/clr.gif" alt="" width=20 height=1></td>
<td width=510 valign=top>
<div style="width:100%;">
<table cellspacing=0 cellpadding=0 border=0 >
<tr>
<td>
<div class=inline>
<h2 class=auraltext>Make a Transfer</h2>
</div>
</td>
</tr>
</table>
<table width="100%" cellspacing=0 cellpadding=0 border=0 >
<tr>
<td>
<div id="navbar">
<ul>
<li><a href="/jsp/bofa/logout_ft.jsp?RET_URL=9&amp;startEvent=Yes&amp;endEvent=Yes&amp;CEpage=TF02.01E" title="Inside the bank"><span>Inside the bank</span></a></li>
<li><a href="#" class="active" title="Outside the bank"><span>Outside the bank</span></a></li>
</ul>
</div>
</td>
</tr>
<tr>
<td>
<div class="module" style="width:510px">
<div class="corner top-right"></div>
<table width="100%" cellspacing=0 cellpadding=0 border=0 >
<tr>
<td>
<form autocomplete=off action="make_transfer.jsp?topNavigation=2&subNavigation=23" name="makeTransferForm" id="makeTransferForm" method="post">
<input type="hidden" name="processAction" id="processAction"/>
<input type="hidden" name="fromAccountText" id="fromAccountText" value=""/>
<input type="hidden" name="toAccountText" id="toAccountText" value=""/>
<input type="hidden" name="businessAccountSelected" id="businessAccountSelected" value=""/>
<table width="100%" cellspacing=0 cellpadding=0 border=0 >
<tr valign=top>
<td width="100%">
<input type="hidden" name="startEvent" id="startEvent" value="Yes"/>
<input type="hidden" name="endEvent" id="endEvent" value="Yes"/>
<input type="hidden" name="CEpage" id="CEpage" value="TF01.01E"/>
<input type="hidden" name="toCFIId" id="toCFIId"/>
<input type="hidden" id="amountVal" />
<input type="hidden" name="fromTNUI" id="fromTNUI" value="true"/>
<div class="innerbody">
<div id="accCatDiv" class="module1text" style="display:none"></div>
<p><span class="bold module1text">* required</span></p><br>
<table width="430" border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap="nowrap" class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="10" height="10"/></td>
</tr>
<tr>
<td align="left" class="module1text">
<div class="statementdrop5">
<label for="fromCFIId"><span class="bold">From * </span>
</label>
<br>
<select name="fromCFIId" id="fromCFIId" class="field29" style="margin-top: 5px;"
onchange="setDefaultToField();refreshToAccountsList(); unselectToAccounts(); hideDetails();isAccountCategoryChanged();checkCurrencyForIntlAcct();resetErrMsgs();setAccountType();">
<option value="-1">Select account to transfer money from</option>
<optgroup label='Bank of America Accounts' class='optgroup1'><option value='123456789'>MyAccess Checking - 1234 : Avail. Bal $A,BCD,EFG.HY </option ></optgroup><optgroup label='Domestic (U.S.) External Accounts' class='optgroup1'></optgroup>
</select>
</div>
</td>
</tr>
<tr>
<td nowrap="nowrap" class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"/></td>
</tr>
<tr>
<td align="left" class="module1text" id="toCFItd">
<div class="statementdrop5">
<span id="slowToPaySpan" style="display:none">
<p class="errorfont1"><img src="/jsp/bofa/images/icon_alert_error_small.gif" width="16" height="14"
alt="error">&nbsp;The country is slow to process transfers and has caused delays in the past. It may take longer for money to become available.
<a class='linknormal' href="https://secure.bankofamerica.com/myaccounts/brain/redirect.go?source=cashedge&target=transferhelp" target="_blank">Learn More</a>. </p><br></span>
<label for="toCFIId1"><span class="bold">To *</span>
</label>
<br>
<span id="toCFISpan1" style="display:none"><select name="toCFIId1" id="toCFIId1" class="field29" style="margin-top: 5px;"
onchange="resetErrMsgs();resetFields();checkSlowToPay();submitAccountDetails('dom');checkCurrencyForIntlAcct();isAccountCategoryChanged();">
<option value="-1">Select account to transfer money to</option>
</select></span>
<span id="toCFISpan2" style="display:none"><select name="toCFIId2" id="toCFIId2" class="field29" style="margin-top: 5px;"
onchange="resetErrMsgs();resetFields();checkSlowToPay();submitAccountDetails('dom');isAccountCategoryChanged();">
<option value="-1">Select account to transfer money to</option>
<optgroup label='Bank of America Accounts' class='optgroup1'><option value='123456789'>MyAccess Checking - 1234 : Avail. Bal $A,BCD,EFG.HY</option></optgroup>
</select></span>
<span id="toCFISpan3" style="display:none"><select name="toCFIId3" id="toCFIId3" class="field29" style="margin-top: 5px;"
onchange="resetErrMsgs();resetFields();checkSlowToPay();isDFPhase2FieldsEnabled();submitAccountDetails('dom');checkCurrencyForIntlAcct();isAccountCategoryChanged();" >
<option value="-1">Select account to transfer money to</option>
<optgroup label='Domestic (U.S.) External Accounts' class='optgroup1'></optgroup><optgroup label='International External Accounts' class='optgroup1'><option value='987654321'>Wire - Joe Shmoev (International Bank)</option></optgroup>
</select></span>
<div id="divDefaultCurrency" class="innerbody1 layergrey3" style="padding-bottom:0;display:none">
<span><span class="bold" style="white-space: nowrap;">
<label for="currencyCode">Default currency of the account</label>
</span></span>
<div class="radioc2">
<span id="divCurrencySel">
<select name="defCurrencyCode" id="defCurrencyCode" class="field29"
onChange="showNote();">
<option value=""></option>
</select>
</span>
</div>
<div id="divUSDSel" class="" style="display:none;padding-top:0px;padding-bottom:0px;padding-left:0px;margin-bottom:0px;">
<p>
<span class="bold"> Advantages of foreign currency </span>
<br>
<span>There are advantages of sending your wire in foreign
currency instead of U.S. dollars, including:</span><br>
<ul style="padding:0px;margin-left:15px;">
<li>
Reduce processing time - we translate the exchange
upfront
</li>
<li>Know your exact transfer amount - we calculate the
exchange now
</li>
<li>Avoid rate fluctuations - we lock down your
exchange rate
</li>
</ul>
</p>
</div>
<table style='display:none'>
<tr id='cfiDetail_123456789'><td id='cfiDetail_isIntl_123456789'>no</td><td id='cfiDetail_country_123456789'></td><td id='cfiDetail_currCode_123456789'></td></tr>
<tr id='cfiDetail_987654321'><td id='cfiDetail_isIntl_987654321'>yes</td><td id='cfiDetail_country_987654321'>BG</td><td id='cfiDetail_currCode_987654321'>USD</td></tr>
</table>
<div class=buttonsf>
<div class="clear">
<a class="button" href="javascript:void(0);"
onClick="saveDefaultCurrencyCode(); this.blur(); return false;"
title="Save default currency code"><span>Save</span></a>
</div>
</div>
<div>
<img src="/jsp/bofa/images/clr.gif" width=9 height=10 border=0 alt="">
</div>
</div>
</div>
</td>
</tr>
<tr class=module1text>
<td>
<div id="amount_frequency_desc">
<br><br>
<label for="amt"><span class="bold">Amount *</span><br>
<span class="bold">$</span></label> <input autocomplete=off style="text-align:right" id="amt" name="amt" type=text size=18 maxlength=18 class="cslinksadj2" value="">
<br><br>
<div>
<img src="/jsp/bofa/images/clr.gif" width=9 height=4 border=0 alt="">
</div>
<label for="Frequency"><span class="bold">Frequency *</span></label><br>
<select name="frequency" id="frequency" class="field29 cslinksadj2" disabled="true">
<option value="0">Select frequency</option>
</select>
<br><br>
<div>
<img src="/jsp/bofa/images/clr.gif" width=9 height=4 border=0 alt="">
</div>
</div>
<div id="detailSection" style="display:none">
<input type=hidden name=goodFundsStartDt id=goodFundsStartDt />
<input type=hidden name=badFundsStartDt id=badFundsStartDt />
<input type=hidden name=domWireStartDt id=domWireStartDt />
<SCRIPT language=JavaScript src="/jsp/bofa/scripts/cal_cp.js" type="text/javascript"></SCRIPT>
<SCRIPT language=JavaScript src="/jsp/bofa/scripts/cal_cp1.js" type="text/javascript"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript">
var calImmediate = new CalendarPopup("calendardiv");
calImmediate.setDisabledWeekDays(0, 6);
// Disable selecting Saturday and Sunday
calImmediate.setGraypixelImage("/jsp/bofa/images/graypixel.gif");
calImmediate.setLegendImage("/jsp/bofa/images/calegend.gif");
calImmediate.setDateFormat('MM/dd/yyyy');
calImmediate.setParseDateFormat('M/d/y');
//initialize max date (in case it doesn't get passed in on select function)
var today = new Date();
var nextYear = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000);
calImmediate.setDateRange(today, nextYear);
calImmediate.setHolidays("20130101","20130121","20130218","20130527","20130704","20130902","20131014","20131111","20131128","20131225","20140101","20140120","20140217","20140526","20140704","20140901","20141013","20141111","20141127","20141225","20150101","20150119","20150216","20150525","20150907","20151012","20151111","20151126","20151225");
calImmediate.setTimeout(25000);
if (!document.layers) {
document.write(calImmediate.getStyles());
}
var creditCardsEnabled = false;
</SCRIPT>
<SCRIPT language=JavaScript type=text/javascript>
var cal = new CalendarPopup("calendardiv");
cal.setDisabledWeekDays(0, 6);
// Disable selecting Saturday and Sunday
cal.setGraypixelImage("/jsp/bofa/images/graypixel.gif");
cal.setLegendImage("/jsp/bofa/images/calegend.gif");
//add .. before text link for JAWS issue - jaws appends URL & context to desc file
cal.setLegendLongDesc("..overview_files/legend_long_desc.txt");
cal.setDateFormat('MM/dd/yyyy');
cal.setParseDateFormat('M/d/y');
var asapDate = new Date("08/17/2004");
//initialize max date (in case it doesn't get passed in on select function)
var today = new Date(1372007076425);
today = new Date(today.getTime() + 24 * 60 * 60 * 1000);
var nextYear = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000);
cal.setDateRange(today, nextYear);
cal.setHolidays("20130101","20130121","20130218","20130527","20130704","20130902","20131014","20131111","20131128","20131225","20140101","20140120","20140217","20140526","20140704","20140901","20141013","20141111","20141127","20141225","20150101","20150119","20150216","20150525","20150907","20151012","20151111","20151126","20151225");
cal.setTimeout(25000);
if (!document.layers)
{
document.write(cal.getStyles());
}
var creditCardsEnabled = false;
</SCRIPT>
<script type="text/javascript">
<!--
function fillDates(update) {
var frequency = document.getElementById("paymentFreq").value;
if ("-1" == frequency) {
if (null != document.getElementById('days3') && document.getElementById('days3').checked) {
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 3, true, 1);
} else if (null != document.getElementById('nextday') && document.getElementById('nextday').checked) {
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 1, true, 1);
} else if (null != document.getElementById('sameday') && document.getElementById('sameday').checked) {
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 0, true, 1);
}
} else if ("0" == frequency) {
document.getElementById("immediateCal").style.display = "";
document.getElementById("recurringCal").style.display = "none";
setTransferDates(update);
} else {
document.getElementById("immediateCal").style.display = "none";
document.getElementById("recurringCal").style.display = "";
setTransferDates(update);
}
}
function fillDatesForError(errorCondition){
var deliverySpeedVal = document.getElementById('deliverySpeed').value;
//alert("deliverySpeedVal = " + deliverySpeedVal);
if (errorCondition) {
if(deliverySpeedVal != null && deliverySpeedVal == 'domesticWire' ){
//alert("deliverySpeedVal :: " + 'domesticWire');
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverbyDate', 0, true, 1);
}
else if(deliverySpeedVal != null && deliverySpeedVal == 'BF' ){
//alert("deliverySpeedVal :: " + 'BF');
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverbyDate', 1, true, 1);
}
else if(deliverySpeedVal != null && deliverySpeedVal == 'GF' ){
//alert("deliverySpeedVal :: " + 'GF');
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverbyDate', 3, true, 1);
}
}
}
function fillDatesNew(update, errorCondition) {
//alert("filldates new method :errorCondition :: " + errorCondition);
var frequency = document.getElementById("paymentFreq").value;
var errChkReq = "true";
if ( "undefined" != document.getElementById('errorCheckRequired') && null != document.getElementById('errorCheckRequired') ){
errChkReq = document.getElementById("errorCheckRequired").value;
}
//alert("frequency " + frequency + " for single " + document.getElementById('sameday').checked + " document.getElementById('immSendDate').value=" + document.getElementById('immSendDate').value);
if ("-1" == frequency) {
//fillDatesForError(errorCondition);
if (null != document.getElementById('days3') && document.getElementById('days3').checked) {
if( errChkReq == "true" && ( errorCondition == true || false ) ){
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
}else{
document.getElementById('immSendDate').value = document.getElementById("goodFundsStartDt").value;
document.getElementById('sendDateSpan').innerHTML = document.getElementById("goodFundsStartDt").value;
}
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 3, true, 1);
} else if (null != document.getElementById('nextday') && document.getElementById('nextday').checked) {
// alert("errorCondition" + (errorCondition == true));
if( errChkReq == "true" && ( errorCondition == true || false ) ){
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
}else{
document.getElementById('immSendDate').value = document.getElementById("badFundsStartDt").value;
document.getElementById('sendDateSpan').innerHTML = document.getElementById("badFundsStartDt").value;
}
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 1, true, 1);
} else if (null != document.getElementById('sameday') && document.getElementById('sameday').checked) {
//alert("this is wireTransferSendDate" + document.getElementById('immSendDate').value );
if( errChkReq == "true" && ( errorCondition == true || false ) ){
//alert("wireTransferSendDate :" + "sameday" );
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
}else{
//alert("wireTransferSendDate " + document.getElementById("domWireStartDt").value);
document.getElementById('immSendDate').value = document.getElementById("domWireStartDt").value;
document.getElementById('sendDateSpan').innerHTML = document.getElementById("domWireStartDt").value;
}
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 0, true, 1);
}else if(((document.getElementById('days3') == null || !document.getElementById('days3').checked)
&& (document.getElementById('nextday') == null || !document.getElementById('nextday').checked)
&& (document.getElementById('sameday') == null || !document.getElementById('sameday').checked))){
if(errorCondition == true || false){
//alert("no delivery speed :" + "sameday" );
document.getElementById('immSendDate').value = "06/24/2013";
document.getElementById('sendDateSpan').innerHTML = "06/24/2013";
}else{
document.getElementById('immSendDate').value = "06/24/2013";
document.getElementById('sendDateSpan').innerHTML = "06/24/2013";
}
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 0, true, 1);
}
} else if ("0" == frequency) {
setTransferDates(update);
} else {
setTransferDates(update);
}
}
function setTransferDates(update) {
if (update) {
document.getElementById('sendDate').value = "06/24/2013";
}
cal.fillDeliverBy(document.getElementById('sendDate'), '', 'deliverby91', selectService(), true, 1);
}
function setDefaultStartDate() {
//alert("setDefaultStartDate : : "+ '');
if ((document.getElementById('days3') == null || !document.getElementById('days3').checked)
&& (document.getElementById('nextday') == null || !document.getElementById('nextday').checked)
&& (document.getElementById('sameday') == null || !document.getElementById('sameday').checked)) {
document.getElementById('immSendDate').value = "";
document.getElementById('sendDateSpan').innerHTML = "";
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 0, true, 1);
}
}
function setDefaultDates(isSingleDeliverySpeed) {
//alert("setDefaultDates() :: immSendDate ::" + document.getElementById('immSendDate').value);
//alert("setDefaultDates() :: deliverySpeed ::" + document.getElementById('deliverySpeed').value);
var deliverySpeedVal = document.getElementById('deliverySpeed').value;
if (isSingleDeliverySpeed) {
if(deliverySpeedVal != null && deliverySpeedVal == 'domesticWire' ){
//alert("deliverySpeedVal :: " + 'domesticWire');
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 0, true, 1);
}
else if(deliverySpeedVal != null && deliverySpeedVal == 'BF' )
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 1, true, 1);
else if(deliverySpeedVal != null && deliverySpeedVal == 'GF' )
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 3, true, 1);
}
else {
if ((document.getElementById('days3') == null || !document.getElementById('days3').checked)
&& (document.getElementById('nextday') == null || !document.getElementById('nextday').checked)
&& (document.getElementById('sameday') == null || !document.getElementById('sameday').checked)) {
calImmediate.fillDeliverBy(document.getElementById('immSendDate'), '', 'deliverby91', 0, true, 1);
}
}
}
function setSingleDeliveryDates(deliverySpeedVal){
if(deliverySpeedVal != null && deliverySpeedVal == 'domesticWire'){
document.getElementById('sameday').checked = true;
}else if(deliverySpeedVal != null && deliverySpeedVal == 'BF'){
document.getElementById('nextday').checked = true;
}else if(deliverySpeedVal != null && deliverySpeedVal == 'GF'){
document.getElementById('days3').checked = true;
}
}
//-->
</script>
<SCRIPT language=JavaScript src="/jsp/bofa/scripts/cal_cp2.js" type="text/javascript"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript">
var newcal = new NewCalendarPopup("calendardiv");
newcal.setDisabledWeekDays(0, 6);
// Disable selecting Saturday and Sunday
newcal.setGraypixelImage("/jsp/bofa/images/graypixel.gif");
newcal.setLegendImage("/jsp/bofa/images/calegend.gif");
//add .. before text link for JAWS issue - jaws appends URL & context to desc file
newcal.setLegendLongDesc("/jsp/bofa/overview_files/legend_long_desc.txt");
newcal.setDateFormat('MM/dd/yyyy');
newcal.setParseDateFormat('M/d/y');
//initialize max date (in case it doesn't get passed in on select function)
var today = new Date(1372007076431);
today = new Date(today.getTime() + 24 * 60 * 60 * 1000);
var nextYear = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000);
newcal.setDateRange(today, nextYear);
newcal.setHolidays("20130101","20130121","20130218","20130527","20130704","20130902","20131014","20131111","20131128","20131225","20140101","20140120","20140217","20140526","20140704","20140901","20141013","20141111","20141127","20141225","20150101","20150119","20150216","20150525","20150907","20151012","20151111","20151126","20151225");
newcal.setTimeout(25000);
if (!document.layers) {
document.write(newcal.getStyles());
}
var creditCardsEnabled = false;
</SCRIPT>
<!--<input type="hidden" name="fromTNUI" value="true"/>-->
<!--<input type="hidden" id="amountVal" />-->
<input type="hidden" id="durationValue" name="durationValue" value=''/>
<input type="hidden" name="immSendDate" id="immSendDate"/>
<input type="hidden" name="makeTransferType" id="makeTransferType" />
<input type="hidden" name="errorCheckRequired" id="errorCheckRequired" value="true"/>
<div class="layergrey" id="only_one_choice" style="display:none;visibility:hidden;padding-bottom:4px;padding-top:4px;">
<input id="deliverySpeed" type="hidden"/>
<table width="100%" border=0 cellspacing=0 cellpadding=0 summary="">
<tr>
<td colspan=5><img src="/jsp/bofa/images/clr.gif" width=1 height=9 border=0 alt=""></td>
</tr>
<tr>
<td width=9><img src="/jsp/bofa/images/clr.gif" width=9 height=8 border=0 alt=""></td>
<td width=31 valign=top><div class=inline>
<h2>
<img src="/jsp/bofa/images/info_darkblue_24.gif" width="24" height="24"
alt="information"></h2>
</div></td>
<td width=19><img src="/jsp/bofa/images/clr.gif" width=19 height=8 border=0 alt=""></td>
<td width="100%"><div>
<div>
<div class="inline text2" id="oneSpeedText">
</div> &nbsp;&nbsp;
<div class="inline text2">
<a href="fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes"
onClick="javascript:changeHref(this,'fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes');"
class="linknormal"
title="Opens new window with help topics explaining funds transfers"
target="_blank">Learn more about your delivery speed types, fees and limits</a>
</div>
</div>
</div>
<div><img src="/jsp/bofa/images/clr.gif" width=1 height=5 border=0 alt=""></div>
</td>
<td width=9><img src="/jsp/bofa/images/clr.gif" width=9 height=8 border=0 alt=""></td>
</tr>
<tr>
<td colspan=5><img src="/jsp/bofa/images/clr.gif" width=1 height=9 border=0 alt=""></td>
</tr>
</table>
</div>
<!-- end only one choice -->
<div class="layergrey" id="delivery_speed_div" style="display:none;visibility:hidden;">
<label for="delivery_speed"><span class="bold">Delivery speed *</span></label>
<a href="fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes"
onClick="javascript:changeHref(this,'fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes');"
class="linknormal" title="Opens new window with help topics explaining funds transfers" target="_blank"> Learn more about your delivery speed types, fees and limits</a><br><br>
<table >
<tr id='stdText' style="display:none">
<td valign="top">
<input name="deliverySpeed" id="days3" type="radio"
value="GF"
class="radionSup"
onclick="fillDatesNew(false,false); renderDescription(); renderSafePassDomestic();renderOnBehalf();"
/>
</td>
<td class="module1text">
<label for='days3'><span class='auraltext'>Delivery within </span><span class=''>3 business days: &nbsp;<span
id='stdTransferFee'></span>&nbsp;fee, ACH transfer
</span> <br/>
<span id='standardCutOffTime' style="font-size:85%"></span>
<a href="javascript:void(0);" onclick="popitup('/jsp/bofa/ach_vs_wires.jsp?startEvent=Yes&amp;endEvent=Yes&amp;messageTag=ACH_vs_Wires',560,720,1); return false;"
class="linknormal" title="Opens new window with help topics explaining Ach Vs Wires"> &nbsp;What is an ACH?</a></span><br />
</label>
</td>
</tr>
<tr id='nextDaydiv' style="display:none">
<td valign="top">
<input name="deliverySpeed" id="nextday" type="radio"
value="BF"
class="radionSup"
onclick="fillDatesNew(false,false); renderDescription(); renderSafePassDomestic();renderOnBehalf();"
/>
</td>
<td class="module1text" align="left">
<label for="nextday">
<span class="auraltext">Delivery on</span><span
class="">Next business day: &nbsp;<span id='nextTransferFee'></span>&nbsp;fee, ACH Transfer</span><br/>
<span id='nextCutOffTime' style="font-size:85%" ></span>
<a href="javascript:void(0);" onclick="popitup('/jsp/bofa/ach_vs_wires.jsp?startEvent=Yes&amp;endEvent=Yes&amp;messageTag=ACH_vs_Wires',560,720,1); return false;"
class="linknormal" title="Opens new window with help topics explaining Ach Vs Wires">&nbsp; What is an ACH?</a></span><br />
</label>
</td>
</tr>
<tr id='sameDaydiv' style="display:none">
<td valign="top">
<input name="deliverySpeed" id="sameday" type="radio"
value="domesticWire"
class="radionSup"
onclick="fillDatesNew(false,false); renderDescription(); renderSafePassDomestic();renderOnBehalf();"
/>
</td>
<td class="module1text">
<label for="sameday"><span class="auraltext">Delivery on</span><span
class="">Same business day: &nbsp;<span id='sameTransferFee'></span>&nbsp;fee, wire transfer</span>
<span class="auraltext">Delivery time is shown immediately below.</span><br/>
<span id='sameCutOffTime' style="font-size:85%" ></span>
<a href="javascript:void(0);" onclick="popitup('/jsp/bofa/ach_vs_wires.jsp?startEvent=Yes&amp;endEvent=Yes&amp;messageTag=ACH_vs_Wires',560,720,1); return false;"
class="linknormal" title="Opens new window with help topics explaining Ach Vs Wires"> &nbsp;What is a wire?</a></span><br />
</label>
</td>
</tr>
</table>
</div>
<div class="" id="amountList">
<span> <img src="/jsp/bofa/images/spacer.gif" alt="" width="29" height="29"/> </span> <br/>
<p class="errorfont" id="safePassErrSpan" style="display:none"><br><br>
</p>
<span class="bold"><label for="amount"><span id="amountSpacingSpan" style="display:none"></span>
Amount * </label></span>
<table border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;" >
<tr>
<td valign="middle" nowrap="nowrap"><span class="module1text bold">$</span>
<input autocomplete=off style="text-align:right" name="amount" type="text" class="fielduser" id="amount"
size="40" maxlength="10" onkeyup="fillAmount();" value="" onblur="renderSafePassDomestic();"/>
</td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap"><img src="/jsp/bofa/images/spacer.gif" alt="" width="29" height="29"/></td>
</tr>
</table>
</div>
<div id="freqlayer2" style="display:block" >
<table border=0 cellpadding=0 cellspacing=0 >
<tr>
<td width="117" align=left nowrap class="module1text bold"><label for="paymentFreq">Frequency *</label></td>
<td align=right>&nbsp;</td>
<td></td>
</tr>
<tr>
<td align=left class="text2" colspan="3"><select name="paymentFreq" id="paymentFreq" onChange="renderFrequency(); fillDatesNew(true,false); renderFirstTransfer();"
class="field29" style="margin-top: 4px;">
<option value="-2" selected>
Select frequency
</option>
<option value="-1" >
One time, immediately
</option>
<option value="0" >
One time, on...</option>
<option value="3" >
Weekly
</option>
<option value="4" >
Every two weeks
</option>
<option value="2" >
Twice a month
</option>
<option value="1" >
Monthly
</option>
<option value="10" >
Monthly, First Business Day
</option>
<option value="11" >
Monthly, Last Business Day
</option>
<option value="6" >
Every two months
</option>
<option value="7" >
Every three months
</option>
<option value="8" >
Every six months
</option>
<option value="9" >
Annually
</option>
</select></td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width="430">
<tr id="freqlayer_2" style='display:none;' >
<td colspan="3">
<table border="0" cellspacing="0" cellpadding="0" style="background:#efefef;padding-right:18px;padding-left:18px;margin-top:10px;" width=430>
<tr id="row0">
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14"
height="14"></td>
</tr>
<tr id="row1" >
<td align=left nowrap class="module1text" colspan=3><span class=bold>Start on date: </span><span
class="text1d"></span>
&nbsp;<span id="sendDateSpan">mm/dd/yyyy</span></td>
</tr>
<tr id="row2">
<td colspan=3 align=left valign="top" nowrap class="module1text bold"><label for="sendDate">Start on date:</label>
&nbsp;<input name="sendDate" class="date field29"
id="sendDate"
onKeyUp="cal.fillDeliverBy(document.getElementById('sendDate'),document.makeTransferForm.dbd91,'deliverby91',selectService(),true,1); return true;"
size="10" maxlength="10"/>
&nbsp;<a id="anchor91"
title="Open calendar to choose a date."
onclick="cal.select(document.getElementById('sendDate'),document.makeTransferForm.dbd91,'deliverby91','anchor91',selectService(),true,1); return false;"
href="javascript:void(0)" name="anchor91"><img
src="/jsp/bofa/images/icon-calendar.gif"
alt="Open calendar to choose a date."
width="22" height="17"
border="0" class="image-link"/></a>
</td>
</tr>
<tr id="row3">
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14"
height="14"></td>
</tr>
<tr id="row4" >
<td align=left nowrap class="module1text" colspan=3>
<span class=bold>Estimated arrival date:</span>
&nbsp;<span id="deliverby91">mm/dd/yyyy</span></td>
</tr>
<tr id="row4_1">
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14"
height="14"></td>
</tr>
</table>
</td>
</tr>
<!--<tr id="row4_1">-->
<!--<td colspan="3" align=left nowrap class="module1text">Note: The receiving bank may make funds available later than this date.</td>-->
<!--</tr>-->
<tr id="row5">
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr id="row6">
<td colspan="3">
<table border="0" cellspacing="0" cellpadding="0" class="layergrey" width=430 style="padding-bottom: 0px;padding-top: 0px;">
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<td align=left valign="top" nowrap class="module1text bold">Duration *<span class="text1d"></span></td>
<td align=right>&nbsp;</td>
</tr>
<tr id="row6_1">
<td colspan="3" align=left valign="top" class="text2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<td width="3%" nowrap="nowrap" class="text2"><input name="durationType" type="radio" id="duration1"
value="3"
onClick="renderSectionbyDuration();"
/>
</td>
<td width="97%" nowrap="nowrap" class="text2"><label for="duration1">Until I change or cancel these
transfers </label></td>
</tr>
<tr>
<td colspan="2" valign="top" nowrap="nowrap" class="text2"><span class="module1text"><img
src="/jsp/bofa/images/spacer.gif" alt=""
width="14" height="14"></span>
</td>
</tr>
<tr>
<td valign="top" nowrap="nowrap" class="text2"><input name="durationType" id="duration2" type="radio"
value="0"
onClick="renderSectionbyDuration();"
style="margin-top:3px;padding:0;"
/></td>
<td valign="top" nowrap="nowrap" class="text2"><label for="duration2">Until a total of </label>
<input name="durationValueNumTrans" type="text" id="durationValueNumTrans" size="10" maxlength="3"
class="field29"/>
<label for="durationValueNumTrans">transfers have been made</label>
</td>
</tr>
<tr>
<td colspan="2" valign="top" nowrap="nowrap" class="text2"><span class="module1text"><img
src="/jsp/bofa/images/spacer.gif" alt="" width="14"
height="14"></span>
</td>
</tr>
<tr>
<td valign="top" nowrap="nowrap" class="text2"><input name="durationType" id="duration3" type="radio"
value="1"
style="margin-top:3px;padding:0;"
onClick="renderSectionbyDuration();"
/>
<br></td>
<td valign="top" nowrap="nowrap" class="text2"><label for="duration3">Until but not after</label>
<span class="bold"><label for="durationValueDate"><span class="auraltext"> Date </span></label></span>
<img src="/jsp/bofa/images/clr.gif" width=8 height=8 alt="">
<input autocomplete=off name="durationValueDate" type="text"
id="durationValueDate" size="10" maxlength="10"
class="date field29"/>
<a id="anchor22" title="Open calendar to choose a date." class="text2"
onclick="newcal.select(document.makeTransferForm.durationValueDate,document.makeTransferForm.dbd22,'','anchor22','',true,1); return false;"
href="#" name="anchor22"><img src="/jsp/bofa/images/icon-calendar.gif"
alt="Open calendar to choose a date."
width="22" height="17"
border="0"
class="image-link"/></a>
</td>
</tr>
<tr>
<td colspan="2" valign="top" nowrap="nowrap" class="text2"><span class="module1text"><img
src="/jsp/bofa/images/spacer.gif" alt="" width="14"
height="14"></span>
</td>
</tr>
<tr>
<td valign="top" nowrap="nowrap" class="text2"><input name="durationType" id="duration4" type="radio"
value="2"
style="margin-top:3px;padding:0;"
onClick="renderSectionbyDuration();"
/>
<br></td>
<td valign="top" nowrap="nowrap" class="text2"><label for="duration4">Until an amount of </label>
<span class="">$</span> <span class="auraltext"> amount </span></label>
<input autocomplete=off name="durationValueNetAmount" type="text" id="durationValueNetAmount" size="10" maxlength="10"
class="field29"
style="text-align:right">
has been reached</label>
</td>
</tr>
<tr>
<td colspan="2" valign="top" nowrap="nowrap" class="text2"><span class="module1text"><img
src="/jsp/bofa/images/spacer.gif" alt="" width="14"
height="14"></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div><span class="module1text"><img
src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="20"></span></div>
<script type="text/javascript">
renderSafePassDomestic();
</script>
<script type="text/javascript">
domesticStartUp();
//renderFreqSection();
renderFrequency();
renderDescription();
renderSectionbyDuration();
setDurationValueonEdit();
//setDefaultStartDate();
renderFirstTransfer();
</script>
</div>
<div id="intldetailSection" style="display:none">
<input type=hidden name=amount id=amount value=''/>
<input type=hidden name=currencyCode id=currencyCode value=''/>
<link rel="stylesheet" type="text/css" href="/jsp/bofa/css/processingLayer.css">
<script language="JavaScript" type="text/javascript" src="/jsp/bofa/js/rate_quote.js"></script>
<input type="hidden" name="fxRate" id="fxRate"/>
<input type="hidden" name="fxRateId" id="fxRateId">
<input type="hidden" name='toCurrency' id="toCurrency"/>
<input type="hidden" name='intlTransferType' id='intlTransferType' value=''/>
<input type="hidden" name="makeTransferType" id="makeTransferType"/>
<div id="divIntlUSDTxn" style="display:none" class="layergrey3">
<table width="99%" border=0 cellpadding=0 cellspacing=0 summary=" ">
<tr>
<td colspan="3" class="module1text">
<label for="sourcec">This transfer will be sent in:</label>
<br>
<div class="statementdrop44">
<div id="currDropDown"></div>
</div>
</td>
</tr>
<tr>
<td colspan ="3">
<br>
<table width="100%" cellspacing=0 cellpadding=0 border=0 summary="">
<!-- First Row - Red Border -->
<!--<!-- Begin Error Body -->
<tr>
<td width="100%">
<table width="100%" border=0 cellspacing=0 cellpadding=0 summary="">
<tr>
<td colspan=5><img src="/jsp/bofa/images/clr.gif" width=1 height=9 border=0 alt=""></td>
</tr>
<tr>
<td width=9><img src="/jsp/bofa/images/clr.gif" width=9 height=8 border=0 alt=""></td>
<td width=31 valign=top>
<div class=inline>
<h2><img src="/jsp/bofa/images/icon_alert_info_27x27.gif" width=27 height=27 border=0 alt="Any Information at Page Load"></h2>
</div>
</td>
<td width=19><img src="/jsp/bofa/images/clr.gif" width=19 height=8 border=0 alt=""></td>
<td width="100%" >
<div>
<div class=inline>
<p>
<span class="text2 bold"> Why it's better to use foreign currency </span>
<br>
<ul class=text2 style="margin-left:15px;padding:0px;">
<li>
If you send U.S. dollars instead of foreign currency, the other bank
will calculate the exchange when it's received.
</li>
<li>It can take longer to process transfers made in U.S. dollars because the exchange is not done upfront.
</li>
<li>Bank of America can't guarantee the exchange rate, fees or the
amount of money that will be received once it's translated on the other
end.
</li>
<li>The transfer fee is higher for U.S. dollars.
</li>
</ul>
</p>
<p class=text2>
International transfer fees
<ul class=text2 style="margin-top:5px;margin-left:15px;padding:0px;">
<li>
Transfers in U.S. Dollars: <span id='usdFee'></span><br>
</li>
<li>
Transfers in foreign currencies: <span id='foreignFee'></span> <br>
</li>
</ul>
</p>
<p class=text2>
<a href="fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes" onClick="javascript:changeHref(this,'fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes');" class="linknormal" title="Opens new window with help topics explaining funds transfers">Learn more about your delivery speed types, fees and limits.</a>
</p>
</div>
</div>
<div><img src="/jsp/bofa/images/clr.gif" width=1 height=5 border=0 alt=""></div>
<div>
<div class=inline></div>
</div>
</td>
<td width=9><img src="/jsp/bofa/images/clr.gif" width=9 height=8 border=0 alt=""></td>
</tr>
<tr>
<td colspan=5><img src="/jsp/bofa/images/clr.gif" width=1 height=9 border=0 alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan ="3" >
<br>
<div id="safePassErrDivUsd">
<p class="errorfont"><span style="display:none" id="safePassErrSpanUsd" class="module1text"></span></p>
<span class ="text2 bold"> I would like to send:</span><br>
<div class ="learnmore">
<span name="error_span" ><label for="amountUsd" class="text2">Amount *</label></span>
<br>
<span class ="text2">$</span>&nbsp;
<input autocomplete=off style="text-align:right" name="amountUsd" type="text" id="amountUsd" size="20" maxlength="10" value="" onkeyup="document.getElementById('amount').value = this.value; fillAmount();" onblur="renderSafePassIntl(this.value);"/>
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="divIntlFXTxn" style="display:none" class="layergrey3">
<table width="99%" border=0 cellpadding=0 cellspacing=0 summary=" ">
<tr>
<td colspan="3" nowrap class="text2">
This transfer will be sent in:<br>
<span class="currtitle field29" id='paymentSentCurrSpan'> ()</span>
&nbsp; <a href="javascript:void(0);" class="linknormal" title="Opens new window to learn how to edit the default currency"
onclick="popitup('/jsp/bofa/templates/learnMore.jsp?startEvent=Yes&amp;endEvent=Yes&amp;type=international&amp;CEpage=TF01.01E&amp;messageTag=MT_EDIT_DEF_CURRENCY_TN&messageTitle=MT_EDIT_DEF_CURRENCY_TITLE',200,600,0);">
How to edit default currency</a>
</td>
</tr>
<tr>
<td colspan="3" class="text2">
<div id="safePassErrDivFX">
<p class="errorfont"><span style="display:none" id="safePassErrSpanFX"></span></p>
<div class="radioc2" style="margin-bottom:0px;">
<div id='amountCol' style="margin-bottom:16px; margin-top:0px;">
<span id="amountErrSpan" style="display:none" ></span>
<span name="error_span" ><label for="amountFX" >Amount *</label></span>
<br>
<input autocomplete=off style="margin-left:15px;text-align:right" name="amountFX" type="text" id="amountFX" size="20" maxlength="10" value=""
onkeyup="document.getElementById('amount').value = this.value;updateEmailNew();" onblur="resetAll();show('calcNote');" />
</div>
<div id='currencyCol'>
<span id="currencyErrSpan" style="display:none" ></span>
<input name="fromCurrency" type="radio" id="curr_fx" checked value="" onclick='resetAll();updateEmailNew();show("calcNote");'/>
<label for="curr_fx"><span id='curr_fx_label'> ()</span><span class="auraltext">, send email to recipient when any payment is scheduled</span></label>
<p style="padding:10px; margin-left:15px; margin-bottom:0px; margin-top:0px;">The above amount will be sent in foreign currency.</p>
<p><input name="fromCurrency" type="radio" id="curr_usd" value="USD" onclick='resetAll();updateEmailNew();show("calcNote");'/>
<label for="curr_usd">U.S. Dollars equivalent </label></p>
<p style="padding:10px; margin-left:15px; margin-bottom:0px; margin-top:0px;">The U.S. Dollars equivalent amount will be converted and sent in foreign currency.</p>
</div>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="3"><br>
<div class="clear">
<a class="button" href="javascript:void(0);" onClick="calculateRate(); this.blur(); return false;"
title="Calculate exchange rate for selected currency"><span>Calculate Rate</span></a>
</div>
</td>
</tr>
<tr>
<td class="module1text">&nbsp;</td>
<td align=right><img src="/jsp/bofa/images/clr.gif" width=18 height=24 alt=""></td>
<td align=left valign="bottom" nowrap>&nbsp;</td>
</tr>
<tr>
<td colspan="3" class="module1text">
<!--<td colspan="3" class="text2 innerbody1">-->
<div class="innerbody1" id="calcNote" style="display:block"><br>
<p>
<span class="bold">Note: </span>The currency exchange rate quote will be valid for 10 minutes from when you
receive it. If you do not complete your transfer within that 10 minutes, a new exchange
rate will be calculated for you.<br><br>
Currently, the following limits exist on international wire transfers. These limits may
change without notice.<br><br>
</p>
<ul>
<li>
Weekday limits: International wire transfers are limited to $2 million when
submitted on weekdays. If you need to make a payment greater than $2 million,
please call 1.800.523.7860 between 8 a.m. to 9 p.m. ET, Monday through Friday
(excluding bank holidays).
</li>
<br><br>
<li>
Weekend limits: International wire transfers are limited to $50,000 when
submitted on weekends. To transfer more than $50,000, please make your
transfer on a weekday.
</li>
</ul>
<p >
<a href="fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes"
onClick="javascript:changeHref(this,'fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes');"
class="linknormal"
title="Opens new window with help topics explaining funds transfers">Learn
more about
your delivery speed types, fees and limits</a>
</p>
</div>
<div class="innerbody1" id="calcprogress" style="display:none">
<p class="bold">Your exchange rate is now being calculated and will display momentarily.</p>
<p><br>
<img src="/jsp/bofa/images/final_processing_icon5.gif" alt="processing"></p>
</div>
<div class="innerbody1" id="calcresult" style="display:none">
<span style="display:none" id="rateUnavailableSpan">
<p class="errorfont1">
<img src="/jsp/bofa/images/icon_alert_info_27x27.gif" width=20 height=20 border=0 alt="Informational Message">&nbsp;
We're sorry, but we're unable to retrieve the foreign exchange rate you requested at this time. Please cancel this transfer and try again.
</p>
</span>
<span style="display:none" id="amountRoundOffSpan">
<p class="errorfont1">
<img src="/jsp/bofa/images/icon_alert_info_27x27.gif" width=20 height=20 border=0 alt="Informational Message">&nbsp;
For that foreign currency, your exchange amount has been rounded off to the nearest whole currency value, and the difference introduced by the rounding off has not been debited from the account.
</p>
</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<p class="currtitle"><span id="fxAmountPar">This equates to:<br>$1200 USD</span></p>
<table border="0" cellpadding="0" cellspacing="0" summary=" ">
<tr>
<td colspan="2" class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="20"
height="20"/></td>
</tr>
<tr>
<td valign="top" nowrap="nowrap">
<input name="acceptFXRate" id="acceptFXRate" type="radio" value="yes" class="radion" onclick="updateEmailNew();enableMakeTransfer();"/>
</td>
<td valign="middle" class="text2">
<label for="acceptFXRate">Accept this exchange rate and continue. &nbsp;Fee: <span id="foreignCurWireFeeVal"> </span></label>
</td>
</tr>
<tr>
<td colspan="2" nowrap="nowrap" class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="20" height="20"/></td>
</tr>
</table>
</td>
<td><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"/></td>
<td align="right" valign="top" class="text2">
<div class="layercurr" id="fxRateDiv">
<span class="bold">Exchange rate:</span><br>
1USD = 2 GBP<br>
1GBP = 1.5 USD
</div>
</td>
</tr>
</table>
<div class =inline>
<p>
<a href="fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes"
onClick="javascript:changeHref(this,'fees_limits.jsp?startEvent=Yes&amp;endEvent=Yes');"
class="linknormal"
title="Opens new window with help topics explaining funds transfers">Learn
more about
your delivery speed types, fees and limits</a>
</p>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
<div id="phoneNumberDiv" style="display:none"></div>
<div id="patronymicDiv" style="display:none"></div>
<div id="taxIdDiv" style="display:none"></div>
<div id="residentCodeDiv" style="display:none"></div>
<div id="paymentCodeDiv" style="display:none"></div>
<div id="bankCodeDiv" style="display:none"></div>
<div id="vatDiv"style="display:none">
<span class="bold"><label for="yesVat"> Does this payment include VAT? * </label></span>(Value Added Tax)&nbsp;<br><br>
<input type ="radio" name="vat" id="yesVat" value="yes" onClick="document.getElementById('vatHid').value = this.value;" /> <label for="yesVat">Yes<span class="auraltext">, This payment includes VAT.</span></label>
<input type ="radio" name="vat" id="noVat" value="no" onClick="document.getElementById('vatHid').value = this.value;" /><label for="noVat">No<span class="auraltext">, This payment does not include VAT.</span></label>
<br><br>
. </div>
<div id="branchNameDiv"style="display:none"></div>
<div id="purposerow" style="display:none">
<table border="0" cellpadding="0" cellspacing="0" summary=" ">
<tr >
<td class = "module1text">
<span style="display:none" id = "purposeErrorDiv">
<p class="errortext bold">
<img src="/jsp/bofa/images/icon_alert_error_small.gif" width="16" height="14"
/> &nbsp;What is the purpose of this transfer? *
</p>
</span>
<span class="bold" id="purposeNoErrorDiv">
<label for="purposeotherf">What is the purpose of this transfer? *</label>
</span>
</td>
</tr>
<tr>
<td ><select name="purposeForTransferId" id="purposeForTransferId" onChange="CheckPurposeForTransferValue()">
<option value="-1" selected>Choose purpose</option>
<option value="Family Support">Family Support</option>
<option value="Trade Related">Trade Related</option>
<option value="Capital Injection">Capital Injection/Infusion</option>
<option value="Operating Expenses">Operating Expenses</option>
<option value="Goods">Goods</option>
<option value="Services">Services</option>
<option value="Employee Compensation">Employee Compensation</option>
<option value="Investment Income (including dividends)">Investment Income (including dividends)</option>
<option value="Current Transfers: General Government">Current Transfers: General Government</option>
<option value="Current Transfers: Other Sectors">Current Transfers: Other Sectors</option>
<option value="O">Other</option>
</select></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" summary=" " id="purposeother" style="display:none">
<tr>
<td class="text2"><img src="images/spacer.gif" alt="" width="15" height="15" /></td>
</tr>
<tr>
<td ><input name="purposeotherf" class="text2 greydot" type="text" id="purposeotherf" value="Describe the purpose of transfer"
onfocus=" if(this.value == this.defaultValue){this.value = '';}" onblur= " if(this.value == '') { this.value = this.defaultValue;} " size="35" maxlength="50" />
<br>
<span class="text2 greydot">Please do not use special characters: % < > : - # / & '</span></td>
</tr>
</table>
<br><br>
</div>
<!--Common to both domestic and intl -->
<span class="bold"><label for="transactionDesc">Transaction description&nbsp;</label></span>
<a href="javascript:void(0);"
onclick="popitup('/jsp/bofa/templates/learnMore.jsp?startEvent=Yes&amp;endEvent=Yes&amp;type=domestic&amp;CEpage=TF01.01E&amp;messageTag=WHY_DESC_NEW&messageTitle=WHY_DESC_NEW_TITLE',300,600,0); return false;"
class="linknormal"
title="What's this for">What's this for?</a>
<br>
<div class="field">
<input autocomplete=off name="transactionDesc" type="text" class="fieldled" id="transactionDesc" size="200" maxlength="210"
value=""/>
<br>
<label for="trans"><span class="text greydot">Please do not use special characters: % < > : - # / & `
</span></label>
</div>
<div id="emailToDiv" style="display:none">
<span class="bold">Send email to recipient informing them that the transfer is scheduled? *</span>
<div class="radioc2">
<input name="sendMail" type="radio" id="sendMail" value="Yes"
onClick="show('send1');updateEmail();" />
<label for="sendMail">Yes<span class="auraltext">, send email to recipient when any payment is scheduled</span></label>
<input name="sendMail" type="radio" id="no" value="No" class="radio2"
onClick="hide('send1')" checked/>
<label for="no">No<span class="auraltext">, do not send email to recipient when a payment is scheduled</span></label>
<div id="send1" style="display:block" class="layergrey">
<table width="99%" border=0 cellpadding=0 cellspacing=0>
<tr>
<td colspan="2" nowrap>
<span class="text2 bold"><label for="emailto">Email to
</label></span>
<br>
<input autocomplete=off name="emailTo" type="text" class="ajaxfieldbn" id="emailTo" size="40" maxlength="64"
value="" onblur="validateMakeTransferFields();">
<br>
<label class="text2">(me@me.com)</label>
<br>
</td>
</tr>
<tr>
<td colspan="2" nowrap></td>
</tr>
<tr>
<td colspan="2" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="18" height="18"></td>
</tr>
<tr>
<td colspan="2" nowrap>
<span class="text2 bold"><label for="emailfrom">Email from
</label></span>
<br>
<label class="text2 ">bobsemailbankofamerica@yahoo.com
</label>
</td>
</tr>
<tr>
<td colspan="2" nowrap></td>
</tr>
<tr>
<td colspan="2" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="18" height="18"></td>
</tr>
<tr>
<td colspan="2" nowrap>
<span class="text2 bold"><label for="emailSubject">Subject
</label></span><br>
<label class="text2" >
Money Transfer from BOB<br>
</label></td>
<input type="hidden" value="Money Transfer from BOB\n" name="emailSubject" id="emailSubject"/>
</tr>
<tr>
<td colspan="2" nowrap></td>
</tr>
<tr>
<td colspan="2" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="18" height="18"></td>
</tr>
<tr>
<td>
<span class="text2 bold"><label for="emailBody">Message
</label></span>
</td>
<td align="right" nowrap class="module1text"></td>
</tr>
<tr>
<!--<td nowrap><textarea cols="90" rows="5" class="fieldarea2" id="emailBody" disabled="true"-->
<!--</textarea>-->
<td>
<table width="99%">
<tr>
<td>
<label class="text2" id="emailBody">
</label>
</td>
</tr>
</table>
<input type="hidden" name="emailBody" id="emailBodytxt"/>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="onBehalfDiv" style="display:none">
<span class="bold"><label for="behalf">
Are you making this transfer on behalf of someone else?
</label></span>
<input type="hidden" name="obdCountry" id="obdCountry"/>
<div class="radioc2">
<input name="onBehalfPayment" type="radio" id="behalf" value="yes"
onClick="show('behalf1');renderStates();" />
<label for="behalf">Yes<span class="auraltext">, I am making this transfer on behalf of someone else.</span></label>
<input name="onBehalfPayment" type="radio" class="radio2" id="nob" onClick="hide('behalf1')"
value="no" checked/>
<label for="nob">No<span class="auraltext">, I am not making this transfer on behalf of someone else.</span></label>
<div id="behalf1" style="display:block" class="layergrey">
<table width="99%" border=0 cellpadding=0 cellspacing=0 >
<tr>
<td width="117" align=left nowrap class="module1text bold"><label for="obdName"> Name *
</label></td>
<!--</label></td>-->
<td></td>
</tr>
<tr>
<td colspan="3" align=left ><input autocomplete=off name="obdName" type="text" class="fieldlong" id="obdName" size=18 maxlength=64 style="width:340px"
value="" onblur="validateMakeTransferFields();"></td>
<!--<td align=left ><input name="obdNameLast" type="text" class="fieldlong" id="obdNameLast" size=18 maxlength=18-->
<!--<td></td>-->
</tr>
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<td align=left nowrap class="module1text bold">
<label for="obdReferenceId">ID *
</label></td>
<td></td>
</tr>
<tr>
<td colspan=3 align=left><input autocomplete=off name="obdReferenceId" type="text" class="fieldlong" id="obdReferenceId" size="40" maxlength="64"
value="" onblur="validateMakeTransferFields();">
</td>
</tr>
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<td align=left nowrap class="module1text bold">
<label for="obdEmailId">Email *
</label></td>
</tr>
<tr>
<td colspan=3 align=left><input autocomplete=off name="obdEmailId" type="text" class="fieldlong" id="obdEmailId" size="40" maxlength="64" style="width:340px"
value="" onblur="validateMakeTransferFields();"></td>
</tr>
<tr>
<td colspan=3 align=left class ="module1text"><label>(me@me.com)</label></td>
</tr>
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<td align=left nowrap class="module1text bold"><label
for="obdStreetAddress">Street address *
</label></td>
<td></td>
</tr>
<tr>
<td colspan=3 align=left><input autocomplete=off name="obdStreetAddress" type="text" class="fieldlong" id="obdStreetAddress" size="40" style="width:340px"
maxlength="64" value="" onblur="validateMakeTransferFields();"></td>
</tr>
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<td align=left nowrap class="module1text bold"><label for="obdCity">City *
</label></td>
<td></td>
</tr>
<tr>
<td colspan=3 align=left><input autocomplete=off name="obdCity" type="text" class="fieldlong" id="obdCity" size="40" maxlength="64"
value="" onblur="validateMakeTransferFields();"></td>
</tr>
<!--<tr>-->
<!--<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>-->
<!--</tr>-->
<!--<tr>-->
<!--<td></td>-->
<!--</tr>-->
<!--<tr>-->
<!--<td colspan=3 align=left><input type="text" name="obdState" id="obdState" class="fieldlong" size="40" maxlength="30"-->
<!--</tr>-->
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<!--<td colspan=3><table width="99%"> <tr>-->
<td align=left nowrap class="module1text bold"><label for="obdCountryCode">Country *
</label></td>
<td id='stateLabel' align=left nowrap class="module1text bold"><label for="obdState">State *
</label></td>
</tr>
<!--</table></td>-->
<tr>
<!--<td colspan=3>-->
<!--<table width='99%'><tr>-->
<td align=left style="width:35%"><select name="obdCountryCode" id="obdCountryCode" class="cslinksadj2" onchange="renderStates();" >
<option value="-1">Select Country</option>
<option value='AF'>AFGHANISTAN</option><option value='AL'>ALBANIA</option><option value='DZ'>ALGERIA</option><option value='AD'>ANDORRA</option><option value='AO'>ANGOLA</option><option value='AI'>ANGUILLA</option><option value='AG'>ANTIGUA AND BAR</option><option value='AR'>ARGENTINA</option><option value='AM'>ARMENIA</option><option value='AW'>ARUBA</option><option value='AU'>AUSTRALIA</option><option value='AT'>AUSTRIA</option><option value='AZ'>AZERBAIJAN</option><option value='BS'>BAHAMAS</option><option value='BH'>BAHRAIN</option><option value='BD'>BANGLADESH</option><option value='BB'>BARBADOS</option><option value='BY'>BELARUS</option><option value='BE'>BELGIUM</option><option value='BZ'>BELIZE</option><option value='BJ'>BENIN</option><option value='BM'>BERMUDA</option><option value='BT'>BHUTAN</option><option value='BO'>BOLIVIA</option><option value='BQ'>BONAIRE</option><option value='BA'>BOSNIA AND HERZ</option><option value='BW'>BOTSWANA</option><option value='BR'>BRAZIL</option><option value='VG'>BRITISH VIRGIN</option><option value='BN'>BRUNEI</option><option value='BN'>BRUNEI DARUSSAL</option><option value='BG'>BULGARIA</option><option value='BF'>BURKINA FASO</option><option value='BI'>BURUNDI</option><option value='KH'>CAMBODIA</option><option value='CM'>CAMEROON</option><option value='CA'>CANADA</option><option value='CV'>CAPE VERDE</option><option value='KY'>CAYMAN ISLANDS</option><option value='CF'>CENTRAL AFRICAN</option><option value='TD'>CHAD</option><option value='CL'>CHILE</option><option value='CN'>CHINA</option><option value='CO'>COLOMBIA</option><option value='KM'>COMOROS</option><option value='CG'>CONGO</option><option value='CD'>CONGO, THE DEMO</option><option value='CK'>COOK ISLANDS</option><option value='CR'>COSTA RICA</option><option value='HR'>CROATIA</option><option value='CW'>CURACAO</option><option value='CY'>CYPRUS</option><option value='CZ'>CZECH REPUBLIC</option><option value='DK'>DENMARK</option><option value='DJ'>DJIBOUTI</option><option value='DM'>DOMINICA</option><option value='DO'>DOMINICAN REPUB</option><option value='EC'>ECUADOR</option><option value='EG'>EGYPT</option><option value='SV'>EL SALVADOR</option><option value='GQ'>EQUATORIAL GUIN</option><option value='ER'>ERITREA</option><option value='EE'>ESTONIA</option><option value='ET'>ETHIOPIA</option><option value='MK'>F Y R MACEDONIA</option><option value='FO'>FAROE ISLANDS</option><option value='FJ'>FIJI</option><option value='FI'>FINLAND</option><option value='FR'>FRANCE</option><option value='FR'>FRENCH ANTARCTI</option><option value='GF'>FRENCH GUIANA</option><option value='PF'>FRENCH POLYNESI</option><option value='FR'>FRENCH SOUTHERN</option><option value='GA'>GABON</option><option value='GM'>GAMBIA</option><option value='GE'>GEORGIA</option><option value='DE'>GERMANY</option><option value='GH'>GHANA</option><option value='GI'>GIBRALTAR</option><option value='GB'>GREAT BRITAIN</option><option value='GR'>GREECE</option><option value='GL'>GREENLAND</option><option value='GD'>GRENADA</option><option value='GP'>GUADELOUPE</option><option value='GT'>GUATEMALA</option><option value='GG'>GUERNSEY</option><option value='GG'>GUERNSEY CHANNE</option><option value='GG'>GUERNSEY, C.I.</option><option value='GN'>GUINEA</option><option value='GW'>GUINEA BISSAU</option><option value='GW'>GUINEA-BISSAU</option><option value='GY'>GUYANA</option><option value='HT'>HAITI</option><option value='VA'>HOLY SEE</option><option value='VA'>HOLY SEE (VATIC</option><option value='HN'>HONDURAS</option><option value='HK'>HONG KONG</option><option value='HU'>HUNGARY</option><option value='IS'>ICELAND</option><option value='IN'>INDIA</option><option value='ID'>INDONESIA</option><option value='IQ'>IRAQ</option><option value='IE'>IRELAND</option><option value='IM'>ISLE OF MAN</option><option value='IL'>ISRAEL</option><option value='IT'>ITALY</option><option value='JM'>JAMAICA</option><option value='JP'>JAPAN</option><option value='JE'>JERSEY</option><option value='JE'>JERSEY CHANNEL</option><option value='JE'>JERSEY, C.I.</option><option value='JO'>JORDAN</option><option value='KZ'>KAZAKHSTAN</option><option value='KE'>KENYA</option><option value='KI'>KIRIBATI</option><option value='KR'>KOREA, REPUBLIC</option><option value='CS'>KOSOVO</option><option value='KW'>KUWAIT</option><option value='KG'>KYRGYZSTAN</option><option value='LA'>LAO PEOPLE'S DE</option><option value='LA'>LAOS</option><option value='LV'>LATVIA</option><option value='LB'>LEBANON</option><option value='LS'>LESOTHO</option><option value='LR'>LIBERIA</option><option value='LY'>LIBYA</option><option value='LY'>LIBYAN ARAB JAM</option><option value='LI'>LIECHTENSTEIN</option><option value='LT'>LITHUANIA</option><option value='LU'>LUXEMBOURG</option><option value='MO'>MACAO</option><option value='MK'>MACEDONIA,THE F</option><option value='MG'>MADAGASCAR</option><option value='MW'>MALAWI</option><option value='MY'>MALAYSIA</option><option value='MV'>MALDIVES</option><option value='ML'>MALI</option><option value='MT'>MALTA</option><option value='MH'>MARSHALL ISLAND</option><option value='MQ'>MARTINIQUE</option><option value='MR'>MAURITANIA</option><option value='MU'>MAURITIUS</option><option value='YT'>MAYOTTE</option><option value='MX'>MEXICO</option><option value='FM'>MICRONESIA (FED</option><option value='MD'>MOLDOVA</option><option value='MD'>MOLDOVA, REPUBL</option><option value='MC'>MONACO</option><option value='MN'>MONGOLIA</option><option value='ME'>MONTENEGRO</option><option value='MS'>MONTSERRAT</option><option value='MA'>MOROCCO</option><option value='MZ'>MOZAMBIQUE</option><option value='NA'>NAMIBIA</option><option value='NR'>NAURU</option><option value='NP'>NEPAL</option><option value='NL'>NETHERLANDS</option><option value='AN'>NETHERLANDS ANT</option><option value='NC'>NEW CALEDONIA</option><option value='NZ'>NEW ZEALAND</option><option value='NI'>NICARAGUA</option><option value='NE'>NIGER</option><option value='NG'>NIGERIA</option><option value='NU'>NIUE</option><option value='GB'>NORTHERN IRELAN</option><option value='NO'>NORWAY</option><option value='OM'>OMAN</option><option value='PK'>PAKISTAN</option><option value='PW'>PALAU</option><option value='PS'>PALESTINIAN TER</option><option value='PA'>PANAMA</option><option value='PG'>PAPUA NEW GUINE</option><option value='PY'>PARAGUAY</option><option value='PE'>PERU</option><option value='PH'>PHILIPPINES</option><option value='PL'>POLAND</option><option value='PT'>PORTUGAL</option><option value='QA'>QATAR</option><option value='CG'>REPUBLIC OF CON</option><option value='RE'>REUNION</option><option value='RO'>ROMANIA</option><option value='RU'>RUSSIA</option><option value='RU'>RUSSIAN FEDERAT</option><option value='RW'>RWANDA</option><option value='BQ'>SABA</option><option value='BQ'>SAINT EUSTATIUS</option><option value='KN'>SAINT KITTS AND</option><option value='LC'>SAINT LUCIA</option><option value='VC'>SAINT VINCENT A</option><option value='WS'>SAMOA</option><option value='SM'>SAN MARINO</option><option value='ST'>SAO TOME AND PR</option><option value='SA'>SAUDI ARABIA</option><option value='GB'>SCOTLAND</option><option value='SN'>SENEGAL</option><option value='RS'>SERBIA</option><option value='CS'>SERBIA AND MONT</option><option value='SC'>SEYCHELLES</option><option value='SL'>SIERRA LEONE</option><option value='SG'>SINGAPORE</option><option value='SX'>SINT MAARTEN</option><option value='SK'>SLOVAKIA</option><option value='SI'>SLOVENIA</option><option value='SB'>SOLOMON ISLANDS</option><option value='SO'>SOMALIA</option><option value='ZA'>SOUTH AFRICA</option><option value='KR'>SOUTH KOREA</option><option value='ES'>SPAIN</option><option value='LK'>SRI LANKA</option><option value='KN'>ST KITTS AND NE</option><option value='LC'>ST LUCIA</option><option value='PM'>ST PIERRE ET MI</option><option value='VC'>ST VINCENT AND</option><option value='SR'>SURINAME</option><option value='SJ'>SVALBARD AND JA</option><option value='SZ'>SWAZILAND</option><option value='SE'>SWEDEN</option><option value='CH'>SWITZERLAND</option><option value='TW'>TAIWAN</option><option value='TJ'>TAJIKISTAN</option><option value='TZ'>TANZANIA</option><option value='TZ'>TANZANIA, UNITE</option><option value='TH'>THAILAND</option><option value='GM'>THE GAMBIA</option><option value='VA'>THE VATICAN</option><option value='TL'>TIMOR LESTE</option><option value='TG'>TOGO</option><option value='TO'>TONGA</option><option value='TT'>TRINIDAD AND TO</option><option value='TN'>TUNISIA</option><option value='TR'>TURKEY</option><option value='TM'>TURKMENISTAN</option><option value='TC'>TURKS AND CAICO</option><option value='TV'>TUVALU</option><option value='AE'>UAE</option><option value='UG'>UGANDA</option><option value='UA'>UKRAINE</option><option value='GB'>UNITED KINGDOM</option><option value='US'>UNITED STATES</option><option value='UY'>URUGUAY</option><option value='UZ'>UZBEKISTAN</option><option value='VU'>VANUATU</option><option value='VE'>VENEZUELA</option><option value='VN'>VIET NAM</option><option value='VG'>VIRGIN ISLANDS,</option><option value='GB'>WALES</option><option value='WF'>WALLIS AND FUTU</option><option value='EU'>WESTERN SAHARA</option><option value='YE'>YEMEN</option><option value='ZW'>ZIMBABWE</option>
</select></td>
<td id="stateDiv" align=left style="width:30%">
<select class ="cslinksadj2" name="obdState" id="obdState">
<option selected value="">Select State</option>
<option value='AL'>Alabama</option><option value='AK'>Alaska</option><option value='AS'>American Samoa</option><option value='AZ'>Arizona</option><option value='AR'>Arkansas</option><option value='CA'>California</option><option value='CO'>Colorado</option><option value='CT'>Connecticut</option><option value='DE'>Delaware</option><option value='DC'>District of Columbia</option><option value='FM'>Federated States Of Micronesia</option><option value='FL'>Florida</option><option value='GA'>Georgia</option><option value='GU'>Guam</option><option value='HI'>Hawaii</option><option value='ID'>Idaho</option><option value='IL'>Illinois</option><option value='IN'>Indiana</option><option value='IA'>Iowa</option><option value='KS'>Kansas</option><option value='KY'>Kentucky</option><option value='LA'>Louisiana</option><option value='ME'>Maine</option><option value='MH'>Marshall Islands</option><option value='MD'>Maryland</option><option value='MA'>Massachusetts</option><option value='MI'>Michigan</option><option value='MN'>Minnesota</option><option value='MS'>Mississippi</option><option value='MO'>Missouri</option><option value='MT'>Montana</option><option value='NE'>Nebraska</option><option value='NV'>Nevada</option><option value='NH'>New Hampshire</option><option value='NJ'>New Jersey</option><option value='NM'>New Mexico</option><option value='NY'>New York</option><option value='NC'>North Carolina</option><option value='ND'>North Dakota</option><option value='MP'>Northern Mariana Islands</option><option value='OH'>Ohio</option><option value='OK'>Oklahoma</option><option value='OR'>Oregon</option><option value='PW'>Palau</option><option value='PA'>Pennsylvania</option><option value='PR'>Puerto Rico</option><option value='RI'>Rhode Island</option><option value='SC'>South Carolina</option><option value='SD'>South Dakota</option><option value='TN'>Tennessee</option><option value='TX'>Texas</option><option value='UT'>Utah</option><option value='VT'>Vermont</option><option value='VI'>Virgin Islands</option><option value='VA'>Virginia</option><option value='WA'>Washington</option><option value='WV'>West Virginia</option><option value='WI'>Wisconsin</option><option value='WY'>Wyoming</option><option value='AA'>Armed Forces Americas</option><option value='AE'>Armed Forces Europe</option><option value='AP'>Armed Forces Pacific</option>
</select>
</td>
</tr>
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
<tr>
<td align=left nowrap class="module1text bold"><label for="obdPostalCode"><span id="postalLabel">Postal code</span><span id="zipLabel" style='display:none'>Zip code *</span>
</label></td>
</tr>
<tr>
<td align=left><input autocomplete=off name="obdPostalCode" type="text" class="fieldpost" id="obdPostalCode" size="40" maxlength="10"
value="" onblur="validateMakeTransferFields();">
</td>
<!--</tr>-->
<!--</table>-->
<!--</td>-->
</tr>
<tr>
<td colspan="3" nowrap class="module1text"><img src="/jsp/bofa/images/spacer.gif" alt="" width="14" height="14"></td>
</tr>
</table>
</div>
</div>
</div>
<span id="safePassSpan" style="display:none">
<span class="bold">Protect your identity</span><br>
<span>To help protect your identity from fraud, please enter your Bank of America SafePass code.</span><br><br>
<span>SafePass is the 6-digit, one-time security code sent via text message to your registered phone or generated from a wallet-sized card.</span><br><br>
<div>
<table width="80%" border=0 cellpadding=0 cellspacing=0 >
<tr>
<td colspan="3" nowrap class="module1text">
<img src="/jsp/bofa/images/spacer.gif" alt="" width="8" height="8">
</td>
</tr>
<tr>
<td>
<script language="JavaScript" type="text/javascript">
<!--
function sendToJavaScript(value) {
document.forms["makeTransferForm"].charIndexes.value =getIndexes(value);
value = removeValues(value);
document.forms["makeTransferForm"].SAMLart.value =value;
document.getElementById("checkSafePassVerified").value ="true";
enableEasButton('completeTransferBtn');
if(document.getElementById("fromTNUI") == undefined || document.getElementById("fromTNUI") == null){
document.getElementById("completeTransferBtn").href = "";
}
document.getElementById("completeTransferBtn").className = "button";
if("TF03.23"=='TF01.01E') {//only for add account screen
enableDisableAddButton();
}
}
function enableDevice() {
top.location="/jsp/bofa/logout_ft.jsp?RET_URL=30";
}
function getIndexes(artifact){
var indexString = '';
var index1 = artifact.indexOf('%');
while(index1!=-1){
indexString = indexString + index1+ '|';
index1 = artifact.indexOf('%', index1+1);
}
return indexString;
}
function removeValues(artifact){
while(artifact.indexOf('%')!=-1){
artifact = artifact.replace('%' , '');
}
return artifact;
}
//-->
</script>
<input type="hidden" id = "SAMLart" name="SAMLart"/>
<input type="hidden" id = "checkSafePassVerified" name="checkSafePassVerified"/>
<input type="hidden" id = "charIndexes" name="charIndexes"/>
<input type="hidden" name="homeID" value="88871070"/>
<script type="text/javascript">
var btnHref = '#';
</script>
<td colspan=6>
<script src="https://secure.bankofamerica.com/pa/global-assets/1.0/script/jquery-core.js" type="text/javascript" ></script>
<script src="https://secure.bankofamerica.com/pa/global-assets/1.0/script/jquery-ui.js" type="text/javascript" ></script>
<script src="https://secure.bankofamerica.com/pa/components/utilities/vipaa-safepass-client-util/1.2/script/safepass-nonflash-widget.js" type="text/javascript" ></script>
<div id="safepassNonFlashwidget"></div>
<script language="JavaScript" type="text/javascript">
showNonFlashWidget('TF01.01E','makeTransferForm', -1, 'https://secure.bankofamerica.com');
</script>
</td>
</tr><tr>
</td>
<td></td>
</tr>
</table>
</div>
</span>
<span id="intlWireSpan" class="normalfont" style="display:none">
Please review your transfer information and select "Make Transfer" to send your information.
</span>
<div class="buttonsf">
<div class="clear">
<a class="inactive" id="completeTransferBtn" href="javascript:void(0);" onClick="this.blur();makeDFTransfer();"
title="Continue Transfer - Unavailable"><span id='completeTransferBtnLabel'>Continue Transfer</span> <span class="auraltext" id="transferBtnAuralText"> - Unavailable</span></a>
<a class="button" href="/jsp/bofa/transfer_history_all.jsp?topNavigation=2&amp;subNavigation=24&startEvent=Yes&endEvent=Yes&CEpage=TF01.01E" onClick="this.blur();"
title="Cancel Transfer."><span>Cancel </span></a>
</div>
</div>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
refreshToAccountsList();
</script>
</td>
</tr>
</table>
<input type="hidden" name="__fid__" value="gKDguIAog2nMJLkGdrlcw"></form>
</td>
</tr>
</table>
<div class="corner bottom-left"></div>
<div class="corner bottom-right"></div>
</div>
</td>
</tr>
</table>
<div><img src="images/clr.gif" alt="" width=1 height=12></div>
<div><img src="images/clr.gif" alt="" width=1 height=12></div>
</div>
</td>
</tr>
</table>
<div><img src="images/clr.gif" alt="" width=1 height=30></div>
<div id=calendardiv style="VISIBILITY: hidden; POSITION: absolute"></div>
<div id=sendtip style="Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute">
<table>
<tbody>
<tr id="recurringCal" style="display:block">
<td nowrap>Begin On</td>
</tr>
<tr id="immediateCal" style="display:none">
<td nowrap>Start Processing</td>
</tr>
</tbody>
</table>
</div>
<div id=notaftertip style="Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute">
<table>
<tbody>
<tr>
<td nowrap>Not After</td>
</tr>
</tbody>
</table>
</div>
<div id=delivertip style="Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute">
<table>
<tbody>
<tr>
<td nowrap>Deliver By</td>
</tr>
</tbody>
</table>
</div>
<!-- (C) Copyright 2007 CashEdge Inc. All rights reserved.
This software is confidential and proprietary information of CashEdge Inc and except as authorized or permitted under the
Agreement between you and CashEdge you have no rights to use, transfer or otherwise sublicense the CashEdge
Software. You may not (i) copy or otherwise reproduce the CashEdge Software; (ii) rent, transfer or grant any rights in
the CashEdge Software in any form to any person.-->
<div id="olb-globals-footer-container"></div>
<!-- MAIN OL STYLESHEET -->
<link rel="stylesheet" type="text/css" href="/jsp/bofa/feedback/oo_style.css" />
<!-- MAIN OL ENGINE -->
<script language="javascript" type="text/javascript" charset="windows-1252" src="/jsp/bofa/feedback/oo_engine.min.js"></script>
<!-- FEEDBACK CONFIGURATION -->
<script language="javascript" type="text/javascript" charset="windows-1252" src="/jsp/bofa/feedback/oo_conf.js"></script>
<!-- END: OnlineOpinion v5.1.7 -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment