﻿// JScript 文件
//首页
var WebIndex="http://home.vancl.com/";
//服务中心
var ServiceCenter="http://supporting.vancl.com/Help_List.htm";
//购物车
var Shopping="http://shopping.vancl.com/";
//新用户注册
var LoginUrl="http://login.vancl.com/";
//我的帐户
var UserCenterPath="http://my.vancl.com/";

function getWebIndex()
{
    window.location=WebIndex;
}
function getServiceCenter()
{
    window.location=ServiceCenter;
}
function getShopingCar()
{
    getShopping("Shopping/Shopping.aspx");
}
function getShopping(other)
{
if(other!=undefined)
    window.location=Shopping+other;
}
function getRegUrl()
{
getLoginUrl("login/Reg.aspx");
}
function getLoginUrl(other)
{
if(other!=undefined)
 window.location=LoginUrl+other;
}
function getUserAccount()
{
     getUserCenterPath("user/");
}
function getUserCenterPath(other)
{
if(other!=undefined)
     window.location=UserCenterPath+other;
}
 function ksearch()
    {
          if(document.getElementById("q").value=="")
       {
       alert("请输入关键字");return;
       } 
       document.forms["form1"].submit();
    }
