function numDeclension(num) { return (num == 1) ? ("day") : ("" + num + " days"); } function setLocalContent(args) { if(args.length < 1) return; var reason = args[0]; var text; if(reason == "loading") text = " Loading..."; else if(reason == "wmuf") { text = "This URL is classified as suspicious"; changeDMeter("dm_100.gif"); } else if(reason == "aphish") { text = "This URL is classified as phishing"; changeDMeter("dm_100.gif"); } else if(reason == "online"){ if(args[1] == 255) text = "No information available"; else { text = "During the last " + numDeclension(args[12]) + " at this address there were detected:
"; if( args[5] > 0 ) text = text + ""; if( args[6] > 0 ) text = text + ""; if( args[7] > 0 ) text = text + ""; if( args[8] > 0 ) text = text + "" if( args[9] > 0 ) text = text + ""; text = text + "
URLs to suspicious hosts:" + args[5] + "
Malware download attempts:" + args[6] + "
Riskware download attempts:" + args[7] + "
Files containing malware:" + args[8] + "
Files containing riskware:" + args[9] + "
"; } if(args[1] >= 75 && args[1] < 85) changeDMeter("dm_75.gif"); else if(args[1] >= 85 && args[1] < 95) changeDMeter("dm_90.gif"); else if(args[1] >= 95 && args[1] <= 100) changeDMeter("dm_100.gif"); } return text; }