<html> <head> <title>United Overseas Bank</title> <META NAME="ROBOTS" CONTENT="NOINDEX,FOLLOW"> <!--- meta redirect section : start --> <noscript> <!-- Update url in the following line--> <meta http-equiv="Refresh" CONTENT="0;url="></noscript> <!-- meta redirect section : end --> <!-- javascript redirect section : start --> <script type="text/javascript"> //update url in the following line var urlToRedirectTo = "http://www.uob.com.sg/corporate/foreign-direct-investment/index.page ";/* Do not edit */ var origRef = (!!document.referrer) ? document.referrer : 'direct|' + document.location.href; var existingQueryParams = document.location.search; var addUrlParam = function(search, key, val) { var newParam = key + '=' + val, params = '?' + newParam; // If the "search" string exists, then build params from it if (search) { // Try to replace an existance instance params = search.replace(new RegExp('([?&])' + key + '[^&]*'), '$1' + newParam); // If nothing was replaced, then add the new param to the end if (params === search) { params += '&' + newParam; } } return params; }; if (existingQueryParams.indexOf('origref=') === -1) { existingQueryParams = addUrlParam(existingQueryParams, 'origref', encodeURIComponent(origRef)); } // combine query paramters sets var urlToRedirectToAnchor = document.createElement('a'); urlToRedirectToAnchor.href = urlToRedirectTo; var redirectQueryParamArr = urlToRedirectToAnchor.search.split(/\?|\&/g); var existingQueryParamsArr = existingQueryParams.split(/\?|\&/g); var buildFinalQueryParams = {}; // if the priority of query parameter is for the existing query parameter, switch the next two lines around redirectQueryParamArr.forEach(checkAddQryParam); existingQueryParamsArr.forEach(checkAddQryParam); var buildFinalQueryParamsArr = []; for (var p in buildFinalQueryParams) { if (buildFinalQueryParams.hasOwnProperty(p)) { buildFinalQueryParamsArr.push(p + '=' + buildFinalQueryParams[p]); } } existingQueryParams = '?' + buildFinalQueryParamsArr.join('&'); urlToRedirectToAnchor.search = existingQueryParams; window.location.replace(urlToRedirectToAnchor.href); function checkAddQryParam(frag) { var keyVal = frag.split('='); if (!buildFinalQueryParams[keyVal[0]] && typeof keyVal[1] !== 'undefined') { buildFinalQueryParams[keyVal[0]] = keyVal[1]; } } if (!Array.prototype.filter) { Array.prototype.filter = function(func, thisArg) { 'use strict'; if (!((typeof func === 'Function' || typeof func === 'function') && this)) throw new TypeError(); var len = this.length >>> 0, res = new Array(len), // preallocate array t = this, c = 0, i = -1; if (thisArg === undefined) while (++i !== len) // checks to see if the key was set if (i in this) if (func(t[i], i, t)) res[c++] = t[i]; else while (++i !== len) // checks to see if the key was set if (i in this) if (func.call(thisArg, t[i], i, t)) res[c++] = t[i]; res.length = c; // shrink down array to proper size return res; }; } // Production steps of ECMA-262, Edition 5, 15.4.4.18 // Reference: http://es5.github.io/#x15.4.4.18 if (!Array.prototype.forEach) { Array.prototype.forEach = function(callback /*, thisArg*/ ) { var T, k; if (this == null) { throw new TypeError('this is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (typeof callback !== 'function') { throw new TypeError(callback + ' is not a function'); } if (arguments.length > 1) { T = arguments[1]; } k = 0; while (k < len) { var kValue; if (k in O) { kValue = O[k]; callback.call(T, kValue, k, O); } k++; } }; } </script> <!-- javascript redirect section : end --> </head> </html>