 
<!--


function validateForm(obj){
	if(document.form1.clientName.value==''){document.form1.clientName.focus();document.form1.clientName.select();document.form1.clientNameError.value='add your name';return false}else{document.form1.clientNameError.value=''}
	if(document.form1.telephone.value==''){document.form1.telephone.focus();document.form1.telephone.select();document.form1.telephoneError.value='add your phone number';return false}else{document.form1.telephoneError.value=''}	
}
function openMap(obj){ 
  window.open(obj,'Map','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=780,height=400');
}


function fn_goToPage(pageNo){
	document.searchForm.Page.value = pageNo;
	document.searchForm.submit();
}


function getElementById_s(id){
var obj = null;
if(document.getElementById){
/* Prefer the widely supported W3C DOM method, if
available:-
*/
obj = document.getElementById(id);
}else if(document.all){
/* Branch to use document.all on document.all only
browsers. Requires that IDs are unique to the page
and do not coincide with NAME attributes on other
elements:-
*/
obj = document.all[id];
}
/* If no appropriate element retrieval mechanism exists on
this browser this function always returns null:-
*/
return obj;
}
  function fn_changeSmallButton(imageID){
  
    var imageCat = ["bathroom","bedroom","diningRoom","exterior","garden","lounge","kitchen","parking"]
	
	
	for (i = 0 ;i<= 7;i++){
           for (j =1 ;j<=10 ;j++){
			  if (document.getElementById(imageCat[i]+j)){
		     	document.getElementById(imageCat[i]+j).src='../images/generic/smallButtonGray.gif'; 
                     }    
				//alert(imageCat[i]+j);
				}
			
		}
	
    
	document.getElementById(imageID).src='../images/generic/smallButtonGreen.gif';
	
 
  }  
function bedsSearch(imageID,no){
	
  var imageCat = ["bed","beds","bedlet","bedslet"]
	//alert(imageID);
	
	for (i = 0 ;i<= 3;i++){
           for (j =1 ;j<=4 ;j++){
			  if (getElementById_s(j+imageCat[i])){
		     	getElementById_s(j+imageCat[i]).src='../images/Frog88_bed_green.jpg'; 
                     }    
				//alert(imageCat[i]+j);
				}
			
		}
	
    
	getElementById_s(imageID).src='../images/Frog88_bed_pink.jpg';
	document.saleSearchForm.beds.value=no;
	document.letSearchForm.beds.value="";
	//document.saleSearchForm.submit();
	
	}
function lbedsSearch(imageID,no){
	
var imageCat = ["bed","beds","bedlet","bedslet"]
	
	
	for (i = 0 ;i<= 3;i++){
           for (j =1 ;j<=4 ;j++){
			  if (document.getElementById(j+imageCat[i])){
		     	document.getElementById(j+imageCat[i]).src='../images/Frog88_bed_green.jpg'; 
                     }    
				//alert(imageCat[i]+j);
				}
			
		}
	
    
	document.getElementById(imageID).src='../images/Frog88_bed_pink.jpg';
	document.letSearchForm.beds.value=no;
	document.saleSearchForm.beds.value="";
	//alert(document.letSearchForm.beds.value);
	//document.saleSearchForm.submit();
	
	}

//-->

