function refill_new_form(lic_id){
	hide_date_inputs("1001_4,1001_6,1001_19");
	reset_radio_vals("1001_1;3;,1001_17;2,1001_20;3","disable");
	show_hide_sub_form(document.getElementById("r01_form_item_1001_17"),'rent','owner');
	show_hide_sub_form(document.getElementById("r01_form_item_1001_20"),'office,illegal','self');
	document.getElementById("noorshow_1001").src=root_path+"get_draw.php?action=show&id="+lic_id;
	reset_check_box_vals("1001_21","disable");
}



//  fix refilling forms with data that called from "display_fillin_form_with_data" after loading the form and set the values
function fix_refillin_new_form(){
	fix_date_vales("1001_4,1001_6,1001_19");
	hide_date_inputs("1001_4,1001_6,1001_19");
	reset_radio_vals("1001_1;3;,1001_17;2,1001_20;3","disable");
	show_hide_sub_form(document.getElementById("r01_form_item_1001_17"),'rent','owner');
	show_hide_sub_form(document.getElementById("r01_form_item_1001_20"),'office,illegal','self');
	reset_check_box_vals("1001_21","disable");

}

function fix_refillin_renew_form(){
	fix_date_vales("1002_4,1002_5,1002_9,1002_11,1002_24");
	hide_date_inputs("1002_4,1002_5,1002_9,1002_11,1002_24");
	reset_radio_vals("1002_6;3;,1002_22;2,1002_25;3","enable");
	show_hide_sub_form(document.getElementById("r01_form_item_1002_22"),'rent','owner');
	show_hide_sub_form(document.getElementById("r01_form_item_1002_25"),'office,illegal','self');
	reset_check_box_vals("1002_26","disable");
}



