var disclaimerText = 'Links to other Web sites are provided for your information only and at your own risk. City National Bank does not endorse and is not responsible for, nor guarantees the accuracy of the information contained on these Web sites.';

function mailConfirm(passedAddress)
{
	if (confirm("City National Bank uses the unsecured SMTP protocol to transfer email which transmits data in clear text. Please be aware that private customer information should never be transmitted via email. If you should choose to send an email with private information, you do so at your own risk knowing that such information can be intercepted and viewed by third parties."))
	{
		window.location = passedAddress;
	}
}
function disclaimer(passedWebsite)
{
	if(confirm(disclaimerText))
	{
		window.open(passedWebsite,'NewWin','toolbar,status,resizable,location,scrollbars,menubar');
	}
}
function weatherAlert(zipCode){
	if(confirm('Links to other Web sites are provided for your information only and at your own risk. City National Bank does not endorse and is not responsible for, nor guarantees the accuracy of the information contained on these Web sites.')){
		window.open('http://www.weather.com/weather/local/' + zipCode + '?lswe=' + zipCode + '&lwsa=WeatherLocalUndeclared&from=whatwhere', 'NewWin','toolbar,status,resizable,location,scrollbars,menubar');
	}
}

function evalLink(linkURL,linkTarget,disclaimerFlag) {
  switch(linkTarget) {
		case 0: //Same window
			if(disclaimerFlag == 1) {
				if(confirm(disclaimerText)) window.location = linkURL;
			}
			else window.location = linkURL;
			break;

		case 1: // New Window
			if(disclaimerFlag == 1) {
				if(confirm(disclaimerText)) window.open(linkURL);
			}
			else window.open(linkURL);
			break;
	}
}
