function disclaimer(passedWebsite) {
	if(confirm('ATTENTION!!  F&M Bank provides the following links for your information and convenience.  F&M Bank does not control nor is it responsible for the content of these sites, nor does it guaranty the product(s) or service(s), or endorse the viewpoint or actions of the site owner.  The bank is not liable for any failure of the product(s) or service(s) advertised on the site nor does the bank gain financially by providing these links.  The privacy policy may be different from that of the bank.  These sites may provide less security than the bank website.')) {
		window.open(passedWebsite,'NewWin','toolbar,status,resizable,location,scrollbars,menubar')
	}
}

function mailConfirm(passedAddress) {
	if (confirm("Please do not include any personal information in your e-mail, such as account number, social security number, etc.")) {
		window.location = passedAddress;
	}
}

function myOpen(page,width,height) {
    if (navigator.appName == 'Netscape') {
        adjWidth = width+10;
        adjHeight = height+10;
    }
    else {
        adjWidth = width;
        adjHeight = height;
    }
   
    window.open(page,'windowName','width=' + adjWidth + ',height=' + adjHeight + ',toolbar=no,location=no,directories=no,resizable=yes,status=yes,menubar=no,scrollbars=yes');
}
var timeOut = null;

function navIn() {
  if (timeOut != null) {window.clearTimeout(timeOut);}
}

function navTimer() {
  if (timeOut != null) {window.clearTimeout(timeOut);}
  timeOut = window.setTimeout('hideMenuObjects()',1000);
}

function hideMenuObjects() {
	menuObj = document.getElementById("mainNav");
	menus = menuObj.getElementsByTagName("div");
	for(n=0;n<menus.length;n++){
		menus[n].style.visibility = "hidden";
	}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function P7_autoLayers() { //v1.5 by PVII
 var g,b,k,f,u,k,j,args=P7_autoLayers.arguments,a=parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.p7setc){p7c=new Array();document.p7setc=true;for(u=0;u<10;u++){
 p7c[u]=new Array();}}for(k=0;k<p7c[a].length;k++){if((g=MM_findObj(p7c[a][k]))!=null){
 b=(document.layers)?g:g.style;b.visibility="hidden";}}for(k=1;k<args.length;k++){
 if((g=MM_findObj(args[k]))!=null){b=(document.layers)?g:g.style;b.visibility="visible";f=false;
 for(j=0;j<p7c[a].length;j++){if(args[k]==p7c[a][j]) {f=true;}}
 if(!f){p7c[a][p7c[a].length++]=args[k];}}}
}