
	function ImgFlash(obj)
	{	
		/*document.getElementById("indexImg").src = "/images/index.gif";
		document.getElementById("maleImg").src = "/images/male.gif";
		document.getElementById("femaleImg").src = "/images/female.gif";
		document.getElementById("brandImg").src = "/images/brand.gif";
		document.getElementById("clearImg").src = "/images/clear.gif";
		switch (obj.toLowerCase())
		{
		case "index":
			document.getElementById("indexImg").src = "/images/index_1.gif";
			break;
		case "male":
			document.getElementById("maleImg").src = "/images/male_1.gif";
			break;
		case "female":
			document.getElementById("femaleImg").src = "/images/female_1.gif";
			break;
		case "brand":
			document.getElementById("brandImg").src = "/images/brand_1.gif";
			break;
		case "clear":
			document.getElementById("clearImg").src = "/images/clear_1.gif";
			break;
		}*/
	}
	
	function NImgFlash(obj)
	{	
		try{document.getElementById("indexImg").src = "/images/d_zh.gif";}catch(e){}
		/*document.getElementById("indexImg").src = "/images/d_zh_1.gif";
		document.getElementById("storeImg").src = "/images/dayi.gif";
		document.getElementById("horologeImg").src = "/images/peishi.gif";
		document.getElementById("giftImg").src = "/images/d_lp_1.gif";
		document.getElementById("brandImg").src = "/images/d_xy_1.gif";
		switch (obj.toLowerCase())
		{
		case "index":
			document.getElementById("indexImg").src = "/images/d_zh.gif";
			break;
		case "store":
			document.getElementById("storeImg").src = "/images/dayi1.gif";
			break;
		case "horologe":
			document.getElementById("horologeImg").src = "/images/peishi1.gif";
			break;
		case "gift":
			document.getElementById("giftImg").src = "/images/d_lp.gif";
			break;
		case "brand":
			document.getElementById("brandImg").src = "/images/d_xy.gif";
			break;
		}*/
	}
	function SubSearch()
	{
		var SearchKey = document.getElementById("SearchKey").value;

		if (SearchKey == "" || SearchKey == "请输入感兴趣的商品型号！")
		{
			alert("请输入搜索关键字！");
			document.getElementById("SearchKey").focus();
			return false;
		}
		else
		{
			return true;
			//window.open("/product/SearchResult.asp?sKey="+SearchKey+"");
			//document.getElementById("searchform1").action = "/product/SearchResult.asp?sKey="+SearchKey+"";
			//document.getElementById("searchform1").submit();
		}
	}
	function Dosubmit()
	{
		var SearchKey = document.getElementById("SearchKey").value;
		SearchKey = SearchKey.replace("'","");

		if (SearchKey == "" || SearchKey == "请输入感兴趣的商品或品牌名称！")
		{
			alert("请输入搜索关键字！");
			document.getElementById("SearchKey").focus();
			return false;
		}
		else
		{
			//window.open("/product/SearchResult.asp?sKey="+SearchKey+"");
			document.getElementById("searchform1").action = "/product/SearchResult.asp?sKey="+SearchKey+"";
			document.getElementById("searchform1").submit();
		}
	}
	var Open,opacity,heigth_b,heigth_c;

	function Show_Brand()
	{
		var widthds = document.documentElement.clientWidth ? document.documentElement.clientWidth:document.documentElement.offsetWidth  - 20;

		document.getElementById("BrandList").style.left = 580 + "px";
		document.getElementById("BrandList").style.left = (parseInt(document.getElementById("BrandList").style.left) + (parseInt(widthds) - 1004)/2 - parseInt(document.getElementById("BrandList").style.width)/2) + "px";

		opacity = 0;
		heigth_b = document.getElementById("sbCount_1").value;
		heigth_c = heigth_b/10;
		document.getElementById("BrandList").style.display = 'block';
		clearInterval(Open);
		Open = setInterval(Marquee,1);
	}
	function ToHidden()
	{
		opacity = 100;
		clearInterval(Open);
		Open = setInterval(Marquee2,1);
	}
	function ToShow()
	{
		clearInterval(Open);
		Open = setInterval(Marquee,1);
		document.getElementById("BrandList").style.display = 'block';
	}
	function Marquee()
	{
		if (parseInt(document.getElementById("BrandList").style.width) < 380)
		{
			opacity = opacity + 10;
			document.getElementById("BrandList").style.width = (parseInt(document.getElementById("BrandList").style.width) + 35) + "px";
			document.getElementById("BrandList").style.left = (parseInt(document.getElementById("BrandList").style.left) -16) + "px";
			document.getElementById("BrandList").style.height = (parseInt(document.getElementById("BrandList").style.height) + heigth_c -2) + "px";
			document.getElementById("BrandList").style.filter = "alpha(opacity="+opacity+")";
		}
		else
		{
			document.getElementById("BrandList").style.filter = "alpha(opacity=100)";
			clearInterval(Open);
		}
	}
	function Marquee2()
	{
		if (parseInt(document.getElementById("BrandList").style.width) > 0)
		{
			opacity = opacity - 10;
			document.getElementById("BrandList").style.width = (parseInt(document.getElementById("BrandList").style.width) - 35) + "px";
			document.getElementById("BrandList").style.left = (parseInt(document.getElementById("BrandList").style.left) + 16) + "px";
			document.getElementById("BrandList").style.height = (parseInt(document.getElementById("BrandList").style.height) - heigth_c +2) + "px";
			document.getElementById("BrandList").style.filter = "alpha(opacity="+opacity+")";
		}
		else
		{
			document.getElementById("BrandList").style.display = 'none';
			clearInterval(Open);
		}
	}

	//open online help
	var icsWnd = null;
	function OnlineHelp(tag)
	{
		var nWinLeft = (screen.width-600)/2;
		var nWinTop = (screen.height-400)/2;
		if ( icsWnd != null )
		{
			icsWnd.close();
		}
		if (tag == 1)
		{
			Url = "/server/refer.asp?Tag=1";
		}
		else if (tag == 2)
		{
			Url = "/server/refer.asp?Tag=3";
		}
		else if (tag == 3)
		{
			Url = "/article/subMessage.asp?Tag=1"
		}
		else if (tag == 4)
		{
			Url = "/article/subMessage.asp?Tag=2"
		}
		icsWnd = window.open(Url, '嘀嗒网在线服务', 'width=620,height=480,status=yes,resizable=yes,scrollbars=yes,left='+nWinLeft+',top='+nWinTop);
	}


function CheckLogin()
{
	if (document.getElementById('UserName-Email').value == "")
	{
		alert("请输入用户名或Email");
		document.getElementById('UserName-Email').focus();
		return false;
	}
	if (document.getElementById('UserPassword').value == "")
	{
		alert("请输入用户密码");
		document.getElementById('UserPassword').focus();
		return false;
	}
	document.getElementById("login-form").submit();
}
function addFavorite()
{
	var sURL = location.href;
	var sTitle = document.title;
	try
	{
		window.external.addFavorite(sURL, sTitle);
	}
	catch (e)
	{
		try
		{
			window.sidebar.addPanel(sTitle, sURL, "");
		}
		catch (e)
		{
			alert("加入收藏失败，请使用Ctrl+D进行添加");
		}
	}
}

function setHomePage()
{
	document.body.style.behavior='url(#default#homepage)';
	document.body.setHomePage('http://www.godida.com/');
}
document.write("<scr"+"ipt src='/inc/write_flase.js'></scr"+"ipt>");

document.write('<link href="/inc/buycart.css" rel="stylesheet" type="text/css">');
