window.onload=function()
{
var cityDiv = document.getElementById('cityLabel');
var townDiv = document.getElementById('townLabel');
var zipDiv = document.getElementById('zipLabel');
var postalDiv = document.getElementById('postalLabel');
cityDiv.style.display='block';
zipDiv.style.display='block';
townDiv.style.display='none';
postalDiv.style.display='none';
}

function ValidateCountry()
{
if (document.atmlocator.country.value == "USA")
{
var cityDiv = document.getElementById('cityLabel');
var townDiv = document.getElementById('townLabel');
var stateLabelDiv = document.getElementById('stateLabel');
var stateValueDiv = document.getElementById('stateValue');
var zipDiv = document.getElementById('zipLabel');
var postalDiv = document.getElementById('postalLabel');

cityDiv.style.display='block';
stateLabelDiv.style.display='block';
stateValueDiv.style.display='block';
zipDiv.style.display='block';
townDiv.style.display='none';
postalDiv.style.display='none';
}
else
{
var cityDiv = document.getElementById('cityLabel');
var townDiv = document.getElementById('townLabel');
var stateLabelDiv = document.getElementById('stateLabel');
var stateValueDiv = document.getElementById('stateValue');
var zipDiv = document.getElementById('zipLabel');
var postalDiv = document.getElementById('postalLabel');


cityDiv.style.display='none';
stateLabelDiv.style.display='none';
stateValueDiv.style.display='none';
zipDiv.style.display='none';
townDiv.style.display='block';
postalDiv.style.display='block';
}
}

function display_atmlocator()
{

document.write("<table align='left' border='0' cellpadding='3' cellspacing='0'>");
document.write("<form name='atmlocator' id='atmlocator' action='http://locator.allpointnetwork.com/SearchResults.aspx' method='post'>");
document.write("<TBODY>");
document.write("<tr valign='top'>");
document.write("	<td width='38'><IMG SRC='http://www.allpointnetwork.com/images/ltnav_atmlocator.gif' ALT='ATM Locator' WIDTH='38' HEIGHT='142' BORDER='0'></td>");
document.write("	<td>");
document.write("		<table border='0' cellpadding='0' cellspacing='0' align='center'>");
document.write("		<tr>");
document.write("			<td colspan='2'><img src='http://www.allpointnetwork.com/images/box-country.gif' width='43' height='13' alt='Country'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2'><select name='country' onchange='javascript:ValidateCountry();' >");
document.write("					<option value='UK'>UK</option>");
document.write("					<option value='USA' selected=''>USA</option>");
document.write("					</select>");
document.write("			</td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2' class='mainfont'><img src='http://images.locatorsearch.com/ltnav_streetaddress.gif' width='79' height='16' alt'Street Address'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2'><INPUT name='street' type='text' size='18' class='TextBox'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2' class='mainfont'>");
document.write("				<div id='cityLabel'><img src='http://images.locatorsearch.com/ltnav_city.gif' width='25' height='16' alt='''City'></div>");
document.write("				<div id='townLabel'><img src='http://www.allpointnetwork.com/images/box-town.gif' width='28' height='10' alt='Town' vspace='3'></div>");
document.write("			</td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2'><INPUT name='city' type='text' size='18' maxlength='50' id='city' class='TextBox'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td class='mainfont' colspan='2' ><div id='stateLabel'><img src='http://images.locatorsearch.com/ltnav_state.gif' width='32' height='16' alt'State'></div>");
document.write("			</td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2'><div id='stateValue'><SELECT id='state' name='state' class='TextBox'>");
document.write("								<option value='' selected=''></option>");
document.write("								<option value='AL'>AL</option>");
document.write("								<option value='AK'>AK</option>");
document.write("								<option value='AZ'>AZ</option>");
document.write("								<option value='AR'>AR</option>");
document.write("								<option value='CA'>CA</option>");
document.write("								<option value='CO'>CO</option>");
document.write("								<option value='CT'>CT</option>");
document.write("								<option value='DE'>DE</option>");
document.write("								<option value='DC'>DC</option>");
document.write("								<option value='FL'>FL</option>");
document.write("								<option value='GA'>GA</option>");
document.write("								<option value='HI'>HI</option>");
document.write("								<option value='ID'>ID</option>");
document.write("								<option value='IL'>IL</option>");
document.write("								<option value='IN'>IN</option>");
document.write("								<option value='IA'>IA</option>");
document.write("								<option value='KS'>KS</option>");
document.write("								<option value='KY'>KY</option>");
document.write("								<option value='LA'>LA</option>");
document.write("								<option value='ME'>ME</option>");
document.write("								<option value='MD'>MD</option>");
document.write("								<option value='MA'>MA</option>");
document.write("								<option value='MI'>MI</option>");
document.write("								<option value='MN'>MN</option>");
document.write("								<option value='MS'>MS</option>");
document.write("								<option value='MO'>MO</option>");
document.write("								<option value='MT'>MT</option>");
document.write("								<option value='NE'>NE</option>");
document.write("								<option value='NV'>NV</option>");
document.write("								<option value='NH'>NH</option>");
document.write("								<option value='NJ'>NJ</option>");
document.write("								<option value='NM'>NM</option>");
document.write("								<option value='NY'>NY</option>");
document.write("								<option value='NC'>NC</option>");
document.write("								<option value='ND'>ND</option>");
document.write("								<option value='OH'>OH</option>");
document.write("								<option value='OK'>OK</option>");
document.write("								<option value='OR'>OR</option>");
document.write("								<option value='PA'>PA</option>");
document.write("								<option value='RI'>RI</option>");
document.write("								<option value='SC'>SC</option>");
document.write("								<option value='SD'>SD</option>");
document.write("								<option value='TN'>TN</option>");
document.write("								<option value='TX'>TX</option>");
document.write("								<option value='UT'>UT</option>");
document.write("								<option value='VT'>VT</option>");
document.write("								<option value='VA'>VA</option>");
document.write("								<option value='WA'>WA</option>");
document.write("								<option value='WV'>WV</option>");
document.write("								<option value='WI'>WI</option>");
document.write("								<option value='WY'>WY</option>");
document.write("							</SELECT></div>");
document.write("			</td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2' class='mainfont'>");
document.write("				<div id='zipLabel'><img src='http://images.locatorsearch.com/ltnav_zipcode.gif' width='47' height='16' alt='''Zip Code'></div>");
document.write("				<div id='postalLabel'><img src='http://www.allpointnetwork.com/images/box-postal.gif' width='61' height='11' alt='Postal Code' vspace='3'></div>");
document.write("			</td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2' class='mainfont'><INPUT name='zipcode' type='text' size='8' maxlength='10' id='zipcode' class='TextBox'></td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td colspan='2' class='mainfont'>&nbsp;</td>");
document.write("		</tr>");
document.write("		<tr>");
document.write("			<td align='left' colspan='2'><input type='image' src='http://images.locatorsearch.com/findlocations.gif' border='0'></td>");
document.write("		</tr>");
document.write("		</table>");
document.write("	</td>");
document.write("</tr>");
document.write("</form>");
document.write("</table>");

}
