var viewprefix = 'WLA';var viewpost = '';var viewla = '';function ourMaps(){	if(tMI.mapselector){		tMI.mapselector.style.display = 'none';		tMI.mapselector = null;	}else		drawDialog(viewprefix, viewpost, null, true);}function selectMap(n, u){	if(selmap) selmap.style.background = 'none';	selmap = $('MAP' + n);	selCat(selmap);	selurl = u;	$('butMsg').innerHTML = '<div style="padding:5px;">Click to open "' + n.replace(/\+/g, ' ') + '":<div class="mspx">&nbsp;</div></div>';	$('bsurround').style.cssText = 'background:#e0f1ff; border:1px dashed #ccc;';	$('butMsg').style.display = 'inline';	$('laselect').options.length = 0;	var tg = u.substring(0, u.indexOf('?'));	tg = 'wlamaps' + tg.substring(tg.indexOf('.nsf'));	c = new SJAX('/tmaps.nsf/' + viewprefix + 'MU?ReadForm&u=' + tg);	xml = cx(c.doGet());	var las = xml.getElementsByTagName('las')[0];	if(las){		var lax = las.getElementsByTagName('la');		if(lax.length == 1 && lax[0].firstChild.nodeValue){			$('ladiv').style.display = 'none';		}else{			var wlamsg = '';			var lamsg = '';			for(x=0; x<lax.length;x++){				if(lax[x].firstChild.nodeValue == 'West London'){				}else					$('laselect').options[x] = new Option(lax[x].firstChild.nodeValue,lax[x].firstChild.nodeValue);			}			$('ladiv').style.display = 'block';		}	}}function drawMap(w, la){	var ty = $('providerselect');	if(la) la = la.options[la.selectedIndex].value;	if(w) if(la!='Brent') selurl = 'wlamaps' + selurl.substring(selurl.indexOf('.nsf'));	if(la) if(la != 'Brent') selurl = 'wlamaps' + selurl.substring(selurl.indexOf('.nsf'));	if(la) if(la == 'Brent') if(backupsel) selurl = backupsel;	url = '/tmaps.nsf/Map?ReadForm&x=' + ty.options[ty.selectedIndex].value + '&loc=' + selurl;	if(url.indexOf('&la=') >-1) url = url.substring(0, url.indexOf('&la='));	if(la) url = url + '&la=' + la;	window.location = url;}