function sel(oid,val,col){
	if (!col) {
		col='#000';
	}
	if(o=get_obj(oid)){
		o.style.color=col;
		if(o.value==val){
			o.value='';
		}
	}
}
function desel(oid,val,col){
	if (!col) {
		col='#999';
	}
	if(o=get_obj(oid)){
		if(!o.value || (o.value==val)){
			o.value=val;
			o.style.color=col;
		}
	}
}

function validate(name, row_name){
    var ptr = get_obj("fe_" + name);
    if (ptr){
        var row = get_obj(row_name);
        if (ptr.checked){
            row.style.display = "";
        } else {
            row.style.display = "none";
        }
    }
}
function manage(src, target){
    var src_ptr = get_obj("fe_" + src);
    var target_ptr = get_obj("fe_" + target);
    if (src_ptr){
        if (src_ptr.checked){
            target_ptr.value = "0.00";
            target_ptr.disabled = true;
        } else {
            target_ptr.disabled = false;
        }
    }
}

function form_submit(name, src){
    aasf(name, src);
}

function raise_window(name, src){
    var ptr = get_obj(name);
    window.scrollTo(0,0);
    ptr.style.display = "block";
    aarq(src);
    return false;
}
function close_window(name){
    var ptr = get_obj(name);
    ptr.style.display = "none";
    return false;
}
function dc(url, msg){
	if (confirm(msg)) {
		window.location = url;
	}
}
function sa(o){
    o.focus();
    o.select();
}
function form_check(id, val){
    var ptr = get_obj(id);
    if (ptr.value == val){
        return false;
    }
}

