function loadPage(page) {
	document.getElementById('cont').innerHTML = document.getElementById(page).innerHTML;
}

function hiliteRow(row) {
 eval('document.getElementById(\'row_'+row+'\').className = "row2";');
}
function normalRow(row) {
 eval('document.getElementById(\'row_'+row+'\').className = "row1";');
}

function showCarDetail(cid,uid) {
 var w = 630;
 var h = 470;
 if (screen.height > 500) h = 570;
 var t = (screen.height-h)/2;
 var l = (screen.width-w)/2;
 if (t < 0) t = 0;
 if (l < 0) l = 0;
 features = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+t+',left='+l;
 dlg = window.open ("http://www.cars.cz/xchanger/custom/auto_havlicek/cd2.jsp?cid="+cid+"&uid="+uid,"carDetailWindow", features);

 /*
 document.detailForm.cid.value = cid;
 document.detailForm.uid.value = uid;
 document.detailForm.action = "http://www.cars.cz/xchanger/custom/auto_havlicek/cd2.jsp";
 document.detailForm.target = "carDetailWindow";
 document.detailForm.submit();*/
}



var actionStatic  = "http://local.cars.cz/custom/auto_havlicek/cl_1.html";
function checkSubmit() {
 var result = false;
 if (actionStatic == "") {
  result = true;
 } else {
  var name;
  var val;
  for (var i = 0; i < document.Form.elements.length; i++) {
    name = document.Form.elements[i].name;
    val  = document.Form.elements[i].value;
    if ((name != "action") && (name != "layer") && (name != "uid") && (name.substr(0,2) != "A_")) {
     // Kontroluj pouze vyfiltrovane polozky
     if (val != "") {
      result = true;
      break;
     }
    }
  }

  if (!result) {
   window.location.href = actionStatic;
  }
 } // else if (actionStatic == "")
 return result;
}


function start() {
}
