function checkkeyword(){ if($("#cat_Search").value==''){ alert("Please fill in your search keywords."); return false; } } function CheckVendor(){ if($("#cert_id").val()==undefined){ alert("Can't Empty"); return false; }else{ a= $("#cert_id").val(); location.href='/cert/'+a+'-certifications/'; } }