var curDateTime = new Date().toLocaleString();

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

document.write('    <div id="textclock" class="localtime">' + curDateTime + '</div>');
document.write('<div class="headlinktexttop">');
document.write('   <table border="0" cellpadding="0" cellspacing="0">');
document.write('    <tr>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/Directories/index.html" class="mlinks">Directory</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/cgi-bin/recruitment/db.cgi"  class="mlinks">Jobs</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/cgi-bin/property/db.cgi?do=home&db=property&uid=default" class="mlinks">Property</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/vehicles/" class="mlinks">Cars/LCVs</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/ads" class="mlinks">FREE Ads</a></td>');
document.write('     <td width="62px" align="center"><a href="http://www.townandabout.com/cgi-bin/mail/user/login.cgi" class="mlinks">E-MAIL</a></td>');
document.write('    </tr>');
document.write('   </table>');
document.write('</div>');
document.write('<div class="headlinktext">');
document.write('   <table border="0" cellpadding="0" cellspacing="0">');
document.write('    <tr>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/Directories/index.html" class="mlinks">' + header_vars[0] + '</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/cgi-bin/recruitment/db.cgi"  class="mlinks">' + header_vars[1] + '</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/cgi-bin/property/db.cgi?do=home&db=property&uid=default" class="mlinks">' + header_vars[2] + '</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/vehicles/" class="mlinks">' + header_vars[3] + '</a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/ads" class="mlinks">' + header_vars[4] + '</a></td>');
document.write('     <td width="62px" align="center"><a href="http://www.townandabout.com/cgi-bin/mail/user/login.cgi" class="mlinks">FREE </a></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/Directories/index.html" class="mlinks">Business <br>Listings<br><font color="black"></a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/cgi-bin/recruitment/db.cgi" class="mlinks">Latest Job <br>Vacancies<br><font color="black"></a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/cgi-bin/property/db.cgi?do=home&db=property&uid=default" class="mlinks">For <br>Sale/Rent<br><font color="black"></a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/vehicles/" class="mlinks">New/Used <br>For Sale<br><font color="black"> </a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/ads" class="mlinks">Items For<br>Sale/Want<br><font color="black"> </a></td>');
document.write('     <td width="61px" align="center"><a href="http://www.townandabout.com/cgi-bin/mail/user/login.cgi" class="mlinks">Email<br>30Mb+ <br></a></td>');

document.write('    </tr>');
document.write('   </table>');
document.write('</div>');

document.write('<div class="boldchatpnl" style="float: left; margin-top; margin-left: -370px;">');
document.write('     <td width="61px" align="left"><a href="http://www.townandabout.com/cgi-bin/recruitment/db.cgi?do=home&db=Jobs&fm=long&uid=default"  class="mlinks"><font size="4"><font color="000000"><b><blink>' + header_vars[1] + ' <font color="0000cc"><b>LIVE JOBS - CLICK HERE (ctrl/F5 to refresh)</a></blink></td>');

document.write('</a>');

document.write('</div>');

document.write('<div class="boldchatpnl" style="float: left; margin-top; margin-left: -5px;">');

document.write('<br><a href="http://www.townandabout.com/cgi-bin/community/community.cgi?do=user_signup&url=http://www.townandabout.com" target="_blank"><b><FONT COLOR="#000000"><img src="http://www.townandabout.com/newlook/newlook/images/register1.gif" border="0" style="position:relative; top:3px;" alt="Account Sign Up"></a><a href="http://www.townandabout.com/cgi-bin/community/community.cgi?url=http%3A%2F%2Fwww.townandabout.com%2Fcgi-bin%2Fmail%2Fuser%2Fwebmail.cgi%3Fstay_put%3D1" target="_blank"><img src="http://www.townandabout.com/newlook/newlook/images/login.gif" border="0" style="position:relative; top:3px;" alt="account login"></a><br><br>');
document.write('</a>');

document.write('</div>');

document.write('<div class="boldchatpnl" style="float: left; margin-top: 50px; margin-left: -470px;">');
document.write('<a href="http://clkuk.tradedoubler.com/click?p=1469&a=414439&g=43451" target="_blank"><img src="http://impgb.tradedoubler.com/imp/img/43451/414439" border=0></a><br><br>');
document.write('</div>');

