
focus_win = 0;

function submit_form(){
	document.form1.target="BODY"
	document.form1.action.value="view_data_frame2.php"
	document.form1.submit()
	document.form1.target="FOOTER"
	document.form1.action.value="view_data_frame3.php"
	document.form1.submit()
}

function validate_submit(FORM){
	if(confirm("Are you sure you want\n to save the changes?"))
	{
		this[FORM].cat[this[FORM].cat.selectedIndex].value=this[FORM].cat[this[FORM].cat.selectedIndex].text
		this[FORM].subcat[this[FORM].subcat.selectedIndex].value=this[FORM].subcat[this[FORM].subcat.selectedIndex].text
		parent.window.resizeBy(0,-150)
		this[FORM].submit()
	}
}

function refresh_opener()
{
	parent.window.opener.location.reload()
}
