/********************/

function doSubmit(id, arguments){
	document.getElementById('__CONTROLID__').value=id;
	//document.getElementById('__ACTION__').value=id;
	document.getElementById('__ARGS__').value=arguments;
	document.getElementsByTagName('form')[0].submit();	
	return false;
}

function doSubmitAction(action){
	var form = document.getElementsByTagName('form')[0];
	form.action=action;
	form.submit();
	return false;
}

function doSubmitConfirm(id, arguments, message){
	if ( confirm(message) ){
		doSubmit(id, arguments);
	}
	return false;
}

function hideDiv(divId){
	document.getElementById(divId).style.display = 'none';
}

function showDiv(divId){
	document.getElementById(divId).style.display = 'block';
}