document.write('<map name="Map">');
document.write('  <area shape="circle" coords="428,88,20" href="http://www.townandabout.com/Directories/index.html">');
document.write('  <area shape="circle" coords="487,88,20" href="http://www.townandabout.com/cgi-bin/recruitment/db.cgi">');
document.write('  <area shape="circle" coords="607,88,20" href="http://www.townandabout.com/vehicles/">');
document.write('  <area shape="circle" coords="668,88,20" href="http://www.townandabout.com/ads">');
document.write('  <area shape="circle" coords="728,88,20" href="http://www.townandabout.com/cgi-bin/mail/user/login.cgi">');
document.write('  <area shape="circle" coords="548,88,20" href="http://www.townandabout.com/cgi-bin/property/db.cgi?do=home&db=property&uid=default">');
document.write('  <area shape="poly" coords="40,30,67,31" href="http://www.townandabout.com/">');
document.write('  <area shape="rect" coords="39,13,356,77" href="http://www.townandabout.com/">');
document.write('</map>');
document.write('');
document.write('<div width="778" border="0">');
document.write('<img src="http://www.townandabout.com/newlook/newlook/images/ta_main_header.jpg" width="778" height="230" usemap="#Map" border="0" />');
document.write('</div>');

function clock(){
	time = new Date ();
	text = time.toLocaleString();
	document.getElementById('textclock').innerHTML = text;
	setTimeout('clock()',1000);
}
clock();


//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["nwmFrame","mypollFrame"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight; 
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent)
currentfr.attachEvent("onload", readjustIframe)
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller


//search

function startSearch()
{
	searchString = document.searchForm.searchText.value;
	if(searchString != "")
		{
		searchEngine = document.searchForm.whichSearch.selectedIndex + 1;
		finalSearchString = "";
		switch(searchEngine){
			case 1:
			  finalSearchString = "http://www.townandabout.com/mirago.php?qry=" + searchString + "&amp;ass=1299&amp;filter=0";
			  break;
			case 2:
			  finalSearchString = "http://www.townandabout.com/cgi-bin/links/search.cgi?query=" + searchString;
			  break;
			case 3:
			  finalSearchString = "http://www.townandabout.com/cgi-bin/classifieds/search.cgi?query=" + searchString;
			  break;
			case 4:
			  finalSearchString = "http://www.townandabout.com/awsoapclient/shop?action=awSearchProducts&keywords=" + searchString;
			  break;
			case 5:
			  finalSearchString = "http://www.ticketmaster.co.uk/cgi/asp_events/searchresults.asp?criteria=event&searchstring=" + searchString + "&amp;affiliate=Z136";
			  break;
			case 6:
			  finalSearchString = "http://www.ticketmaster.co.uk/cgi/asp_events/searchresults.asp?criteria=venue&searchstring=" + searchString + "&amp;affiliate=Z136";
			  break;
		  }
		window.open(finalSearchString);
	}
}
document.write('<div class="headsearch"><form name="searchForm" id="searchForm" onsubmit="startSearch();return false;" style="border: 0; padding: 0; margin: 0;">');
document.write('<table border="0" cellspacing="0" cellpadding="0" style="width: 720px; height: 26px;">');
document.write(' ');
document.write('  <tr valign="middle">');

document.write('   <td height="26px" width="60px" valign="middle" style="font-family: lucida, verdana, arial, sans-serif; font-size:12px; font-weight:bold; color: #4c59a2; padding-left:14px; padding-top:5px;">');
document.write('    <img src="http://www.townandabout.com/newlook/newlook/images/search_arrow_tr.gif" valign="bottom"><span style="vertical-align:top;padding-left:2px;padding-right:2px;">SEARCH</span>');
document.write('   </td>');
document.write('   <td height="26px" width="190px" valign="middle">');
document.write('    <select name="whichSearch" id="whichSearch" style="font-size:14px">');
document.write('     <option>UK/World Wide Web</option>');
document.write('     <option>DirectoryPLUS-118</option>');
document.write('     <option>Classified FREE-Ads</option>');
document.write('     <option>My Town Shopping Arena</option>');
document.write('     <option>Search TicketMaster for Events</option>');
document.write('     <option>Search TicketMaster for Venues</option>');
document.write('    </select>');
document.write('   </td>');
document.write('   <td height="26px" align="left" style="font-family:lucida,verdana,arial,sans-serif; font-size:14px; font-weight:bold; color: #4c59a2; padding-bottom:2px;">');
document.write('    <span style="color:#4c59a2; padding-bottom:9px;">&nbsp;For:</span>');
document.write('    <input type="text" size="20" name="searchText" id="searchText" valign="middle" value="[Type your search term here]" onClick="clearThis(this.id);" style="font-size:7pt; width:260px;height:22">');
document.write('    <input type="image" src="http://www.townandabout.com/search.gif" border="0" alt="Go" style="position:relative; top:5px;">');
document.write('   </td>');
 
document.write('  </tr>');

document.write('</table>');

