// JavaScript Document
function setAction()
{
	if(document.Remote.loginTo[1].checked)
	{
	document.Remote.nmUID.value = document.Remote.AccessID.value;
	//document.Remote.target = '_blank';
	document.Remote.action = 'https://ws.ecorphost.net/EBC_EBC1961/EBC1961.ASP?WCI=Process&WCE=RemoteLogon&IRL=T';
	}
}
   
function doLoginRefresh()
{
	if (document.Remote.AccessID.value != "")
		{
		setAction();
		setTimeout('document.Remote.reset()', 20000);
		document.Remote.AccessID.value=document.Remote.AccessID.value;
		return true;
		}
	else
		{
		alert("\n Please Enter a valid Access ID.  Thank you!\n\n\t"); 
		return false;
		}	
}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function disclosure()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("https://bc4.fiservse.com/WebCaptureWeb/MerchantCapture.do?appId=EBI1450&FID=061121041_");
  }
else
  { top.location="#";
  }
}

function disclosure2()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("https://www.clarkeamerican.com/checks");
  }
else
  { top.location="#";
  }
}

function disclosure3()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("http://www.fdic.gov");
  }
else
  { top.location="#";
  }
}

function disclosure4()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("http://www.hud.gov");
  }
else
  { top.location="#";
  }
}

function disclosure5()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("https://secure5.arcot.com/vpas/fisa002506/i18n/en_US/index.html");
  }
else
  { top.location="#";
  }
}

function disclosure6()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("http://www.facebook.com");
  }
else
  { top.location="#";
  }
}

function disclosure7()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("http://twitter.com/#!/cbbga");
  }
else
  { top.location="#";
  }
}

function disclosure8()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("rss.html");
  }
else
  { top.location="#";
  }
}

function disclosure9()
{
var r=confirm("You are leaving Community Business Bank's website. Links that may be accessed via our website are for the convenience of informational purposes only. The site you are about to visit may have a privacy policy that is different than Community Business Bank's. Please review their privacy policy. Community Business Bank does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.");
if (r==true)
  {
  window.open("http://www.linkedin.com/company/cbbga");
  }
else
  { top.location="#";
  }
}
