<!-- Begin

// Use this script to open a non official UCO link in a new window.

// This script requires two parameters from the calling HREF.  The first is the

// new page URL and the second is the text used to identify the link.  This script 

// will create a dynamic HTML page that will launch the external window. 

// This script is called from a parent page by using the <script src="xlink.js"></script>

// tags in the header and the <a href="javascript:doWindow('http://newpageurl', 'new 

// text link')">parent page text link</a> tags in the body.

// Script created by Cori Rucker on 22 May 2001 at the University of Central Oklahoma.

function doWindow(newpage, newtext) {

var win = window.open('', 'win', 'width=300,height=350,left=125,top=125'); 

var doc = win.document;

doc.open('text/html', 'replace');

doc.write('<HTML><HEAD><TITLE>Mercantile Bank</TITLE>');

doc.write('<!-- This is a dynamically created web page.  Refer to calling page for specifics. -->');

doc.write('<SCRIPT LANGUAGE="JavaScript">');

doc.write('function closewin() { if (self && self.open && !self.closed) self.close();');

doc.write('}');

doc.write('</' + 'SCRIPT>');

doc.write('</HEAD><BODY onClick="closewin()"><font size=2>You are leaving the Mercantile Bank web site. By clicking "Continue" below, you will enter a web site created, operated and maintained by a private business or organization.<br><br>');

doc.write('Mercantile Bank provides this link as a service to our web site visitors. We are not responsible for the content, views, or privacy policies of this site. We take no responsibility for any products or services offered by this site, nor do we endorse or sponsor the information it contains.<br><br>');

doc.write('Web sites change location, ownership and address frequently. Mercantile Bank is not responsible for the accessibility of this link.<br><br>');

doc.write('<a href="javascript:closewin()">Return to Mercantile Bank web site.</a><br><br>');

doc.write('Do you wish to continue to the outside web site?<br><br>');

doc.write('<a href="' + newpage + '" target="newwin">' + newtext + '</a></font><br>');

doc.write('</BODY></HTML>');

doc.close();

}

// End -->

