| Related sites for http://sport.scotsman.com/ |
| Zeenews_com__Sport Indian and international news and articles. | | AP__Top_Sports_News Articles from the Associated Press. [RSS] | | BBC_Sport__Winter_Sports News and feature articles. [RSS] | | Boston_Globe__Sports_News Articles and headline news from the US newspaper. [RSS] | | CBC__Sports_News Canadian and international sports news and articles. [RSS] | | CBS_Sports_Line Breaking news and articles. [RSS] | | Chicago_Sun-Times__Sports Breaking news stories. [RSS] | | Chicago_Tribune__Sports Headline news and articles. Local, national, and international coverage. [RSS] | | Fort_Worth_Star-Telegram__Sports Feature articles and headline news from the Texas newspaper. [RSS] | | FOX_SportsNews Breaking news, features, statistics, scores, standings, and schedules. [RSS] | | Foxsports_com_au__Top_Stories Australian and international headline news and feature reports. [RSS] | | The_Globe_and_Mail__Sports_News Headline news and feature articles from the Canadian newspaper. [RSS] | | Houston_Chronicle__Sports News and features stories from the Texas newspaper. [RSS] | | International_Herald_Tribune__Sports Features stories and headline news. [RSS] | | The_Irish_Times__Sport_Top_Stories Irish and international stories and news. [RSS] | | Los_Angeles_Times__Sports Feed with headline news and feature stories from the US newspaper. [RSS] | | MSNBC_com__Sports Headline news and articles from NBC. [RSS] | | New_York_Times__Sports Feature articles and breaking news. [RSS] | | New_Zealand_Herald__Sport National and international news and articles from the newspaper. [RSS] | | NPR_Topics__Sports News and feature articles from National Public Radio. [RSS] | | Reuters__Sports Offers continuously updated headline news stories. [RSS] | | RTÉ_Sport Latest Irish and international news. [RSS] | | The_Scotsman__Sport News and articles from the Scottish newspaper. [RSS] | | SFGate__Top_Sports_Stories News and articles from the San Francisco Chronicle. [RSS] | | Sky_Sports Articles and news from the broadcast network. [RSS] | | Sports_ie Aggregated headline news from several sources. [RSS] | | The_Telegraph_Sport UK and international news and stories. [RSS] | | Tsn_ca__Top_Sports_Stories Breaking news and stories from the Canadian broadcast network. [RSS] | | TVNZ_One_Sport__Sports_News National and international news, articles, and videos from the New Zealand broadcaster. [RSS] | | USA_Today__Sports_Top_Stories Articles and headline news from the newspaper. [RSS] | | Airsoft-News_EU European Airsoft news and information weblog, reporting on Airsoft guns, tactical gear and player related information | | Handball_Ireland Official site with history, news, events, fixtures, results, and player profiles. | | Kentucky_Goalball Provides team information, player profiles, practice location, and related links. Supported by the Kentucky Association of Blind Athletes. | | Cambridgeshire_Korfball_Association Information about the sport locally, including news, fixtures, results, and a listing of clubs in Cambridge and Littleport, England. | | Central_England_Korfball_League The CEKL is an English league with feeder leagues in the East Midlands, West Midlands, Potteries, North West and Yorkshire. Site contains details of all clubs involved in the league pyramid. | | English_Korfball_Association The English Korfball Association, governing body of the sport in England. Featuring latest news and details of national competitions and squads. | | WebRing_-_Korfball Worldwide directory of korfball sites. | | Croquet_Chronology Maui Croquet Club's very comprehensive chronology and history. | | Croquet_Queensland__Origin_of_Croquet Croquet Association Queensland's narrative history. | | Online_Guide_to_Traditional_Games History and information. |
|
Scotsman.com Sport - Scottish sport direct from Scotland
//
var adNum = 0;function GetNextAdNum() { return ++adNum; } var ord = 866110310
Register
Sign In
Help
Sitemap
Home
Skip Navigation
Contact Us
Disability Statement
var adPos = 0;
if (top != self)
{
try { adPos = parent.GetNextAdNum(); } catch(err) { adPos = parent.parent.GetNextAdNum(); }
}
else
{
adPos = GetNextAdNum();
}
document.write('');

