$(document).ready(function(){

$(".checker_field").change(function () {
$("select.field_change").val("0");
$("input.field_to_sel").val("0");
});


$("select.field_change").each(function() {
$(this).change(function() {
what_sel = $(this).val();
what_id = $(this).attr("id");
$("input.field_to_sel").val(what_sel);
$("input.uid_to_show").val("#powermaildiv_"+what_id);
}
);
}
);

show_uid = $("input.uid_to_show").val();
$(show_uid).removeAttr("style");

$("#testdrive").submit(function() {
sel_val = $("input.field_to_sel").val();
$("select.field_change").val(sel_wal);
});

/*
$("select.field_change").change(function(){
var what_sel = "";
$(".field_change option:selected").each(function(){
what_sel = $(this).val();
}
);
$("div.bot_menu").text(what_sel);
});
*/

});