function closewindow(){var temppopup = window.open( "", "test", 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=1,height=1');window.open = temppopup.open;temppopup.close();var popup = window.open("", "Window refreshes every 30 seconds",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=1,height=1');popup.close();tick();	document.newMsg.msgTo.focus();}var supportsKeys = falsefunction tick() {		calcCharLeft(document.forms[0])		if (!supportsKeys) timerID = setTimeout("tick()",500)}function calcCharLeft(f) {				maxLength = 120         if (f.description.value.length > maxLength) {	        f.description.value = f.description.value.substring(0,maxLength)		    charleft = 0        } else {			charleft = maxLength - f.description.value.length		}        f.msgCL.value = charleft}function textKey(f) {	supportsKeys = true	calcCharLeft(f)}