﻿// JScript File

function Alert(text)
{
    document.alert(text);
}

function preFrame()
{
    if (window != parent){ 
        parent.location.href = "Default.aspx";
    }
}

function fl_view(objhtml)
{ 
    document.write(objhtml); 
} 

function show(layerCeo)
{   
    if(document.all.layerCeo.style.display == "none")
    {          
        document.all.layerCeo.style.display = "";        
    }
    else if(document.all.layerCeo.style.display == "")
    {
        document.all.layerCeo.style.display = "none";
    }
}

function showBackground(layerBackground)
{
    if(document.all.layerBackground.style.display == "none")
    {
        document.all.layerBackground.style.display = "";
    }
    else if(document.all.layerBackground.style.display == "")
    {
        document.all.layerBackground.style.display = "none";
    }
}

function setOpacity(Obj,Opacity) 
{
    Obj.style.filter = "alpha(opacity=" + Opacity + ")";    //IE
    Obj.style.opacity = Opacity / 100;                      //FF,Opera,Safari
}

function setMain(layerCeo, layerBackground, Obj, Opacity)
{
    show(layerCeo);
    showBackground(layerBackground);
    setOpacity(Obj, Opacity);
}
//function hidden(layerCeo)
//{
//    //document.all[layerCeo].style.visible = "hidden";
//    document.all.layerCeo.style.display = "none";
//}