Site
Web
Search
Home
News
Sport
Business
Your Say
Newspaper
Health Info
enhanced by
SPL
Olympics
Football
Rugby
Golf
Racing
Motorsport
Cricket
Tennis
Athletics
Boxing
Other Sports
You need to have javascript enabled to view this page correctly
Tuesday, 18th November 2008
Sport
Burley cautious over Barry Ferguson's return
SCOTLAND manager George Burley has welcomed Barry Ferguson back to his team as captain for tomorrow's friendly against Argentina at Hampden, but sounded a note of caution on the midfielder's fitness.
Sport
Butcher says he will never forgive Maradona
TERRY Butcher's simmering refusal to forgive Diego Maradona's fraudulence at the World Cup in Mexico in 1986 ensures that, when the two men meet at Hampden Park tomorrow night, the infamous Hand of God will not be allowed to wrap itself aro
Sport
Scotland make four changes for Canada match
Lineen insists victory against Canada is vital
Hearts boss Laszlo seeks Larry talks
Hampden half-empty for Argentina
Park hoping bug bites no more Hibs players
Sport
Iwelumo out to bury ghost of Hampden horror miss
Southwell sure Scots will begin to flourish come spring
Ballboy treasures priceless souvenir of Maradona's visit to Celtic Park
Blow for Capitals as Nimmo swaps Edinburgh for Florida
Miller and Robertson called up to squad
Watch our rugby highlights package
Video highlights
News from your club
Calling all golfers
Latest from Easter Road
Park hoping bug bites no more Hibs players
Rankin says celebrations prove Hibs have piles of spirit
Latest from Tynecastle
Hearts boss Laszlo seeks Larry talks
Lee's leftfield strength helps Hearts release the pressure
Ex-Hearts man Fernando hopes friendly will make his stars bright
Arbroath awaiting cash from Hearts
Latest from Celtic Park
Caddis out to impress club boss Strachan
Latest from Ibrox
Rangers 2 - 1 St Mirren: Lack of killer instinct forces Smith to endure anxious ending at Ibrox
McCulloch makes his case for the defence with switch
Your essential Eating Out Guide
A full spectrum of coverage
From gigs to gardens
google_ad_client = 'ca-johnstonpress_html';
google_ad_width = '300';
google_ad_height = '250';
google_ad_format = '300x250_pas_abgc';
google_color_bg = 'ebebeb';
google_color_border = 'ebebeb';
google_color_line = 'ebebeb';
google_color_link = '0000ff';
google_color_text = '000000';
google_color_url = '0000ff';
google_safe = 'high';
google_ad_channel = 'homepage';
The latest team and player news
Today's football headlines:
Burley cautious over Barry Ferguson's return
Butcher says he will never forgive Maradona
Hearts boss Laszlo seeks Larry talks
Robust rugby coverage...
Today's rugby headlines:
Scotland make four changes for Canada match
Lineen insists victory against Canada is vital
Southwell sure Scots will begin to flourish come spring
The Murray men and more...
Today's tennis headlines:
No rest for perfectionist Murray as he prepares to fine tune his skills
Djokovic targets rankings summit after superb Masters Cup win
Scottish Government Home Reports
Don't miss a beat...
Making travel plans?
Home
Back to content
Sitemap
Contact Us
function PerformLocalPagesSearch() {
var objLocation = document.getElementById("txtLocation");
var objName = document.getElementById("txtName");
var objCategory = document.getElementById("txtCategory");
var strUrl = "http://www.localpagestoday.co.uk/results.aspx?Radius=10";
if ((objLocation != null) && (objLocation.value != null) && (objLocation.value.length> 0)) {
if ((objName != null) && (objName.value != null) && (objName.value.length> 0)) {
strUrl = strUrl + "&BusinessName=" + escape(objName.value);
}
if ((objCategory != null) && (objCategory.value != null) && (objCategory.value.length> 0)) {
strUrl = strUrl + "&Category=" + escape(objCategory.value);
}
strUrl = strUrl + "&Location=" + escape(objLocation.value);
window.open(strUrl);
}
}
Looking for a...
e.g Florist, Taxi
or a company called...
e.g Johnston Press
Within 10 miles of.....
e.g Edinburgh
Search
Browse Categories > >
Add your business >>
Property
Jobs
Motors
Also Search
Weather for Edinburgh
Sunny spells
Temperature: 11C
Wind Speed: 14mph
Wind Direction: West
View 5 day forecast >>
Featured Advertising
New - from scotsman.com
control for popup window
Contact us
Help
Accessibility
Terms & Conditions
Archive
Our sister newspapers
All rights reserved ©2008
Johnston Press Digital Publishing
Sister Newspapers:
This website and its associated newspaper adheres to the Press Complaints Commission’s Code of Practice. If you have a complaint about editorial content which relates to inaccuracy or intrusion, then contact the Editor by clicking here.
If you remain dissatisfied with the response provided then you can contact the PCC by clicking here.
var adPos = 0;
if (top != self)
{
try { adPos = parent.GetNextAdNum(); } catch(err) { adPos = parent.parent.GetNextAdNum(); }
}
else
{
adPos = GetNextAdNum();
}
document.write('');
document.write('');
document.write('');
document.onkeypress=catchReturn;function catchReturn(e){ e=(e)?e:event; var keyCode=e.keyCode?e.keyCode:e.which?e.which:e.charCode; if(keyCode==13){ if(document.activeElement && document.activeElement.id=='GoogleSearchWords') { doSearch();return false; }else{return keyCode; } }else{return keyCode;}}function doSearch(){
var keywords=document.getElementById('GoogleSearchWords');
var searchweb=document.getElementById('GoogleSearchWeb');
if(!keywords || keywords.value==''){
alert('You must enter text to search on');
return;
}
var url='/googlesearch.aspx?Keywords='+escape(keywords.value);
if(searchweb.checked==true){
url+='&IsWebSearch=True';
}
window.location=url;
}
function setSearch(){
var keywords=document.getElementById('GoogleSearchWords');
if(keywords){
keywords.value="";
}
}
setSearch();
//
__wpm = new WebPartManager();
__wpm.overlayContainerElement = null;
__wpm.personalizationScopeShared = true;
var zoneElement;
var zoneObject;
zoneElement = document.getElementById('Zone1');
if (zoneElement != null) {
zoneObject = __wpm.AddZone(zoneElement, 'Zone1', true, false, 'black');
zoneObject.AddWebPart(document.getElementById('WebPart_wp955266808'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp16159909'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp100226691'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1531706007'), null, false);
}
zoneElement = document.getElementById('Zone6');
if (zoneElement != null) {
zoneObject = __wpm.AddZone(zoneElement, 'Zone6', true, false, 'black');
zoneObject.AddWebPart(document.getElementById('WebPart_wp1205026512'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp309950668'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1112027117'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1352104279'), null, false);
}
zoneElement = document.getElementById('Zone3');
if (zoneElement != null) {
zoneObject = __wpm.AddZone(zoneElement, 'Zone3', true, false, 'black');
zoneObject.AddWebPart(document.getElementById('WebPart_wp640560646'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wpStaticIncludes3'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wpStaticIncludes2'), null, false);
}
zoneElement = document.getElementById('Zone2');
if (zoneElement != null) {
zoneObject = __wpm.AddZone(zoneElement, 'Zone2', true, false, 'black');
zoneObject.AddWebPart(document.getElementById('WebPart_wp1506567641'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1078995860'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp471420206'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1399570775'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1393575086'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1584459785'), null, false);
}
zoneElement = document.getElementById('Zone5');
if (zoneElement != null) {
zoneObject = __wpm.AddZone(zoneElement, 'Zone5', true, false, 'black');
zoneObject.AddWebPart(document.getElementById('WebPart_wp1524135857'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp80641401'), null, false);
zoneObject.AddWebPart(document.getElementById('WebPart_wp1516876292'), null, false);
}
zoneElement = document.getElementById('Zone4');
if (zoneElement != null) {
zoneObject = __wpm.AddZone(zoneElement, 'Zone4', true, false, 'black');
zoneObject.AddWebPart(document.getElementById('WebPart_wp849170828'), null, false);
}
var c_strSitecode = "SS";
var c_strFixedLocation = "";
var c_blnIsFixed = false;
var c_intwMLocationIndex = -1;
var c_blnwMCallWaiting = false;
var c_blnwMCallInProgress = false;
var c_objwMSuggestedLocations ;
var c_objwMSelectedLocation;
var c_blnwMROI = false;
var c_intwMLast;
var xhttpwMLS;
var c_strwMAjaxPath = "GetAjax.aspx";
var c_objwMNearestSitecode;
var c_intwMDivHeigth = 130;
var c_intwMDivWidth = 150;
var c_intwMDivScrollOffset = 20;
var c_intwMDivItemCount = 5;
if(c_blnIsFixed==false){
document.onkeypress = wMKeyPress;
}else{
wMSubmitSearch();
}
function wMKeyPress(e)
{
var intKeycode = e ? e.which : window.event.keyCode;
return intKeycode != 13;
}
function wMSearchTextChanged(intKeycode)
{
var txtSearchText = document.getElementById('txtLocation');
var divLayer = document.getElementById('wMDivLayer')
//divLayer.style.zIndex = 2;
switch (intKeycode)
{
case 32:
//do nothing - space
return;
case 37:
//do nothing - cursor left
return;
case 39:
//do nothing - cursor right
return;
case 38:
// up arrow
// if we have some suggestions and we're not right at the top, highlight the previous item
if (c_objwMSuggestedLocations && c_intwMLocationIndex> 0)
{
if(c_intwMLocationIndex>=c_intwMDivItemCount){
var intHeight = document.getElementById("wMdivLocation" + c_intwMLocationIndex).offsetHeight;
divLayer.scrollTop = divLayer.scrollTop - intHeight;
}
wMHighlight(c_intwMLocationIndex - 1);
}
break;
case 40:
// down arrow
// if we have some suggestions and we're not right at the bottom, highlight the next item
if (c_objwMSuggestedLocations && c_intwMLocationIndex < c_objwMSuggestedLocations.Items.length - 1)
{
wMHighlight(c_intwMLocationIndex + 1);
if(c_intwMLocationIndex>c_intwMDivItemCount){
var intHeight = document.getElementById("wMdivLocation" + c_intwMLocationIndex).offsetHeight;
divLayer.scrollTop = divLayer.scrollTop + intHeight;
}
}
break;
case 13:
// if we have a selected location, submit the form
if (c_objwMSelectedLocation)
{
//document.forms[0].submit();
//wMSubmitSearch();
}
else
{
// if the current location index is valid, select it
if (c_intwMLocationIndex>= 0)
{
wMSelectLocation(c_intwMLocationIndex);
}
}
break;
default:
// if at least 3 characters of text has been typed, suggest some locations
if ((txtSearchText.value.length == 2 && parseInt(txtSearchText.value.substring(1, 2))) || txtSearchText.value.length>= 3)
{
wMSuggestLocations();
}
else
{
// hide the layer
divLayer.className = "layeroff";
c_objwMSuggestedLocations = null;
wMOnPopupHide();
//WCH.Discard('wMDivLayer');
}
break;
}
}
function wMSuggestLocations()
{
// is an ajax call already in progress?
c_blnwMCallWaiting = c_blnwMCallInProgress;
// if not, make a call
if (!c_blnwMCallWaiting)
{
// flag that a call is in progress
c_blnwMCallInProgress = true;
if(c_blnIsFixed==true){
var strPath = c_strwMAjaxPath + "?Type=SuggestSitecodeLocation\&ROI=" + c_blnwMROI + "\&OverrideDefaultRadius=10";
}else{
var strPath = c_strwMAjaxPath + "?Type=SuggestLocations\&SearchText=" + document.getElementById('txtLocation').value + "\&ROI=" + c_blnwMROI + "\&OverrideDefaultRadius=10";
}
wMGetSuggestAjaxData(strPath);
}
}
function wMSuggestedLocations()
{
var txtSearchText = document.getElementById('txtLocation');
var divLayer = document.getElementById('wMDivLayer');
var strBuffer = '';
var intMatch = -1;
// set our suggestion object to the value returned from the ajax call
c_intwMLocationIndex = -1;
if (c_objwMSuggestedLocations && c_objwMSuggestedLocations.Items.length> 0)
{
for (intLocationLoop = 0; intLocationLoop < c_objwMSuggestedLocations.Items.length; intLocationLoop++)
{
if (txtSearchText.value.replace(' ', '').toLowerCase() == c_objwMSuggestedLocations.Items[intLocationLoop].DisplayItem.replace(' ', '').toLowerCase())
{
intMatch = intLocationLoop;
}
strBuffer += "" + c_objwMSuggestedLocations.Items[intLocationLoop].DisplayItem + ""
}
if (!c_blnwMCallWaiting)
{
if (c_objwMSuggestedLocations && (!(c_objwMSuggestedLocations.Items[0].IsPartialPostcode || c_objwMSuggestedLocations.Items[0].IsPostcode)))
{//debugger;
divLayer.innerHTML = strBuffer;
divLayer.style.left = txtSearchText.style.left;
divLayer.style.top = txtSearchText.style.top + txtSearchText.style.height;
divLayer.className = "layeron";
if(c_intwMDivWidth>0){
divLayer.style.width = c_intwMDivWidth + 'px';
}else{
divLayer.style.width ='';
}
if(c_intwMDivHeigth> 0 && c_objwMSuggestedLocations.Items.length> c_intwMDivItemCount){
divLayer.style.height = c_intwMDivHeigth + 'px';
divLayer.style.overflow = 'auto';
}else{
divLayer.style.height = '';
divLayer.style.overflow = 'hidden';
}
if(c_intwMDivScrollOffset> 0 && c_objwMSuggestedLocations.Items.length> c_intwMDivItemCount){
for(intX=0;intX= 0)
{
if (c_objwMSuggestedLocations.Items.length == 1)
{
wMSelectLocation(intMatch);
}
else
{
wMHighlight(intMatch);
}
}
else
{
c_objwMSelectedLocation = null;
}
}
}
else
{
wMUnselectLocation();
divLayer.className = "layeroff";
wMOnPopupHide();
}
c_blnwMCallInProgress = false;
if (c_blnwMCallWaiting)
{
wMSuggestLocations();
}
}
function wMHighlight(intID)
{
var txtSearchText = document.getElementById('txtLocation');
var divLocationItems = document.getElementsByTagName('div');
if (c_intwMLocationIndex> -1)
{
document.getElementById("wMdivLocation" + c_intwMLocationIndex).className = "unhighlight";
}
document.getElementById("wMdivLocation" + intID).className = "highlight";
txtSearchText.value = c_objwMSuggestedLocations.Items[intID].DisplayItem;
c_intwMLocationIndex = intID;
}
function wMSelectLocation(intID)
{
c_objwMSelectedLocation = c_objwMSuggestedLocations.Items[intID];
//document.getElementById("wMDivLayer").style.visibility="hidden";
document.getElementById("wMDivLayer").className="off";
wMOnPopupHide();
/*
var strPath = c_strwMAjaxPath + "?Type=GetTheNearestSitecode\&X=" + c_objwMSelectedLocation.X + "\&Y=" + c_objwMSelectedLocation.Y;
var objLayer;
objLayer = document.getElementById("wMDivLayer")
if (objLayer){
//objLayer.style.visibility="hidden";
objLayer.className="off";
wMOnPopupHide();
}
wMGetLocationAjaxData(strPath);
*/
}
function wMNearestSitecode()
{
var txtSearchText = document.getElementById('txtLocation');
var divLayer = document.getElementById('wMDivLayer');
var hidSelectedLocationValue;
c_objwMSelectedLocation.Sitecode = c_objwMNearestSitecode.Sitecode;
c_objwMSelectedLocation.SitecodeMilesFromLocation = c_objwMNearestSitecode.SitecodeMilesFromLocation;
divLayer.className = "layeroff";
wMOnPopupHide();
txtSearchText.value = c_objwMSelectedLocation.DisplayItem;
// update the values of the selected location onto the form so that other controls can access if required
if(document.getElementById('wMLocationID')){document.getElementById('wMLocationID').value = c_objwMSelectedLocation.LocationID;}
if(document.getElementById('wMLocationName')){document.getElementById('wMLocationName').value = c_objwMSelectedLocation.Name;}
if(document.getElementById('wMParent')){document.getElementById('wMParent').value = c_objwMSelectedLocation.County;}
if(document.getElementById('wMX')){document.getElementById('wMX').value = c_objwMSelectedLocation.X;}
if(document.getElementById('wMY')){document.getElementById('wMY').value = c_objwMSelectedLocation.Y;}
if(document.getElementById('wMDefaultRadius')){document.getElementById('wMDefaultRadius').value = c_objwMSelectedLocation.DefaultRadius;}
if(document.getElementById('wMExtraInfo')){document.getElementById('wMExtraInfo').value = c_objwMSelectedLocation.ExtraInfo;}
if(document.getElementById('wMIsPartialPostcode')){document.getElementById('wMIsPartialPostcode').value = c_objwMSelectedLocation.IsPartialPostcode;}
if(document.getElementById('wMIsPostcode')){document.getElementById('wMIsPostcode').value = c_objwMSelectedLocation.IsPostcode;}
if(document.getElementById('wMSitecode')){document.getElementById('wMSitecode').value = c_objwMSelectedLocation.Sitecode;}
if(document.getElementById('wMSitecodeMilesFromLocation')){document.getElementById('wMSitecodeMilesFromLocation').value = c_objwMSelectedLocation.SitecodeMilesFromLocation;}
wMOnItemChanged();
}
function wMUnselectLocation()
{
// update the values of the selected location onto the form so that other controls can access if required
if(document.getElementById('wMLocationID')){document.getElementById('wMLocationID').value = '';}
if(document.getElementById('wMLocationName')){document.getElementById('wMLocationName').value = '';}
if(document.getElementById('wMParent')){document.getElementById('wMParent').value = '';}
if(document.getElementById('wMX')){document.getElementById('wMX').value = '';}
if(document.getElementById('wMY')){document.getElementById('wMY').value = '';}
if(document.getElementById('wMDefaultRadius')){document.getElementById('wMDefaultRadius').value = '';}
if(document.getElementById('wMExtraInfo')){document.getElementById('wMExtraInfo').value = '';}
if(document.getElementById('wMIsPartialPostcode')){document.getElementById('wMIsPartialPostcode').value = '';}
if(document.getElementById('wMIsPostcode')){document.getElementById('wMIsPostcode').value = '';}
if(document.getElementById('wMSitecode')){document.getElementById('wMSitecode').value = '';}
if(document.getElementById('wMSitecodeMilesFromLocation')){document.getElementById('wMSitecodeMilesFromLocation').value = '';}
}
function wMSubmitSearch()
{
}
function BreakOut(strPath){
if (window.top!=window.self){
window.top.location=strPath;
}else{
window.open(strPath);
}
}
//The model & manufactures drop down has a value of ,. Now, for the
//motors search all we want is the ID.
function GetID(strValue){
return strValue.substring(0,strValue.indexOf(","));
}
function FindDotNetControl(strName, strType)
{
var objItem = document.getElementById(strName);
if (objItem){
return objItem;
}
var objInputs = document.getElementsByTagName(strType);
for (i=0;i=0)
{
return objInputs[i];
break;
}
}
}
function wMOnItemChanged()
{
}
function wMOnPopupShow()
{
//We want to hide the controls so that the div can be seen
}
function wMOnPopupHide()
{
//We want to show the controls so that the div can be seen
}
function wMGetSuggestAjaxData(strPath)
{
if (document.all) {
xhttpwMLS = new ActiveXObject("Msxml2.XMLHTTP");
}
else {
xhttpwMLS = new XMLHttpRequest();
}
xhttpwMLS.onreadystatechange = wMOnReadyStateSuggest;
xhttpwMLS.open("GET",strPath, true);
xhttpwMLS.send("");
}
function wMOnReadyStateSuggest()
{
if (xhttpwMLS.readyState==4) {
if (document.all) {
if (xhttpwMLS.responseText!="") {
wMCreateSuggest(xhttpwMLS.responseText);
}
}
else{
if(xhttpwMLS.responseText!="") {
wMCreateSuggest(xhttpwMLS.responseText);
}
}
c_blnwMCallInProgress = false;
}
}
function wMGetLocationAjaxData(strPath)
{
if (document.all) {
xhttpwMLS = new ActiveXObject("Msxml2.XMLHTTP");
}
else {
xhttpwMLS = new XMLHttpRequest();
}
xhttpwMLS.onreadystatechange = wMOnReadyStateLocation;
xhttpwMLS.open("GET",strPath, true);
xhttpwMLS.send("");
}
function wMOnReadyStateLocation()
{
if (xhttpwMLS.readyState==4) {
if (document.all) {
if (xhttpwMLS.responseText!="") {
wMCreateLocation(xhttpwMLS.responseText);
}
}
else{
if(xhttpwMLS.responseText!="") {
wMCreateLocation(xhttpwMLS.responseText);
}
}
c_blnwMCallInProgress = false;
}
}
function wMCreateSuggest(strData)
{
c_objwMSuggestedLocations = new clswMObjectCollection();
var strTempA = strData.split("[|]")
for(x=0;x=2){
this.Sitecode = strTempA[0];
if(parseInt(strTempA[1])){
this.SitecodeMilesFromLocation = parseInt(strTempA[1]);
}else{
this.SitecodeMilesFromLocation = 0;
}
}
else{
this.Sitecode = "";
this.SitecodeMilesFromLocation = 0;
}
}
function clswMLocation(strData)
{
var strTempA = strData.split("|");
if(strTempA.length>=12){
if(parseInt(strTempA[0])){
this.LocationID = parseInt(strTempA[0]);
}else{
this.LocationID = -1;
}
this.Name = strTempA[1];
this.County = strTempA[2];
if(parseInt(strTempA[3])){
this.X = parseInt(strTempA[3]);
}else{
this.X = -1;
}
if(parseInt(strTempA[4])){
this.Y = parseInt(strTempA[4]);
}else{
this.Y = -1;
}
if(parseInt(strTempA[5])){
this.DefaultRadius = parseInt(strTempA[5]);
}else{
this.DefaultRadius = 0;
}
this.DisplayItem = strTempA[6];
if(strTempA[7].length==3){
this.IsPartialPostcode = false;
}
else{
this.IsPartialPostcode =(strTempA[7]=="false")?false:true;
}
if(strTempA[8].length==3){
this.IsPostcode = false;
}
else{
this.IsPostcode =(strTempA[8]=="false")?false:true;
}
this.ExtraInfo = strTempA[9];
this.Sitecode = strTempA[10];
if(parseInt(strTempA[11])){
this.SitecodeMilesFromLocation = parseInt(strTempA[11]);
}else{
this.SitecodeMilesFromLocation = 0;
}
}
else{
this.LocationID=-1;
this.Name="";
this.County="";
this.X=-1;
this.Y=-1;
this.DefaultRadius=0;
this.DisplayItem="";
this.IsPartialPostcode=false;
this.IsPostcode=false;
this.ExtraInfo="";
this.Sitecode="";
this.SitecodeMilesFromLocation=0;
}
}
function clswMObjectCollection()
{
var objItems=new Array()
this.Items=objItems
this.Add=function(objItem) {
if (typeof(objItem)=="object") {
objItems[objItems.length]=objItem
}
}
this.ClearAll=function() {
objItems =new Array()
}
}
var c_strSelectedPod = "";
var c_strSiteCode = document.getElementById("tmpSiteCode");
ShowPod("Jobs",c_strSiteCode.value);
function ShowPod(strName, strSiteCode){
switch (strName)
{
case 'Jobs':
if(c_strSelectedPod != strName){
SetSelectedTab(strName)
UnSetSelectedTab('Property')
UnSetSelectedTab('Motors')
c_strSelectedPod = strName;
ShowSource("/JobsSearchPod.aspx");
ShowSourceIOTW("/JobsDart.aspx");
}
break;
case 'Property':
if(c_strSelectedPod != strName){
SetSelectedTab(strName)
UnSetSelectedTab('Jobs')
UnSetSelectedTab('Motors')
c_strSelectedPod = strName;
ShowSource("/PropertySearchPod.aspx");
ShowSourceIOTW("/ItemOfTheWeek.aspx?Type=Property&sitecode=" + strSiteCode);
}
break;
case 'Motors':
if(c_strSelectedPod != strName){
SetSelectedTab(strName)
UnSetSelectedTab('Property')
UnSetSelectedTab('Jobs')
c_strSelectedPod = strName;
ShowSource("/MotorsSearchPod.aspx");
ShowSourceIOTW("/ItemOfTheWeek.aspx?Type=Motors");
}
break;
}
}
function ShowSource(strPath) {
var objIframe=document.getElementById("PodSource")
if (objIframe) {
objIframe.src=strPath;
}
}
function ShowSourceIOTW(strPath) {
var objIframe=document.getElementById("IOTWSource")
if (objIframe) {
objIframe.src=strPath;
}
}
function SetSelectedTab(strSelectedTab) {
document.getElementById(strSelectedTab).className = "selected";
}
function UnSetSelectedTab(strSelectedTab) {
document.getElementById(strSelectedTab).className = "";
}
|
|