﻿// JScript 文件


    function createXMlHttpRequest()
    {        
		var httpOb;
		try
		{
		    httpOb = new XMLHttpRequest();
		}
		catch(e)
		{
		    try
		    {
		        httpOb = new ActiveXObject("Msxml2.XMLHTTP");
		    }
		    catch(e)
		    {
		        httpOb = new ActiveXObject("Microsoft.XMLHTTP");
		    }
		}
		return httpOb;
    }
    function createXMlDoc()
    {        
		var xmlDoc;
		try
		{
		    xmlDoc = new ActiveXObject('Microsoft.XMLDOM');
		}
		catch(e)
		{
		    try
		    {
		        xmlDoc = document.implementation.createDocument('', '', null);
		    }
		    catch(e)
		    {
		        xmlDoc = null;
		    }
		}
		return xmlDoc;
    }


            function continueShop()
            {
                var previousPage=document.referrer;
                if(previousPage.indexOf(document.domain)>-1)
                {
                    location.href=previousPage;
                }
                else
                {
                    location.href="http://"+document.domain;
                }
            }
