function print_results_no_pic(agency,postalid,title,short_description,council,postcode,bedrooms,price,status,clip,id,session_name,session_id,picture,owner,newAdvertMessage,SiteURL)
{
if (agency){
	backgroundstyle = "site-color3";
	cornerimage = "piece1.gif";
} else {
	backgroundstyle = "site-color4";
	cornerimage = "piece2.gif";
}

document.writeln('<!-- results first row-->                                                                                                                                                              ');
document.writeln('		<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                         ');
document.writeln('			<tr>                                                                                                                                                                         ');
document.writeln('				<td valign="top">                                                                                                                                                        ');
document.writeln('					<table border=0 cellpadding=0 cellspacing=0>                                                                                                                         ');
document.writeln('						<tr>                                                                                                                                                             ');
document.writeln('								<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                        ');
document.writeln('								<td colspan=2 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                 ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr align="left">                                                                                                                                            ');
document.writeln('								<td class="'+backgroundstyle+'">                                                                                                                                   ');
document.writeln('									<table width="100" border=0 cellpadding=0 cellspacing=0 align="left">                                                                                ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td colspan=2 height="3"></td>                                                                                                               ');
document.writeln('											</td>                                                                                                                                        ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td align="left" colspan=2>                                                                                                                  ');
document.writeln('												<table border=0 cellpadding=0 cellspacing=0>                                                                                             ');
document.writeln('													<tr>                                                                                                                                 ');
document.writeln('														<td width="25" align="center"><img src="images/ico_flag.gif" width="15" height="15" border=0></td>                            ');
document.writeln('														<td class="smalltext" width="30"><nobr>'+status+' '+newAdvertMessage+'</nobr></td>                                                                    ');
document.writeln('													</tr>                                                                                                                                ');
document.writeln('												</table>                                                                                                                                 ');
document.writeln('											</td>                                                                                                                                        ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td colspan=2 height="5"></td>                                                                                                               ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('									</table>                                                                                                                                             ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('								<td class="'+backgroundstyle+'" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                   ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                       ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td valign="bottom"><img src="images/'+cornerimage+'" valign="absbottom"></td>                                                                                         ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- results second row -->                                                                                                                                                            ');
document.writeln('			<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                     ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                    ');
document.writeln('					<td colspan=5 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td class="site-color1" width="440">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0>                                                                                                                     ');
document.writeln('							<tr>																																						');
document.writeln('								<td colspan="2" height="5"></td>																														');
document.writeln('							</tr>																																						');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="top"><img src="images/ico_smallhome.gif" border="0"></td>                                                                  ');
document.writeln('								<td width="280" align="left" class="smalltext">                                                                                                          ');
document.writeln('									<table border=0 cellspacing=0 cellpadding=0>                                                                                                         ');
document.writeln('										<tr>                                                                                                                                             ');
if (screen.width < 801){
	if (owner.substring(0,8) == 'operator'){
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	} else {
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	}
} else {
	if (owner.substring(0,8) == 'operator'){
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	} else {
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	}

}
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td class="smalltext">'+short_description+'</td>         ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('									</table>                                                                                                                                             ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>																																						');
document.writeln('								<td colspan="2" height="5"></td>																														');
document.writeln('							</tr>																																						');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td colspan=5 bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                                   ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- results third row -->                                                                                                                                                             ');
document.writeln('			<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                     ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                    ');
document.writeln('					<td colspan=2 width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td bgcolor="#FFFFFF" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td class="site-color1" width="440">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0 height="30">                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="middle"><img src="images/arrow2.gif"></td>                                                                      ');
document.writeln('								<td width="280" align="left" class="smalltext">                                                                                                          ');
document.writeln('									<a class="search">'+council+' | '+postcode+'</a>                                                                                                        ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td colspan=3 bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                                   ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- results fourth row -->                                                                                                                                                            ');
document.writeln('			<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                     ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                    ');
document.writeln('					<td colspan=2 width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('					<td colspan=2 width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td bgcolor="#FFFFFF" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td class="site-color1" width="240">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0 height="30">                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="middle"><img src="images/arrow2.gif"></td>                                                                      ');
document.writeln('								<td width="100" align="left" class="smalltext">                                                                                                          ');
document.writeln('									<a class="search">Bedrooms: '+bedrooms+'</a>                                                                                                                    ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td bgcolor="#FFFFFF" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td class="'+backgroundstyle+'" width="228">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0 height="30">                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="middle"><img src="images/ico_price.gif"></td>                                                                      ');
document.writeln('								<td width="180" align="left" class="smalltext">                                                                                                          ');

if(status.indexOf("LET",0)!=-1){
	document.writeln('									<a class="search">Price:&nbsp;&nbsp;'+price+' per week</a>                                                                                                ');
}else{
	document.writeln('									<a class="search">Price:&nbsp;&nbsp;'+price+'</a>                                                                                                ');
}

document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td colspan=6 bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                                   ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- buttons -->                                                                                                                                                                       ');
document.writeln('			<table border=0 cellspacing=0 cellpadding=4 align="right" width="430">                                                                                                       ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td width="100%" class="smalltext" align="right">                                                                                                                    ');
if(document.all){
	document.writeln('						<a href="' + SiteURL + 'clipboard/manage.php?id='+id+'&postalid='+postalid+'&'+session_name+'='+session_id+'" target="tempframe"><img name="imag'+id+'" src="images/buttons/'+clip+'.gif" height="14" border=0></a>&nbsp;');
}else{
	document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'clipboard/manage.php?id='+id+'&postalid='+postalid+'&'+session_name+'='+session_id+'\',\'tempClip\',100,100,'+(screen.height-200)+','+(screen.width-120)+');window.focus()"><img name="imag'+id+'" src="images/buttons/'+clip+'.gif" height="14" border=0></a>&nbsp;');
}

if (screen.width < 801){
	if (owner.substring(0,8) == 'operator'){
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	} else {
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	}
} else {
	if (owner.substring(0,8) == 'operator'){
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	} else {
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	}

}

document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table><br><br>                                                                                                                                                             ');
}

function print_results(agency,postalid,title,short_description,council,postcode,bedrooms,price,status,clip,id,session_name,session_id,picture,owner,newAdvertMessage,SiteURL)
{

if (agency){
	backgroundstyle = "site-color3";
	cornerimage = "piece1.gif";
} else {
	backgroundstyle = "site-color4";
	cornerimage = "piece2.gif";
}

document.writeln('<!-- results first row-->                                                                                                                                                              ');
document.writeln('		<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                         ');
document.writeln('			<tr>                                                                                                                                                                         ');
document.writeln('				<td valign="top">                                                                                                                                                        ');
document.writeln('					<table border=0 cellpadding=0 cellspacing=0>                                                                                                                         ');
document.writeln('						<tr>                                                                                                                                                             ');
document.writeln('								<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                        ');
document.writeln('								<td colspan=2 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                 ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr align="left">                                                                                                                                            ');
document.writeln('								<td class="'+backgroundstyle+'">                                                                                                                                   ');
document.writeln('									<table width="100" border=0 cellpadding=0 cellspacing=0 align="left">                                                                                ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td colspan=2 height="3"></td>                                                                                                               ');
document.writeln('											</td>                                                                                                                                        ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td align="left" colspan=2>                                                                                                                  ');
document.writeln('												<table border=0 cellpadding=0 cellspacing=0>                                                                                             ');
document.writeln('													<tr>                                                                                                                                 ');
document.writeln('														<td width="25" align="center"><img src="images/ico_flag.gif" width="15" height="15" border=0></td>                            ');
document.writeln('														<td class="smalltext" width="30"><nobr>'+status+'</nobr></td>                                                                    ');
document.writeln('													</tr>                                                                                                                                ');
document.writeln('												</table>                                                                                                                                 ');
document.writeln('											</td>                                                                                                                                        ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td colspan=2 height="5"></td>                                                                                                               ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('									</table>                                                                                                                                             ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('								<td class="'+backgroundstyle+'" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                   ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                       ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td valign="bottom"><img src="images/'+cornerimage+'" valign="absbottom"></td>                                                                                         ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- results second row -->                                                                                                                                                            ');
document.writeln('			<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                     ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                    ');
document.writeln('					<td colspan=5 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td class="site-color1">                                                                                                                                               ');
document.writeln('						<table width="110" border=0 cellpadding=0 cellspacing=0>                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 height="6"></td>                                                                                                                           ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 align="center" class="smalltext"><img src="'+picture+'" width="67" height="67" border=0>                                       ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 height="6"></td>                                                                                                                           ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td bgcolor="#FFFFFF" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td class="site-color1" width="330">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0>                                                                                                                     ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="top"><img src="images/ico_smallhome.gif"></td>                                                                  ');
document.writeln('								<td width="280" align="left" class="smalltext">                                                                                                          ');
document.writeln('									<table border=0 cellspacing=0 cellpadding=0>                                                                                                         ');
document.writeln('										<tr>                                                                                                                                             ');
if (screen.width < 801){
	if (owner.substring(0,8) == 'operator'){
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	} else {
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	}

} else {
	if (owner.substring(0,8) == 'operator'){
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	} else {
		document.writeln('										<td><a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')" class="search">' + title + '</a></td>');
	}
}
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('										<tr>                                                                                                                                             ');
document.writeln('											<td class="smalltext">'+short_description+'</td>         ');
document.writeln('										</tr>                                                                                                                                            ');
document.writeln('									</table>                                                                                                                                             ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td colspan=5 bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                                   ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- results third row -->                                                                                                                                                             ');
document.writeln('			<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                     ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                    ');
document.writeln('					<td width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('					<td colspan=2 width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td class="site-color1">                                                                                                                                               ');
document.writeln('						<table width="110" border=0 cellpadding=0 cellspacing=0>                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 height="6"></td>                                                                                                                           ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 align="center" class="smalltext">                                                                                                          ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 height="6"></td>                                                                                                                           ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td bgcolor="#FFFFFF" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td class="site-color1" width="330">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0 height="30">                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="middle"><img src="images/arrow2.gif"></td>                                                                      ');
document.writeln('								<td width="280" align="left" class="smalltext">                                                                                                          ');
document.writeln('									<a class="search">'+council+' | '+postcode+'</a>                                                                                                        ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td colspan=5 bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                                   ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- results fourth row -->                                                                                                                                                            ');
document.writeln('			<table border=0 cellpadding=0 cellspacing=0 align="top">                                                                                                                     ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td rowspan=3 colspan=1 width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                    ');
document.writeln('					<td width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('					<td colspan=2 width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('					<td colspan=2 width="1" height="1" bgcolor="#FFFFFF"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                             ');
document.writeln('					<td width="1" height="1" bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>	                                                     ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td class="site-color1">                                                                                                                                               ');
document.writeln('						<table width="110" border=0 cellpadding=0 cellspacing=0>                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 height="6"></td>                                                                                                                           ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 align="center" class="smalltext">                                                                                                          ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td colspan=2 height="6"></td>                                                                                                                           ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td bgcolor="#FFFFFF" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td class="site-color1" width="130">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0 height="30">                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="middle"><img src="images/arrow2.gif"></td>                                                                      ');
document.writeln('								<td width="100" align="left" class="smalltext">                                                                                                          ');
document.writeln('									<a class="search">Bedrooms: '+bedrooms+'</a>                                                                                                                    ');
document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td bgcolor="#FFFFFF" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('					<td class="'+backgroundstyle+'" width="228">                                                                                                                                   ');
document.writeln('						<table border=0 cellpadding=0 cellspacing=0 height="30">                                                                                                         ');
document.writeln('							<tr>                                                                                                                                                         ');
document.writeln('								<td align="center" width="30" valign="middle"><img src="images/ico_price.gif"></td>                                                                      ');
document.writeln('								<td width="180" align="left" class="smalltext">                                                                                                          ');

if(status.indexOf("LET",0)!=-1){
	document.writeln('									<a class="search">Price:&nbsp;&nbsp;'+price+' per week</a>                                                                                                ');
}else{
	document.writeln('									<a class="search">Price:&nbsp;&nbsp;'+price+'</a>                                                                                                ');
}

document.writeln('								</td>                                                                                                                                                    ');
document.writeln('							</tr>                                                                                                                                                        ');
document.writeln('						</table>                                                                                                                                                         ');
document.writeln('					</td>                                                                                                                                                                ');
document.writeln('					<td bgcolor="#000000" align="right"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                               ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td colspan=8 bgcolor="#000000"><img src="images/blank.gif" width="1" height="1" border=0></td>                                                                   ');
document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table>                                                                                                                                                                     ');
document.writeln('<!-- buttons -->                                                                                                                                                                       ');
document.writeln('			<table border=0 cellspacing=0 cellpadding=4 align="right" width="430">                                                                                                       ');
document.writeln('				<tr>                                                                                                                                                                     ');
document.writeln('					<td width="100%" class="smalltext" align="right">                                                                                                                    ');
if(document.all){
	document.writeln('						<a href="' + SiteURL + 'clipboard/manage.php?id='+id+'&postalid='+postalid+'&'+session_name+'='+session_id+'" target="tempframe"><img name="imag'+id+'" src="images/buttons/'+clip+'.gif" height="14" border=0></a>&nbsp;');
}else{
	document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'clipboard/manage.php?id='+id+'&postalid='+postalid+'&'+session_name+'='+session_id+'\',\'tempClip\',100,100,'+(screen.height-200)+','+(screen.width-120)+');window.focus()"><img name="imag'+id+'" src="images/buttons/'+clip+'.gif" height="14" border=0></a>&nbsp;');
}

if (screen.width < 801){
	if (owner.substring(0,8) == 'operator'){
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	} else {
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,520,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	}
} else {
	if (owner.substring(0,8) == 'operator'){
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	} else {
		document.writeln('						<a href="javascript:WinOpenAt(\'' + SiteURL + 'search/operator_propertydetails.php?id='+id+'&'+session_name+'='+session_id+'&postalid=' + postalid + '\',\'pdetails\',620,660,0,' + (screen.width - 630) + ')"><img src="images/buttons/moreinfo.gif" width="54" height="14" border=0></a></td>');
	}

}

document.writeln('				</tr>                                                                                                                                                                    ');
document.writeln('			</table><br><br>                                                                                                                                                             ');
}

function clipboard(a){
	alert(WinH);
}




postareas1 = new Array(215);postareas1['E1']="Whitechapel,Stepney,Mile End";postareas1['E2']="Bethnal Green,Shoreditch";postareas1['E3']="Bow,Bromley-by-Bow";
postareas1['E4']="Chingford, Highams Park";postareas1['E5']="Clapton";postareas1['E6']="East Ham";postareas1['E7']="Forest Gate, Upton Park";
postareas1['E8']="Hackney, Dalston";postareas1['E9']="Hackney, Homerton";postareas1['E10']="Leyton";postareas1['E11']="Leytonstone";
postareas1['E12']="Manor Park";postareas1['E13']="Plaistow";postareas1['E14']="Poplar, Millwall, Isle of Dogs";postareas1['E15']="Stratford, West Ham";
postareas1['E16']="Canning Town, North Woolwich";postareas1['E17']="Walthamstow";postareas1['E18']="South Woodford";postareas1['WC1']="Bloomsbury, Gray's Inn";
postareas1['WC2']="Covent Garden, Holborn, Strand";postareas1['EC1']="Clerkenwell, Finsbury, Barbican";postareas1['EC2']="Moorgate, Liverpool Street";
postareas1['EC3']="Monument, Tower Hill, Aldgate";postareas1['EC4']="Fleet Street, St. Paul’s";postareas1['N1']="Islington, Barnsbury, Canonbury";
postareas1['N2']="East Finchley";postareas1['N3']="Finchley Central";postareas1['N4']="Finsbury Park, Manor House";postareas1['N5']="Highbury";
postareas1['N6']="Highgate";postareas1['N7']="Holloway";postareas1['N8']="Hornsey, Crouch End";postareas1['N9']="Lower Edmonton";
postareas1['N10']="Muswell Hill";postareas1['N11']="Friern Barnet, New Southgate";postareas1['N12']="North Finchley, Woodside Park";postareas1['N13']="Palmers Green";
postareas1['N14']="Southgate";postareas1['N15']="Seven Sisters";postareas1['N16']="Stoke Newington, Stamford Hill";postareas1['N17']="Tottenham";
postareas1['N18']="Upper Edmonton";postareas1['N19']="Archway, Tufnell Park";postareas1['N20']="Whetstone, Totteridge";postareas1['N21']="Winchmore Hill";
postareas1['N22']="Wood Green, Alexandra Palace";postareas1['NW1']="Regent’s Park, Camden Town";postareas1['NW2']="Cricklewood, Neasden";
postareas1['NW3']="Hampstead, Swiss Cottage";postareas1['NW4']="Hendon, Brent Cross";postareas1['NW5']="Kentish Town";postareas1['NW6']="West Hampstead, Kilburn, Queens Park";
postareas1['NW7']="Mill Hill";postareas1['NW8']="St John’s Wood";postareas1['NW9']="Kinsbury, Colindale";postareas1['NW10']="Willesden, Harlesden, Kensal Green";
postareas1['NW11']="Golders Green, Hampstead Gdn Suburb";postareas1['SE1']="Waterloo, Bermondsey, Southwark, Borough";postareas1['SE2']="Abbey Wood";
postareas1['SE3']="Blackheath, Westcombe Park";postareas1['SE4']="Brockley, Crofton Park, Honor Oak Park";postareas1['SE5']="Camberwell";
postareas1['SE6']="Catford, Hither Green, Bellingham";postareas1['SE7']="Charlton";postareas1['SE8']="Deptford";postareas1['SE9']="Eltham, Mottingham";
postareas1['SE10']="Greenwich";postareas1['SE11']="Lambeth";postareas1['SE12']="Lee, Grove Park";postareas1['SE13']="Lewisham, Hither Green";
postareas1['SE14']="New Cross, New Cross Gate";postareas1['SE15']="Peckham, Nunhead";postareas1['SE16']="Rotherhithe, South Bermonsey, Surrey Docks";
postareas1['SE17']="Walworth, Elephant & Castle";postareas1['SE18']="Woolwich, Plumstead";postareas1['SE19']="Upper Norwood, Crystal Palace";
postareas1['SE20']="Penge, Anerley";postareas1['SE21']="Dulwich";postareas1['SE22']="East Dulwich";postareas1['SE23']="Forest Hill";
postareas1['SE24']="Herne Hill";postareas1['SE25']="South Norwood";postareas1['SE26']="Sydenham";postareas1['SE27']="West Norwood, Tulse Hill";
postareas1['SE28']="Thamesmead";postareas1['SW1']="Westminster, Belgravia, Pimlico";postareas1['SW2']="Brixton, Streatham Hill";postareas1['SW3']="Chelsea, Brompton";
postareas1['SW4']="Clapham";postareas1['SW5']="Earl’s Court";postareas1['SW6']="Fulham, Parson’s Green";postareas1['SW7']="South Kensington";
postareas1['SW8']="South Lambeth, Nine Elms";postareas1['SW9']="Stockwell, Brixton";postareas1['SW10']="West Brompton, World’s End";postareas1['SW11']="Battersea, Clapham Junction";
postareas1['SW12']="Balham";postareas1['SW13']="Barnes, Castelnau";postareas1['SW14']="Mortlake, East Sheen";postareas1['SW15']="Putney, Roehampton";
postareas1['SW16']="Streatham, Norbury";postareas1['SW17']="Tooting";postareas1['SW18']="Wandsworth, Earlsfield";postareas1['SW19']="Wimbledon, Merton";
postareas1['SW20']="South Wimbledon, Raynes Park";postareas1['W1']="Mayfair, Marylebone, Soho";postareas1['W2']="Bayswater, Paddington";postareas1['W3']="Acton";
postareas1['W4']="Chiswick";postareas1['W5']="Ealing";postareas1['W6']="Hammersmith";postareas1['W7']="Hanwell";
postareas1['W8']="Kensington";postareas1['W9']="Maida Vale, Warwick Avenue";postareas1['W10']="Ladbroke Grove, North Kensington";postareas1['W11']="Notting Hill, Holland Park";
postareas1['W12']="Shepherd's Bush";postareas1['W13']="West Ealing";postareas1['W14']="West Kensington";postareas1['S']="All";
postareas1['N']="All";postareas1['W']="All";postareas1['E']="All";postareas1['SW']="All";postareas1['SE']="All";postareas1['NW']="All";postareas1['WC']="All";postareas1['EC']="All";

//new postcodes
postareas1['KT7']="All";postareas1['KT8']="All";postareas1['KT10']="All";postareas1['KT12']="All";postareas1['KT13']="All";
postareas1['EN1']="All";postareas1['EN2']="All";postareas1['EN3']="All";postareas1['EN4']="All";postareas1['EN5']="All";
postareas1['UB1']="All";postareas1['UB2']="All";
postareas1['BA1']="All";postareas1['BA3']="All";
postareas1['HA8']="All";
postareas1['CR0']="All";
postareas1['BR1']="All";
postareas1['SM1']="All";
postareas1['TW8']="All";
postareas1['CR4']="All";


function checkPostcode(){
	// convert all characters to lowercase to simplify testing
	var agt=navigator.userAgent.toLowerCase();

	// *** BROWSER VERSION ***
	// Note: On IE5, these return 4, so use is_ie5up to detect IE5.
	var is_major = parseInt(navigator.appVersion);
	var is_minor = parseFloat(navigator.appVersion);


	// Note: Opera and WebTV spoof Navigator.  We do strict client detection.
	// If you want to allow spoofing, take out the tests for opera and webtv.
	var is_moz  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	var is_ie   = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

	var s = document.searchform.postcode.value.toUpperCase();
	hh = s.split(',');
	err=0;

	if (is_ie){
		county = document.all.county;
 	}else{
		county = document.getElementById('county');
	}

	// Check postcode only if we are searching in Greater London
	if (county.options[county.selectedIndex].value == 'Greater London'){
    	if((document.searchform.postcode.value=='')&&(document.searchform.area.value=='')){
        	alert('Please enter a postcode or area to search');err=1;
		} else if((document.searchform.postcode.value)&&(document.searchform.area.value)){
            alert("You can't search with both postcode and area options selected. Please choose only one of them");err=1;
		} else {
			for (var i=0; i < hh.length; i++){
				if((!postareas1[hh[i]])&&(document.searchform.area.value=='')){
					alert(hh[i]+' is not a valid postcode');err=1;
				}
			}
    	}

	    if (postareas1[s]=="All"){
    	    document.searchform.largearea.value=s;
    	}
	}


	if(parseInt(document.searchform.lowestprice.options[document.searchform.lowestprice.selectedIndex].value) >= parseInt(document.searchform.highestprice.options[document.searchform.highestprice.selectedIndex].value)){
		alert('You must specify a valid price range');
		return false;
	}

	if(document.searchform.councilmap){
		if(document.searchform.postcode.value && document.searchform.councilmap.value){
			document.searchform.councilmap.value='';
			document.searchform.bedrooms.value='0';
			document.searchform.bathrooms.value='0';
			document.searchform.receptionrooms.value='0';
			document.searchform.garden.value='never mind';
		}

		if(document.searchform.estatetype.options[document.searchform.estatetype.selectedIndex].value != 'Never mind'){
			document.searchform.councilmap.value = '';
			document.searchform.bedrooms.value = '0';
			document.searchform.bathrooms.value = '0';
			document.searchform.receptionrooms.value = '0';
			document.searchform.garden.value = 'never mind';
		}

		if(document.searchform.area.options[document.searchform.area.selectedIndex].value != document.searchform.councilmap.value){
			document.searchform.councilmap.value = '';
			document.searchform.bedrooms.value = '0';
			document.searchform.bathrooms.value = '0';
			document.searchform.receptionrooms.value = '0';
			document.searchform.garden.value = 'never mind';
		}


		if(document.searchform.lowestprice.options[document.searchform.lowestprice.selectedIndex].value != '0' || document.searchform.highestprice.options[document.searchform.highestprice.selectedIndex].value != '1000000+'){
			document.searchform.councilmap.value = '';
			document.searchform.bedrooms.value = '0';
			document.searchform.bathrooms.value = '0';
			document.searchform.receptionrooms.value = '0';
			document.searchform.garden.value = 'never mind';
		}

		if(document.searchform.postcode.value&&document.searchform.mappostcode.value){
			document.searchform.mappostcode.value='';
			document.searchform.bedrooms.value='0';
			document.searchform.bathrooms.value='0';
			document.searchform.receptionrooms.value='0';
			document.searchform.garden.value='never mind';
		}

		if(document.searchform.area.value&&document.searchform.mappostcode.value){
			document.searchform.mappostcode.value='';
			document.searchform.bedrooms.value='0';
			document.searchform.bathrooms.value='0';
			document.searchform.receptionrooms.value='0';
			document.searchform.garden.value='never mind';
		}

		if(document.searchform.qprice.value&&(document.searchform.postcode.value||document.searchform.area.value!='Select a council')){
			document.searchform.qprice.value='';
			document.searchform.bedrooms.value='0';
			document.searchform.bathrooms.value='0';
			document.searchform.receptionrooms.value='0';
			document.searchform.garden.value='never mind';
		}

		if(document.searchform.morefromagent.value&&(document.searchform.postcode.value||document.searchform.area.value!='Select a council')){
			document.searchform.morefromagent.value='';
			document.searchform.bedrooms.value='0';
			document.searchform.bathrooms.value='0';
			document.searchform.receptionrooms.value='0';
			document.searchform.garden.value='never mind';
		}

		if(document.searchform.largearea.value&&(postareas1[s]!="All")){
			document.searchform.largearea.value='';
			document.searchform.bedrooms.value='0';
			document.searchform.bathrooms.value='0';
			document.searchform.receptionrooms.value='0';
			document.searchform.garden.value='never mind';
		}

	}

	if(err==0){
		return true;
	}else{
		return false;
	}
}

function checkAgentPostcode()
{
s=document.agentsearch.postcode.value.toUpperCase();
err=0;
if(s=='')
{
	alert('Please enter a postcode or area to search');err=1;
}
else
{
	if(!postareas1[s]){alert(s + ' is not a valid postcode');err=1;}
}

	if (postareas1[s] == "All"){
		// Wildcard searches. Ex. the user searches in all areas starting with N
		document.agentsearch.largearea.value = s;
	}

	if (err == 0) { return true;} else { return false;};
}

function goToOffset(newOffset){

	// Used to switch next | prev
	document.searchform.offset.value = newOffset;
	document.searchform.submit();

}
