﻿// JScript File

function calcHeight(str)
{
    var pageHeight;
    pageHeight = document.getElementById(str).contentWindow.document.body.scrollHeight;
    pageHeight+=10;
    document.getElementById(str).height = pageHeight;
}
    
function show(id)
{ 
    if (document.getElementById)
    { 
        obj = document.getElementById(id); 
        obj.style.display = ""; 
    } 
} 
function hide(id)
{ 
    if (document.getElementById)
    { 
        obj = document.getElementById(id); 
        obj.style.display = "none"; 
    } 
}
function mouseover(id,src)
{
    document.getElementById(id).style.backgroundImage= 'url(' + src + ')';
} 
function Clear_Text(Obj, Action, str)
{
    if(Action)
        Obj.value = "";
    else
    {
        if(Obj.value == "")
        Obj.value = str;
    }
}


