var InitialHeight;

function clickIt(e,ListItem){
    if (ListItem.className=="closed")
    {ListItem.className="open";}
    else 
    {ListItem.className = "closed";}
    if (!e) e = window.event;
    e.cancelBubble = true;
    
    resizeAdviceIFrame();
    
    return false;
}
function cancelBubble(e){
    if (!e) e = window.event;
    e.cancelBubble = true;
}
function resizeAdviceIFrame(){
    var iframe = window.frameElement;
    if (iframe){
        if (InitialHeight > 0) {
            resizeIFrameY(iframe, InitialHeight);  //resizeIFrameHeight(iframe);
        }
        else {
            resizeIFrameHeight(iframe);
        }
    }
}
function CheckInitialHeight(){
    var iframe = window.frameElement;
    if (iframe){
        InitialHeight = parseInt(iframe.height);
        if (isNaN(InitialHeight)) InitialHeight = 0;
    }
    else {
        InitialHeight = 0;
    }
}