<!--
function mk_main_imgj(x,u,w,h) {  return mk_jlnk(u,mk_img(get_img(gSec(x),gRef(x),0),w,h,mk_alt(x))) }
function get_points(i) {
	var x,p=gP2(i),r=''
	for (x=0;x<gf(p,-1);x++) r+='<li style="margin-bottom:4px;">'+trim(gf(p,x))
	if (r!='') r='<p><ul style="margin-top:0px;margin-left:18px;margin-bottom:0px;">'+r+'</ul>'
	return r;
}
function get_features(ref,cols) {
	var fy=0,z=0,y; for (y=1;y<fx;y++) if (fb[ref].charAt(y-1)==1) fy++;if (fy>0&&fy<20) fy=20;z=1
	var t='',r='',fr='',fc='</td><td nowrap><small'+MCL+'>'
	if (fy!=0) fr=fb[ref]; else fy=fx;
	for (y=1;y<fx;y++) {
		if (fy==fx||fr.charAt(y-1)==1) {
			t+=fe[y]+BR+(((z++)%(parseInt(fy/cols)+1))==0?fc:'')
		}
	}
	r+=(fy==fx?'Likely ':'')+'<a class=db_features.html href=#>Features: </a></b><br>'
	r+='<table width="100%"><tr valign=top><td nowrap><small'+MCL+'>'+t+'</table>'
	return r
}

function next_record(x) { REFX=(x>dx?x:show_record(gRef(++x)));next_rec.style.disabled=x>=dx;next_rec.style.cursor=x>=dx?'default':'hand'; }
function prev_record(x) { REFX=(x<2?x:show_record(gRef(--x)));prev_rec.style.disabled=x<2?'true':'false';prev_rec.style.cursor=x<2?'default':'hand'; }

function show_record(ref) {
   if (readCookie('registered')==''&&force_reg) {
	writeCookie('regpage',self.location.href);self.location.href=force_reg_htm
   } else {
	var x=get_dbx(ref),xx=x
	if (x>=dx||x<1) x=readCookie('dbx');if (x=='') x=1;
	ref=gRef(x)
	var a=gSec(x),i=basedir,b='/images/blank.gif'
	if (gNam(x)=='undefined') x=0;
	img1.src=b;img2.src=b;img3.src=b;img4.src=b;img5.src=b;
	alnk.innerHTML=area[a]
	nam.innerHTML=gNam(x)
	addr.innerHTML='<!-- Ref: '+ref+' -->'+gcf(gAdr(x),gcf(gAdr(x),-1)-1)
	txt.innerHTML=gDes(x)+get_points(x)
	feats.innerHTML=get_features(ref,2)
	img1.tag=x;img1.src=i+a+'/'+ref+'/final-main.jpg';img1.alt=gAdr(x)+'\nRef: '+ref+'\nClick picture to enquire about\nthis property'
	img2.tag=x;img2.src=i+a+'/'+ref+'/office.jpg';img2.alt='Office'
	img3.tag=x;img3.src=i+a+'/'+ref+'/reception.jpg';img3.alt='Reception'
	img4.tag=x;img4.src=i+a+'/'+ref+'/conference.jpg';img4.alt='Conference'
	img5.tag=x;img5.src=i+a+'/'+ref+'/service.jpg';img5.alt='Service'
	prev_rec.style.disabled=(xx<=1)
	next_rec.style.disabled=(xx>dx-1)
	prev_rec.disabled=(xx<=1)
	next_rec.disabled=(xx>dx-1)
	if (next_rec.style.disabled) next_rec.style.color='#c0c0c0'
	sel_chk_box.checked=sel_item(x)
	writeCookie('dbx',x)
	return x
   }
}


//-->