if (parent.frames.length == 0)
{
	location.href = "index.php?ref=" + location; 
}
