            function Is ()
            {
                var agt=navigator.userAgent.toLowerCase()

                this.created = true;

                this.major = parseInt(navigator.appVersion)
                this.minor = parseFloat(navigator.appVersion)

                this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)))
                this.nav2 = (this.nav && (this.major == 2))
                this.nav3 = (this.nav && (this.major == 3))
                this.nav4 = (this.nav && (this.major == 4))

                //Netscape 6
                this.nav5 = (this.nav && (this.major == 5))
                this.nav6 = (this.nav && (this.major == 5))
                this.gecko = (this.nav && (this.major >= 5))

                this.ie   = (agt.indexOf("msie") != -1)
                this.ie3  = (this.ie && (this.major == 3))
                this.ie4  = (this.ie && (this.major == 4))
                this.ie5  = (this.ie && (this.major == 5))


                this.opera = (agt.indexOf("opera") != -1)

                this.nav4up = this.nav && (this.major >= 4)
                this.ie4up  = this.ie  && (this.major >= 4)
            }

            var is = new Is();
            loaded=1;

function showpic(lay)
{
if(loaded==0)return false;
	if(is.ie4up) document.all(lay).style.visibility='visible'
	else if(is.gecko) document.getElementById(lay).style.visibility='visible'		
	
}

function hidepic(lay)
{
if(loaded==0)return false;
	if(is.ie4up)document.all(lay).style.visibility='hidden'
	else if(is.gecko) document.getElementById(lay).style.visibility='hidden'
	
}
function checkall( current_form ) {
	var status = current_form.all_check.checked;
	for(var count = 0; count < current_form.length; count++  ) {
		if( current_form.elements[ count ].type == "checkbox" ){
			current_form.elements[ count ].checked = status;		
		}
	}
}

function checkallanddisble( current_form ) {
	var status = current_form.all_check.checked;
	for(var count = 0; count < current_form.length; count++  ) {
		if( current_form.elements[ count ].type == "checkbox" && current_form.elements[ count ].name != "all_check" ){
			current_form.elements[ count ].checked = status;		
			current_form.elements[ count ].disabled = status;
			current_form.num.value = status;		
		}
	}
}
function offers( current_form ){
	var link = '/flats_for_rent.html=' + current_form.hid.value;
	for(var count = 0; count < current_form.length; count++  ) {
		if( current_form.elements[ count ].type == "checkbox" && current_form.elements[ count ].checked == true ){
			link = link + '&hyperid=' + current_form.elements[ count ].value;	
		}
	}
	document.location = link;
}
function sinchro( current_form ) {
	for(var count = 0; count < current_form.length; count++  ) {
		document.topform.elements[ count ].checked = current_form.elements[ count ].checked;
		document.bottomform.elements[ count ].checked = current_form.elements[ count ].checked;
	}
}


