// JavaScript Document

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

startList1 = function() {
	if (document.all&&document.getElementById) {
		navRoot1 = document.getElementById("menu1");
		for (d=0; d<navRoot1.childNodes.length; d++) {
			node1 = navRoot1.childNodes[d];
			if (node1.nodeName=="LI") {
				node1.onmouseover=function() {
					this.className+=" over";
				}
				node1.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function onloadstart(){
	startList1();startList();
}
window.onload=onloadstart;
//window.onload=startList;


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
  
  
}


function searchNow(){
if ((document.getElementById("refID").value)!=""){
window.location="catalog.asp?property="+document.getElementById("refID").value+"";
}

if ((document.getElementById("priceFROM").value)!=""){
var priceFROM ="on";
var priceFROM_value = document.getElementById("priceFROM").value;
}

if ((document.getElementById("priceTO").value)!=""){
var priceTO ="on";
var priceTO_value = document.getElementById("priceTO").value;
}

if ((document.getElementById("area").value)!=""){
var area ="on";
var area_value = document.getElementById("area").value;
}

if ((document.getElementById("type").value)!=""){
var type ="on";
var type_value = document.getElementById("type").value;
}

if ((type=="on") || (area=="on") || (priceTO=="on") || (priceFROM=="on")){
//alert("ok");
window.location="catalog.asp?search=ok&priceFROMSearch="+document.getElementById("priceFROM").value+"&priceTOSearch="+document.getElementById("priceTO").value+"&areaSearch="+document.getElementById("area").value+"&typeSearch="+document.getElementById("type").value+"";
}


}



function checkEnter(e){ 
var characterCode

if(e && e.which){ 
e = e
characterCode = e.which
}
else{
e = event
characterCode = e.keyCode
}

if(characterCode == 13){ 
searchNow();
}
else{
}

}

function showFeedback(){
document.getElementById("feedback").style.display=""; return true;
}