document.write('<table style="width: 720px;" border="0" id="navstrip" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('   <td valign="top" align="left" style="font-family: lucida, verdana, arial, sans-serif; font-size:11px; font-weight:bold;">');
document.write('<a href="http://www.townandabout.com/"><b><FONT COLOR="#000000"><img src="http://www.townandabout.com/images/devel/newarrow.gif" border="0" style="position:relative; top:3px;" alt="Home Page"><u> HOME PAGE</u> <a href="http://www.townandabout.com/cgi-bin/community/community.cgi?do=user_signup" target="_blank"><b><FONT COLOR="#000000"><img src="http://www.townandabout.com/images/devel/newarrow.gif" border="0" style="position:relative; top:3px;" alt="Powerful FREE Email 30Mb Accounts"><u><FONT COLOR="#000000"><b>FREE - 30Mb Email</font color></u><a href="http://www.townandabout.com/cgi-bin/community/community.cgi?do=user_login&url=http%3A%2F%2Fwww.townandabout.com%2Fcgi-bin%2Flinks%2Fpage.cgi%3Fp%3Daddpage%26ID%3D103574" target="_blank"><b><FONT COLOR="black"><b><FONT COLOR="#000000"><img src="http://www.townandabout.com/images/devel/newarrow.gif" border="0" style="position:relative; top:3px;" alt="Add My Business"><u><b><FONT COLOR="#000000">FREE - Add My Business </u> <a href="http://www.townandabout.com/cgi-bin/Yabb2/YaBB.pl" target="_blank"><b><FONT COLOR="black"><b><FONT COLOR="#000000"><img src="http://www.townandabout.com/images/devel/newarrow.gif" border="0" style="position:relative; top:3px;" alt="Mortgage Forum Update"><u><b><FONT COLOR="#000000">FREE - UK Mortgage Forum </u>');
document.write('   </td>');
document.write('  </tr>');
document.write('</table>');
document.write('</form></div>');


function openShop() {
var scriptsrc = 'http://www.townandabout.com/awsoapclient/shop?action=awSearchProducts&keywords=' +document.forms.shop.shopping.value;
myWindow = window.open(scriptsrc, "shopwindow");
myWindow.document.forms[0].submit();
}

function clearThis(idVal){
	document.getElementById(idVal).value="";
}

//search

document.write('<table cellpadding="0" cellspacing="0" border="0" background="http://www.townandabout.com/newlook/newlook/images/scrollimgnew.jpg" style="border 0; background: url(http://www.townandabout.com/newlook/newlook/images/scrollimgnew.jpg); width: 778px;">');
document.write('<tr>');
document.write('<td style="padding-left: 16px; padding-right: 12px; height:34px;"><a href="http://www.townandabout.com/pricewatch-cars.html" target="_blank" title="Town and About Cardata Search Engine"><img src="http://www.townandabout.com/newlook/newlook/images/cardata_taa_750x34.gif" width="750" height="34" alt="URL: townandaboutshopping.com/index.php" border="0" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td style="padding-left: 16px; padding-right: 0px; height:0px;">');
document.write('<input type="image" src="http://www.townandabout.com/orangefade750x3.gif" border="0" alt="Go" style="position:relative; top:0px;">');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

document.write('<table cellpadding="0" cellspacing="0" border="0" background="http://www.townandabout.com/newlook/newlook/images/scrollimgnew.jpg" style="border 0; background: url(http://www.townandabout.com/newlook/newlook/images/scrollimgnew.jpg); width: 778px;">');
document.write('<tr>');
document.write('<td style="padding-left: 16px; padding-right: 12px; height:34px;">');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="border: 0; width: 750px; height: 34px; background: url(http://www.townandabout.com/newlook/newlook/images/cashbackban.gif);"> ');
document.write('<tr>');
document.write('<td style="width: 530px;"><a href="http://www.townandaboutshopping.com/index.php" title="Town and About Cashback Shopping"><img src="http://www.townandabout.com/newlook/newlook/images/sp.gif" width="520" height="26" alt="URL: townandaboutshopping.com/index.php" border="0" /></td>');
document.write('<td style="width: 130px; text-align: center;"><a href="http://www.townandaboutshopping.com/index.php?sp=register" title="Link to Cashback Shopping Registration"><img src="http://www.townandaboutshopping.com/img/register.gif" width="120" height="24" border="0" alt="Register" /></a></td>');
document.write('<td style="width: 100px; text-align: center;"><a href="http://www.townandaboutshopping.com/index.php?sp=register" title="Link to Cashback Shopping Login"><img src="http://www.townandaboutshopping.com/img/login2.gif" width="90" height="24" border="0" alt="Login" /></a></td>');
document.write('</tr>');
document.write('</table>');
document.write('<tr>');
document.write('<td style="padding-left: 16px; padding-right: 0px; height:0px;">');
document.write('<input type="image" src="http://www.townandabout.com/orangefade750x3.gif" border="0" alt="Go" style="position:relative; top:0px;">');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

