﻿// JScript 文件
//刷新验证码
function Refresh()
{
    var verifyCode = document.getElementById("ImageCode");
    verifyCode.src = "VerifyColorCode.aspx?n="+Math.random();
}

function GetCode()
{
    var verifyCode = document.getElementById("ImageCode");
    verifyCode.style.display="";
    verifyCode.src = "VerifyColorCode.aspx?n="+Math.random();
}

function HideCode()
{
    var verifyCode = document.getElementById("ImageCode");
    verifyCode.style.display="none";
     verifyCode.src = "";
}

function GetRblSeletedValue(quoteType)
{
   // var rbltable = document.getElementById("ctl00_ContentPlaceHolder1_RadioButtonListQuoteType");
    var rbltable = document.getElementById(quoteType);
    var rbs= rbltable.getElementsByTagName("input");
      
      var value = "";
      for(var i = 0;i<rbs.length;i++)
      { 
        if(rbs[i].checked)
        { 
          value = rbs[i].value;          
        }
      }
      
      var divCompany = document.getElementById("divComType");
      if(value == "1")
      {        
        divCompany.style.display = "";
        document.getElementById("divTips").style.display = "";
      }
      else
      {
        divCompany.style.display = "none";
        document.getElementById("divTips").style.display = "none";
      }
}

function ShowTips(Info)
{
    alert(Info);
}

function ShowInsertGroup(Info,url1,url2)
{
    if(confirm(Info))
    {
        window.location.href = url1;
    }
    else
    {
        window.location.href = url2;
    }
}

function ShowSendMessage(Info,url1)
{
    if(confirm(Info))
    {
        window.location.href = url1;
    }
}

function ShowAlert(Info,url)
{
    alert(Info);
    window.location.href = url;
}


