function clear_form(form_name)
{
	var frm = document.forms[form_name].elements;
	var cnt = frm.length;
	for(a=0; a<cnt; a++)
	{
		if(frm[a].type == "checkbox") frm[a].checked= false;
		if(frm[a].type == "select-one") frm[a].selectedIndex= 0; 
		if(frm[a].type == "select-multiple")
		{ 
			opt_cnt = frm[a].options.length;
			for(b=0; b<opt_cnt; b++) frm[a].options[b].selected = false;
		}
		if(frm[a].type == "radio") frm[a].defaultChecked= true;
		if(frm[a].type == "text") frm[a].value = "";
	}
}