// break from frames...
function framebreaker()
{
	if (top.location != location)
	{
		top.location.href = document.location.href ;
	}
}

// logout
function Logout()
{
    msg = confirm('Are you sure you want to logout?');
    if(msg)
    {
        document.location.href='/logout.html';
    }
}
function deleteMessage( id )
{
    if( confirm('Are you sure you want to delete this message?'))
    {
        document.location.href='index.php?pg=2&delete=' + id ;
    }
}
