$(document).ready(function() {
    //    setFocus(); 
    });

function setFocus() {
    jQuery('#pass').focus(function() {
        jQuery('#pass').replaceWith('<input class="text f_pass" type="password" name="password" value="" id="pass" />');
        jQuery('#pass').focus();
        jQuery('#pass').blur(function(){
            if($(this).val() == '') { 
                jQuery('#pass').replaceWith('<input class="text f_pass" type="text" name="password" value="password" id="pass" />');
                setFocus(); 
            }
        });
    });
}


function clearText(thefield, thetype) {
	thefield.value = "";
/*	
	if(!thetype) {
		thefield.type = "text";
	} else {
		thefield.type = thetype;
	}
*/	
}

function insertText(thefield, label) {
	if (thefield.value == "") {		
		thefield.value = label;
		
//		thefield.type = "text";
	}
}