function countLength() {var box = document.getElementById("soc_text");var divCount = document.getElementById("count");divCount.innerHTML = "Characters: " + box.value.length + "/3000";if (box.value.length > 3000) {box.value = box.value.substring(0, 3000);}} function toggleLayer(whichLayer, checkwhat) {if (document.getElementById){var style2 = document.getElementById(whichLayer).style;if (document.getElementById(checkwhat).checked) {style2.display = "inline";} else {style2.display = "none";}}}function createpass(boxname) {var password="";for (var i=1;i<=5;i++) {password += String.fromCharCode(97 + Math.round(Math.random() * 25));}var pwbox = document.getElementById(boxname);pwbox.value = password;} document.getElementById('sq_qs').innerHTML ='
';