﻿function init(flag)
{
    getLaw_cat(flag);
    getLaw_Location(flag);
}
function getLaw_cat(flag)
{
    com.vietaz.b2b.info.frontend.Law.FrontEnd_Law.getLaw_Cat(flag,getLaw_cat_Callback);
}
function getLaw_cat_Callback(result)
{
    if(result!=null)document.getElementById("divLawCat").innerHTML=result.value;
}

function getLaw_Location(flag)
{
    com.vietaz.b2b.info.frontend.Law.FrontEnd_Law.getLaw_Location(flag,getLaw_Location_Callback);
}
function getLaw_Location_Callback(result)
{
    if(result!=null)document.getElementById("divLawLocation").innerHTML=result.value;
}

//====home page============================================
function getHotNews()
{
    com.vietaz.b2b.info.frontend.Law.FrontEnd_Law.getHotNews(getHotNews_Callback);
}
function getHotNews_Callback(result)
{
    if(result!=null)document.getElementById("divHotNews").innerHTML=result.value;
}

function getHotCompany()
{
    com.vietaz.b2b.info.frontend.Law.FrontEnd_Law.getHotCompany(getHotCompany_Callback);
}
function getHotCompany_Callback(result)
{
    if(result!=null)document.getElementById("divHotCompany").innerHTML=result.value;
}

function getHotBusinessNeed()
{
    com.vietaz.b2b.info.frontend.Law.FrontEnd_Law.getHotBusinessNeed(getHotBusinessNeed_Callback);
}
function getHotBusinessNeed_Callback(result)
{
    if(result!=null)document.getElementById("divBusinessNeed").innerHTML=result.value;
}
function hompage()
{
    getHotNews();
    getHotCompany();
    getHotBusinessNeed();
}



