﻿
//document.write("<script type=\"text/javascript\" src=\"comm.js\"></script>");   

function myAddPanel(title,url,desc)
{	
	if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))//Gecko
	{
		window.sidebar.addPanel(title,url,desc);
	}
	else//IE
	{
		window.external.AddFavorite(url,title);
	}
}


function buygoods(goodsid)
{
  SetCookie("gid", goodsid.toString(), null, "/");
  location.href = "http://www.keepc.com/paycenter/buymode.htm";

  //var url='/mykc/servlet/mykc/action/ShoppingCarAction?eventSubmit_doAddgoods=do';
  //url = url + "&gids=" + goodsid;
  //location.href == url;
  return;
}


function addgoods(goodsid)
{
  SetCookie("gid", goodsid.toString(), null, "/");
  var popup = window.open("http://www.keepc.com/paycenter/buymode.htm","KC","");

  //var url='/mykc/servlet/mykc/action/ShoppingCarAction?eventSubmit_doAddgoods=do';
  //url = url + "&gids=" + goodsid;
  //var popup = window.open(url,"KC","");
  return;
}


function dianxin_down_kc()
{
  location.href = "http://210.83.225.45/download/KCsetup.exe";
}

function down_kc_addr()
{
	return "http://210.83.225.45/download/KC2008Beta1sp1Setup.exe";
}

function wangtong_down_kc()
{
  location.href = "http://210.83.225.45/download/KC2008Beta1sp1Setup.exe";
}

function goto_reg()
{
location.href = "http://reg.keepc.com";
//location.href = "/reg/servlet/reg/template/reg,RegUser1.htm";
//location.href = "/mykc/servlet/mykc/template/reg,RegUser.htm";
}

function goto_reg_mobile()
{
location.href = "http://reg.keepc.com";
//location.href = "/reg/servlet/reg/template/reg,MobileReg1.htm";
}

function reg_addr()
{
  //return "http://59.36.98.114/reg/servlet/reg/template/reg,RegUser1.htm";
  return "/mykc/servlet/mykc/template/reg,RegUser.htm";
}
function addgoodshard(goodsid)
{
  SetCookie("gid", goodsid.toString(), null, "/");
  location.href = "http://www.keepc.com/mall/hard/buying.htm";
  //var popup = window.open("http://www.keepc.com/paycenter/buymode_buy.htm","KC","");
  return;
}

function addgoodsmonth(goodsid)
{
  SetCookie("gid", goodsid.toString(), null, "/");
  location.href = "http://www.keepc.com/paycenter/buymonth.htm";
  //var popup = window.open("http://www.keepc.com/paycenter/buymode_buy.htm","KC","");
  return;
}
