

/**
* Sorts the output display of a module
*
* @param Object obj
* @param String module
*/
function sort( obj, module )
{
var	url = location.href,
reg = new RegExp( module + '/.*?/|' + module + '/.*$', 'gi' );
url = url.replace( reg, '' ) + '/';
url = url.replace( /\/+$/, '/' );
if ( obj.type == 'checkbox' )
if ( obj.checked )
location.href = url + module + '/' + obj.value;
else
location.href = url;
else if ( obj.value )
location.href = url + module + '/' + obj.options[obj.selectedIndex].value;
else
location.href = url;
}

