//		this disables the btn whose id is passed in var 'btn'
//		preventing multiple clicks on a submit button
//		JM / 2009/09/24 / V.1
function blocker(
	btn
) {
	var e = document.getElementById( btn );
	e.setAttribute( 'disabled','disabled' );
}


//		this changes the type for pwd input fields - id 'pwd1' & 'pwd2'
//		allowing the pwd to be seen in the field...
//		JM / 2009/09/24 / V.1
//		based on http://www.codingforums.com/archive/index.php/t-107073.html
function reveal(
) {
	//		get our objects
	var p1 = document.getElementById( 'pwd1' );
	var p2 = document.getElementById( 'pwd2' );
	//		save the values
	var p1v = p1.value;
	var p2v = p2.value;
	//		create our new fields
	var p1new = document.createElement( 'input' );
	var p2new = document.createElement( 'input' );
	//		toggle type
	if( 'password' == p1.type ) {
		p1new.setAttribute( 'type','text' );
		p2new.setAttribute( 'type','text' );
	} else {
		p1new.setAttribute( 'type','password' );
		p2new.setAttribute( 'type','password' );
	}
	//		put attributes back...
	p1new.setAttribute( 'id','pwd1' );
	p1new.setAttribute( 'className','fld' );
	p1new.setAttribute( 'class','fld' );
	p1new.setAttribute( 'maxlength','12' );
	p1new.setAttribute( 'name',p1.getAttribute('name'));
	p1new.value = p1v;
	p1.parentNode.replaceChild( p1new,p1);
	p2new.setAttribute( 'id','pwd2' );
	p2new.setAttribute( 'className','fld' );
	p2new.setAttribute( 'class','fld' );
	p2new.setAttribute( 'maxlength','12' );
	p2new.setAttribute( 'name',p2.getAttribute('name'));
	p2new.value = p2v;
	p2.parentNode.replaceChild( p2new,p2);

}