
/*获取来源参数*/
var url = window.parent.window.location.href;
if( url.indexOf('?') != -1 ) {
    var tmp = url.split('?');
	var sRef=tmp[1];

	if( sRef.indexOf('&') != -1 )
	{
        var sArry = sRef.split('&');
        document.cookie = "referer=" + escape(sArry[0]);
	}
	else
	{
  	    document.cookie = "referer=" + escape(sRef);
	}

}
