if (self != top) {
    if (document.images)
        top.location.replace(window.location.href);
    else
        top.location.href = window.location.href;
}

function autoJump(theForm,myName,myLen,nextField){
	if(theForm[myName].value.length >= myLen){
		theForm[nextField].focus();
	}
}

// how to call: [onFocus="textFocus(this);" onBlur="textBlur(this);"]
function textFocus (el,val) {
        if (val) {
                el.defaultValue = val;
                if (el.value == val) el.select();
        }
        else if ((el.value != "")||(el.value != " ")) {
                //el.defaultValue = el.value;
                el.select();
        }
}

function textBlur (el,val) {
        if (val) el.defaultValue = val;
        if ((el.value == "")||(el.value == " ")) {
                //el.value = el.defaultValue;
        }
}
