// JavaScript Documentvar undefined;var Yoffset = 0;	// y-axis offset for sub-menu.var Xoffset = 0;	// x-axis offset for sub-menu.function LinkAlert(URL,target)	{	BankName = "Texas Coastal Bank"	MSG = "You are leaving the " + BankName + " web site! ";    MSG = MSG + "The web site you have selected is an external one located on another "    MSG = MSG + "server. " + BankName + " has no responsibility for any external "    MSG = MSG + "website. It neither endorses the information, content, presentation, or "    MSG = MSG + "accuracy nor makes any warranty, express or implied, regarding any "    MSG = MSG + "external site. Thank you for visiting the " + BankName + " web site.";		myTarget = "_blank";	if (target!=undefined) myTarget = target;	if (confirm(MSG)) window.open(URL,myTarget);	}function setLyr(obj,lyr, XX, YY){	var newX = findPosX(obj);	var newY = findPosY(obj);	if (lyr == 'testP') newY -= 50;	var x = new getObj(lyr);	if (YY=="" || YY==undefined) YY=0;	if (XX=="" || XX==undefined) XX=0;	Y = Yoffset + YY;	X = Xoffset + XX;	x.style.top = newY + Y +'px';	x.style.left = newX + X + 'px';}// This function returns the x-coordinate of a specified page element.function findPosX(obj){	var curleft = 0;	if (obj.offsetParent)	{		while (obj.offsetParent)		{			curleft += obj.offsetLeft			obj = obj.offsetParent;		}	}	else if (obj.x)		curleft += obj.x;	return curleft;}//This functiono returns the y-coordinate of a specified page element.function findPosY(obj){	var curtop = 0;	var printstring = '';	if (obj.offsetParent)	{		while (obj.offsetParent)		{			printstring += ' element ' + obj.tagName + ' has ' + obj.offsetTop;			curtop += obj.offsetTop			obj = obj.offsetParent;		}	}	else if (obj.y)		curtop += obj.y;	//window.status = printstring;	return curtop;}// This layer finds the sub-menu layer to be moved.function getObj(name){ if (document.getElementById) {	   this.obj = document.getElementById(name);	   this.style = document.getElementById(name).style; } else if (document.all) {	   this.obj = document.all[name];	   this.style = document.all[name].style; } else if (document.layers) {	   if (document.layers[name])	   {	   	this.obj = document.layers[name];	   	this.style = document.layers[name];	   }	   else	   {	    this.obj = document.layers.testP.layers[name];	    this.style = document.layers.testP.layers[name];	   } }}