function Q2ExternalLink(){
	if(confirm("By clicking on the 'OK' button below, you will be leaving First National Bank in Pinckneyville's website and entering a website hosted by another party.\n\nFrom time to time, we provide our visitors with links to other websites. Although we reviewed the website prior to creating the link, we are not responsible for the content of the website. Information on the website may change without notice and we do NOT warrant that information contained on these linked pages is complete or accurate.\n\nPlease be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of First National Bank in Pinckneyville's website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of First National Bank in Pinckneyville's.")){
		return true;
	} else {
		return false;
	}
}

function Q2mail(){
	if(confirm("Information provided through this email link is transmitted over an unsecured connection. Please do not send information such as account numbers, account service requests or other personal information. Please contact us in person, by telephone or by mail with confidential information.")){
		return true;
	} else {
		return false;
	}
}

function CheckBoxCheck(type){
	if(type == 0){
		if(document.Q2OnlineLogin.forgot_password[0].checked){
			document.Q2OnlineLogin.forgot_password[1].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
		} else {
			document.Q2OnlineLogin.password.disabled = false;
		}
	} else if(type == 1){
		if(document.Q2OnlineLogin.forgot_password[1].checked){
			document.Q2OnlineLogin.forgot_password[0].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
		} else {
			document.Q2OnlineLogin.password.disabled = false;
		}
	}
}

function onlyNumbers(evt)
{
	var e = event || evt; // for trans-browser compatibility
	var charCode = e.which || e.keyCode;

	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;

	return true;

}

$(document).ready(function() {
	$("#slideshow").css("overflow", "hidden");
	
	$("ul#slides").cycle({
		fx: 'fade',
		prev: '#prev',
		next: '#next'
	});
	
	
});


