// JavaScript Document

//使用Javascript实现静态域名重定向

var iHostA = "www.gyhemei.com";//COM域名
var iHostB = "www.gyhemei.cn";//CN域名
if(document.domain=="gyhemei.com")
{
	this.location = "http://"+iHostA+this.location.pathname+this.location.search;
}
if(document.domain=="gyhemei.cn")
{
	this.location = "http://"+iHostB+this.location.pathname+this.location.search;
}
