if (typeof(Joomla) == 'undefined')
{
	Joomla = {};
}
Joomla.submitbutton = function(pressbutton)
{
	return submitbutton(pressbutton);
}
Joomla.submitform = function(pressbutton)
{
	return submitform(pressbutton);
}
if (typeof(Joomla) == 'undefined')
{
	Joomla = {};

	Joomla.submitbutton = function(pressbutton)
	{
		return submitbutton(pressbutton);
	}
	Joomla.submitform = function(pressbutton)
	{
		return submitform(pressbutton);
	}
}
Fix for script that can cause infinite loops under certain circumstances