<!--
/**
 * frameFunction.js
 * @fileoverview Frame调用parent函数接口：生成一个Iframe，调用同一一级域名但不同或者相同二级域名的一个页面；在Iframe页面中设置一个Cookie；Parent页面设置Timer获取Iframe页面中的Cookie值；从而实现跨二级域名的参数调用。例如：test.5107.cn访问cs.5107.cn中的一个函数函数获取参数。
 * @author Lynk Li
 * @deprecated
 */
/**
 * @class VersionFlag Frame调用parent函数接口
 * @constructor
 * @author Lynk Li
 */
function FrameCallParentFunctionInterface() {
	this.clearChildFnCookie = FCPFI_clearChildFnCookie;
	this.getChildFunction = FCPFI_getChildFunction;
	this.timer = null;
}

/**
 * 清除Cookie HJWEBCL_CHILDFN
 */
function FCPFI_clearChildFnCookie() {
	var expdate = new Date();
    document.cookie = "HJWEBCL_CHILDFN=;expires=" + expdate.toGMTString() + ";path=/;domain=5107.cn";	
}

/**
 * 获取 cookie HJWEBCL_CHILDFN的值
 */
function FCPFI_getChildFunction() {
	var childFn = Cookie_get("HJWEBCL_CHILDFN");
	if (childFn != null && childFn != "") {
		//Cookie_set("HJWEBCL_CHILDFN", "", 1);
		this.clearChildFnCookie();
		eval(childFn);
	}
}

var _fcpfi = new FrameCallParentFunctionInterface();
//设置Timer
_fcpfi.timer = setInterval("_fcpfi.getChildFunction();", 200);
//-->