function moveftr(){
	var ftop;
	if(document.getElementById){
		get('bdy') > get('mnu') ? ftop = get('bdy') : ftop = get('mnu');
		ftop < get('sch') ? ftop = get('sch') : null;
		ftop += get('hdr') + 10;
		document.getElementById('ftr').style.top = ftop + 'px';
		document.getElementById('ftr').style.display = 'block';
	}
	document.body.clientWidth < 778 ? document.getElementById('sch').style.display = 'none' : document.getElementById('sch').style.display = 'block'
}

function get(ob){
	return document.getElementById(ob).offsetHeight;
}

function validateSearch() {    
	if(Form1.Search_pricefrom.value != '') {
		if(isNaN(Form1.Search_pricefrom.value)) {
			alert('Price range must be entered without currency symbols, commas or spaces - for example 75000 - not 75,000.');
			return (false);
		}
		num = new Number(Form1.Search_pricefrom.value);
		if(num.valueOf() < 0 ) {
			alert('Price Range From: Cannot be less than zero');
			return (false);
		}
	}
	if(Form1.Search_priceto.value != '') {
		if(isNaN(Form1.Search_priceto.value)){
			alert('Price range must be entered without currency symbols, commas or spaces - for example 75000 - not 75,000.');
			return false;
		}
		num = new Number(Form1.Search_priceto.value);
		if(num.valueOf() < 0 ) {
			alert('Price Range To: Cannot be less than zero');
			return (false);
		}
	}
	if(Form1.Search_pricefrom.value != '' && Form1.Search_priceto.value != '')        {
		numfrom = new Number(Form1.Search_pricefrom.value);
		numto = new Number(Form1.Search_priceto.value);
		if(numfrom.valueOf() > numto.valueOf()){
			alert('From price cannot be greater than to price');
			return (false);
		}
	}

	return true;
}
