function GetHeight(Y,NAME){
    var app = navigator.appName.charAt(0);
    if(navigator.userAgent.indexOf('Safari') != -1){
        document.getElementById(Y).height = parent.frames[NAME].document.body.scrollHeight - 10;
    }else if (app == "N"){
        document.getElementById(Y).height = parent.frames[NAME].document.height -10;
    }else{
        document.getElementById(Y).height = parent.frames[NAME].document.body.scrollHeight -10;
    }
}