﻿//<![CDATA[

function FRAME_CHECK() {
	var strTopURL = top.location.pathname;
	var strTopPageName = GetPageName(strTopURL).toLowerCase();

	if (!(strTopPageName == "" || strTopPageName == "default.asp")) {
		if (QueryString("pcd") == "")
			top.location = "./?" + GetQueryString() + "&pcd=" + strTopPageName.substring(0, strTopPageName.indexOf("."));
		else
			top.location = "./?" + GetQueryString();
	}
}

//]]>
