
function doRedirect(menu)
{
    window.location.replace( "index.php?p=admin&menu=" + menu );
}

function CreateNew(name)
{	
	window.open(name, name, "left=10, top=10, width=768, height=600, scrollbars=1, resizable=1");
}

function confirmSubmit(msg)
{
	var agree=confirm(msg);
	if (agree)
		return true ;
	else
		return false ;
}