var objCookie = new mrtcCookie ();
var found = SearchString (/\//gi, document.URL);
var strCookieName = "HasParentOpened";

if (found.length == 3)
{
	objCookie.Save (strCookieName, true, null);
}
else if (objCookie.Read (strCookieName) == null && found.length > 3)
{
	window.open ("/", "Parent");
	objCookie.Save (strCookieName, true, null);
	window.onload = self.focus ();
}

function SearchString (re, str)
{
	return str.match(re);
}

