// ----------------------------------------------------------------------------- // Code Added for Htaccess- CHG-00000034063 on Feb 02/2011 // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // Code END for Htaccess- CHG-00000034063 on Feb 02/2011 // ----------------------------------------------------------------------------- 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() ; } } // Check der angegebenen Kilometer/Meilen auf identnew.php function CheckMileage_types(UCmileage, minmileage, maxmileage) { var send_ok = true; if (document.getElementById('UCmileage').value != ''){ var mileage = document.getElementById('UCmileage').value;} else{ var mileage = UCmileage;} if (isNaN(mileage) || mileage.length == 0 || mileage.length > 6 || parseInt(mileage) < parseInt(document.UCVal.mileage_min.value) || parseInt(mileage) > parseInt(document.UCVal.mileage_max.value)) { send_ok = false; } if(send_ok == false) { alert(document.UCVal.mileage_text.value); //mileage.select(); if(document.UCVal.hdnglo_market.value == "UK" && document.UCVal.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 false; }else{ document.UCVal.submit() ; } } //console.log function log(text) { if ($.browser.mozilla) { console.log(text); } }