		function clearText(thefield,fieldType){
		if (thefield.defaultValue==thefield.value) {	
				thefield.value = "";
				thefield.type = fieldType;
			}
		} 
		
		function checkText(thefield,fieldType) {
			if(thefield.value == '')  {
				thefield.value = thefield.defaultValue;
				thefield.type = fieldType;
			}
		}
		
		 function changeBox()
		 {
		    document.getElementById('passwdPlainTextDiv').style.display='none';
		    document.getElementById('passwdDiv').style.display='';
		    document.getElementById('passwd').focus();
		 }
		 function restoreBox()
		 {
		    if(document.getElementById('passwd').value=='')
		    {
		      document.getElementById('passwdPlainTextDiv').style.display='';
		      document.getElementById('passwdDiv').style.display='none';
		    }
		 }