﻿function EditWebsite(strID)
{    
    document.location = "Website.aspx?hdnID=" + strID;
//    document.forms[0].hdnID.value = strID;
//    document.forms[0].submit();
}
function GetSupportInformation(strModule)
{ 
    return window.open(strModule, '_blank', 'status=1,width=350,height=400');
}
function GetSecuritiesPrice(strModule)
{ 
    return window.open(strModule, '_blank', 'fullscreen=no,addressbar=no,toolbar=no,titlebar=no,scrollbars=yes,status=no,resizable=no');
}
function GetWeather(strModule)
{ 
    return window.open(strModule, '_blank', 'fullscreen=no,addressbar=no,toolbar=no,titlebar=no,scrollbars=yes,status=no,resizable=no, width=580,height=580');
}
function GetRainway(strModule)
{ 
    return window.open(strModule, '_blank');
}
function GetGoldPrice(strModule)
{ 
    return window.open(strModule, '_blank', 'fullscreen=no,addressbar=no,toolbar=no,titlebar=no,scrollbars=yes,status=no,resizable=no,width=345,height=250');
}

function ShowHideQA(ID)
{
    if(document.getElementById(ID).className == "Show")
    {
        document.getElementById(ID).className = "Hide";
    }
    else
    {
        document.getElementById(ID).className = "Show";
    }
}

function getElementsByClassName(classname, node) {
    if(!node) node = document.getElementsByTagName("body")[0];
    var a = [];
    var re = new RegExp('\\b' + classname + '\\b');
    var els = node.getElementsByTagName("*");
    for(var i=0,j=els.length; i<j; i++)
    if(re.test(els[i].className))a.push(els[i]);
    return a;
}
function initArticleHotNewsHeight()
{
    var e = getElementsByClassName("HighLightArticle");
    if (e && document.getElementById("marqueeHotNewsID")) {
        e = e[0];
        document.getElementById("marqueeHotNewsID").style.height = e.offsetHeight + "px";
    }
}
if(window.addEventListener){
	window.addEventListener("load", initArticleHotNewsHeight, false);
}else if(window.attachEvent){
	window.attachEvent("onload", initArticleHotNewsHeight)
}