function openUrl(url)
{
	try
	{
	    if(window.opener)
	    {
	        window.opener.location=url;
	        window.close();
	    }
	    else if(self.parent.frames.length != 0)
	    {
	        self.parent.location=url;
	        self.close();
	    }    
	    else
	    {
	        window.location=url;
	    }
	}
	catch (Exception) {}
}

