/*****************************************************
*	Open Window Function
*****************************************************/

function openWin (url,width,height,extras) {
	if (window.open) {
		if (width < 0 || height < 0) {
			newWin = window.open(url,"new_win",extras);
		} else {
			newWin = window.open(url,"new_win","width="+ width +",height="+ height +","+ extras);
		}
	} else {
		return false;
	}
}

function openWin2 (url,width,height,extras) {
	if (window.open) {
		if (width < 0 || height < 0) {
			newWin = window.open(url,"new_win2",extras);
		} else {
			newWin = window.open(url,"new_win2","width="+ width +",height="+ height +","+ extras);
		}
	} else {
		return false;
	}
}

function openWin3 (url,width,height,extras) {
	if (window.open) {
		if (width < 0 || height < 0) {
			newWin = window.open(url,"new_win3",extras);
		} else {
			newWin = window.open(url,"new_win3","width="+ width +",height="+ height +","+ extras);
		}
	} else {
		return false;
	}
}

function openWin4 (url,width,height,extras) {
	if (window.open) {
		if (width < 0 || height < 0) {
			newWin = window.open(url,"new_win4",extras);
		} else {
			newWin = window.open(url,"new_win4","width="+ width +",height="+ height +","+ extras);
		}
	} else {
		return false;
	}
}


function showWarning(url){
    var content = new Array();
    var index = 0;
    content[index++] = "<h2>Third Party Site Disclaimer</h2>By accessing the noted link you will be leaving your financial institution's website and entering a website hosted by another party. Although your financial institution has approved this as a reliable partner site, please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of your financial institution's website.";
	content[index++] = "<br /><br />We encourage you to read and evaluate the privacy and security policies on the site you are entering, which may be different than those of your financial institution.";
    content[index++] = "<br /><br /><br />";
    content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"window.open('"+url+"');document.getElementById('ex_dis').style.display = 'none'\" style=\"font-size: 12pt; font-weight: bold;\">Continue</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Return to Cape Bank</a></div></div>";
    document.getElementById("ex_dis").innerHTML = content.join("");
    document.getElementById("ex_dis").style.display = "block";
    scrollTo(0, 0);
}
document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:225px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 100000; width:350px;"></div>');