/***********************************************
* Ajax Includes script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//To include a page, invoke ajaxinclude("afile.htm") in the BODY of page
//Included file MUST be from the same domain as the page displaying it.

var rootdomain="http://"+window.location.hostname

function ajaxinclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}

var fileName =
location.pathname.substring (location.pathname.lastIndexOf ('/')+1)

function pageOpenCH() {
	window.location = "http://www.seamless.com.sg/projects/bankofchina/ch/" + fileName;
}

function pageOpenENG() {
	window.location = "http://www.seamless.com.sg/projects/bankofchina/" + fileName;
}

var myChoice, mySelection;

   function CK_MenuItemRedirectPage(){
      myChoice = document.myForm.myMenu.selectedIndex;
/* This line of code assigns the highlighted item in the list menu to a variable.
   Make sure you refer to the right form name and to the right List/Menu name. */
      mySelection=document.myForm.myMenu.options[myChoice].value;
/* This line of code assigns the dynamically chosen option to a variable. */
      //location=mySelection;
/* This line of code replaces the current page with the selected item. */

/* If you want to open the page in a new or different frame window instead of
   opening the page in the current window, you can replace the above line of
   code with the code shown below.*/

      window.open(mySelection,"myWindow");

   }
   
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=380,height=300,left = 100,top = 100');");
}