Ho un campo testo con una funzione che immette lo slash in automatico del tipo che se scrivo 10121950 mi scrive 10/12/1950 ma se vado a cancellare con backspace mi cancella solo /1950 e mi lascia 10/12 code da esempio QUI'

Come faccio a far cancellare il campo normalmente?

codice:
<script>
//formato data che inserisce automaticamente gli slash 00/00/0000
	function autoSlash(){
           var cValue = document.data.datadocumento.value.length;
	   if(cValue == 2 || cValue == 5)
		document.data.datadocumento.value += "/";
	   }

</script>


 <form name=data method="post"    onsubmit="return invio;" action="add-process.asp">

      <input name="datadocumento"  type="text" id="datadocumento"  size="16" onKeyDown="autoSlash();" >

 </form>