﻿function overlink(aid)
{
    document.getElementById(aid).style.textDecoration='underline';
    //document.getElementById(aid).style.fontWeight="bold";
}

function outlink(aid)
{
    document.getElementById(aid).style.textDecoration='none';
    //document.getElementById(aid).style.fontWeight="";
}

function overlink1(aid)
{
    document.getElementById(aid).style.textDecoration='underline';
    document.getElementById(aid).style.fontWeight="bold";
}

function outlink1(aid)
{
    document.getElementById(aid).style.textDecoration='none';
    document.getElementById(aid).style.fontWeight="";
}

function overlink2(aid)
{
    document.getElementById(aid).style.color='#FFD508';
}

function outlink2(aid)
{
    document.getElementById(aid).style.color='#FFE9D8';
}

function overtextbox(txtid)
{
    document.getElementById(txtid).style.borderColor='#FF5500';
}

function outtextbox(txtid)
{
    document.getElementById(txtid).style.borderColor='#C7C1C1';
}

function checkForms(htmlname)
{
    var iu, iuu, regArray = new Array("","`","\\","◎","■","●","№","↑","→","↓"+
    "^","_","-","+","=","|","[","]","？","~","`"+
    "!","<",">","‰","→","←","↑","↓","¤","§","＃","＆","＆","＼","≡","≠"+
    "≈","∈","∪","∏","∑","∧","∨","⊥","‖","‖","∠","⊙","≌","≌","√","∝","∞","∮"+
    "∫","≯","≮","＞","≥","≤","≠","±","＋","÷","×","/","Ⅱ","Ⅰ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅹ","Ⅻ"+
    "╄","╅","╇","┻","┻","┇","┭","┷","┦","┣","┝","┤","┷","┷","┹","╉","╇","【","】"+
    "①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","┌","├","┬","┼","┍","┕","┗","┏","┅","—"+
    "〖","〗","←","〓","☆","§","□","‰","◇","＾","＠","△","▲","＃","℃","※",".","≈","￠","'"); 
    iuu=regArray.length;
    for(iu=1;iu<=iuu;iu++)
    {
        if (document.getElementById(htmlname).value.indexOf(regArray[iu])!=-1)
        {
            alert("含有禁用字符：" + regArray[iu]);
            document.getElementById(htmlname).value="";
            return false;
        }
    }
    return true;              
}

function checknum(conid)
{
    if(/\D/.test(document.getElementById(conid).value))
    {
        //alert('只能输入数字');
        document.getElementById(conid).value='';
    }
}

function GetQueryString(name)  
{ 
    var regex = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); 
    var r = window.location.search.substr(1).match(regex); 
    if(r != null)
    {
        return unescape(r[2]);
    }
    return null;
}
