String.prototype.trim= function()
{
	// 用正则表达式将前后空格  
	// 用空字符串替代。  
	var str = this.replace(/(^\s*)|(\s*$)/g, "");
	str = str.replace(/(^[　]*)|([　]*$)/g, "");
	return str;
}

function isInIframe()
{
	if(top != window)
	{   
		document.location.href = "http://"; 
		return true;
	}   
	return false;
}

isInIframe();
