fixframe();

function pageheight(){
var docHeight;
if (typeof document.height != 'undefined') {
docHeight = document.height;
}
else if (document.body && typeof document.body.scrollHeight !='undefined') {
docHeight = document.body.scrollHeight;
}
document.documentElement.scrollHeight

var docHeight;
if (typeof document.height != 'undefined') {
docHeight = document.height;
}
else if (document.compatMode && document.compatMode != 'BackCompat') {
docHeight = document.documentElement.scrollHeight;
}
else if (document.body && typeof document.body.scrollHeight !='undefined') {
docHeight = document.body.scrollHeight;
}
return docHeight;
}

function fixframe(){
setcap();
parent.document.getElementById("IFRAME").height =pageheight();
setcap();
}

function setcap(){
window.status='';
}