﻿// JScript File

    function validateCheck(id)
    {
        var checkBox = document.getElementById(id);
        if(checkBox.checked)
        {
            if(id == "cbWCS")
                location.href = "http://www.thinsoftinc.com/WinConnectServerRegistration/index_affiliate.aspx";
            else if(id == "cbWCVS")
                location.href = "http://216.7.10.149/WinConnectServerRegistration/index.php";
            else if(id == "cbBeTwinVS" || id == "cbBeTwin")
                 location.href = "http://www.thinsoftinc.com/BeTwin2000Registration/index_affiliate.aspx";
        }
        else
        {
            var productName;
            if(id == "cbWCS")
                productName = "WinConnect Server XP";
            else if(id == "cbWCVS")
                productName = "WinConnect Server VS";
            else if(id == "cbBeTwinVS")
                productName = "BeTwin VS";
            else if(id == "cbBeTwin")
                productName = "BeTwin 2000/XP";
                
            document.getElementById("errorMsg").innerHTML = "Please verify that " + productName + " is working correctly in demo mode on the computer you intend to deploy and meets your requirements by marking the checkbox.";
        }
            
    }
