function encPass(theform) {
	if(theform.response && theform.pass && checkField(theform.pass)) {
		theform.cnonce.value	=	Math.floor(Math.random()*0xffffffff).toString(16);
		a1	=	hex_md5(theform.username.value + ':' +
						theform.realm.value + ':' +
						theform.pass.value);
		theform.response.value	=	hex_md5(a1 + ':' +
											theform.nonce.value + ':' +
											theform.cnonce.value);
		}
	else {
		theform.response.name = '';
		}
	theform.realm.name	=	'';
	theform.pass.name	=	'';
	}	

