function clearField(field) { document.getElementById(field).value=''; } function fillField(field, text) { if (document.getElementById(field).value == ''){ document.getElementById(field).value=text;} } // Read Parameters from Querystring function get_query(name) { var value=null; var query=window.location.search; if(query != "") { var kk=query.indexOf(name+"="); if(kk >= 0) { kk=kk+name.length+1; var ll=query.indexOf("&", kk); if(ll < 0)ll=query.length; value=query.substring(kk, ll); for(kk=0; kk 6 || parseInt(mileage) < parseInt(document.op_list.mileage_min.value) || parseInt(mileage) > parseInt(document.op_list.mileage_max.value)) { send_ok = false; } if(send_ok == false) { alert(document.op_list.mileage_text.value); //mileage.select(); if(document.op_list.hdnglo_market.value == "UK" && document.op_list.UCvtype.value == 30){ } else{ document.getElementById('UCmileage').focus(); //document.getElementById('UCmileage').style.backgroundColor = "#FF979E"; //document.getElementById('UCmileage').change( function() { document.getElementById('UCmileage').style.backgroundColor = "#FFFFFF";} ); } return ; }else{ document.op_list.submit() ; } } //console.log function log(text) { if ($.browser.mozilla) { console.log(text); } }