	

	function writeToNewLine(comstring) {
	        document.editor.codeWindow.value += '\n\t'+ comstring +''
	}

	function writeToSameLine(comstring) {
	        document.editor.codeWindow.value += comstring
	}

	function selectAll(){
		document.editor.codeWindow.select();
		document.editor.codeWindow.focus();
	}

	function backspace() {
	   curvalue = document.editor.codeWindow.value
	   curlength = curvalue.length
	   curvalue = curvalue.substring(0,curlength-1)
	   document.editor.codeWindow.value = curvalue
	}

	function clearLine() {
	   curvalue = document.editor.codeWindow.value
	   curvalue = curvalue.substring(0,(curvalue.lastIndexOf('\n')-1))
	   document.editor.codeWindow.value = curvalue
	}

function caseUp() {
	   document.editor.codeWindow.value = document.editor.codeWindow.value.toUpperCase()
	}
function caseDown() {
	   document.editor.codeWindow.value = document.editor.codeWindow.value.toLowerCase()
	}


