1: 2: 3: 4: 5:
function showPrice(x) { if(document.getElementById("departure").value.length!=0) { alert("ajaxcall start")! } }