var companyFilteredarticlelisting={".initial-state":function(a){if($(a).val()==""){$(a).val($(a).attr("rel"))}a.onclick=a.onfocus=function(){if($(a).val()==$(a).attr("rel")){$(a).val("")}};a.onblur=function(){if($(a).val()==""){$(a).val($(a).attr("rel"))}}},"#open-advanced-search":function(a){a.onclick=function(){$("#content-filter-date-picker, #content-filter-macro-regions").show();$(this).parent().remove();return false}}};function checkDates(a,d){startDateField=a.split("-");startcheckYear=startDateField[0];startcheckDay=startDateField[2];startcheckMonth=startDateField[1];endDateField=d.split("-");endcheckYear=endDateField[0];endcheckDay=endDateField[2];endcheckMonth=endDateField[1];var c=startcheckYear+""+startcheckMonth+""+startcheckDay;var b=endcheckYear+""+endcheckMonth+""+endcheckDay;if(b>=c){return true}else{return false}}$(document).ready(function(){if($("#content-filter-query-box").val==""){}if($("#content-filter-macro-regions").find("select").val()!=""||$("#startDate").val()!=""||$("#endDate").val()!=""){$("#content-filter-date-picker, #content-filter-macro-regions").show();$("#open-advanced-search").parent().remove()}});Behaviour.register(companyFilteredarticlelisting);
