function setIframeDocHeight(obj_iframe, min_max){

    var h = min_max;
    var d = null;
    	
    if(obj_iframe != null){
    	if(obj_iframe.contentWindow){
    		d = obj_iframe.contentWindow.document;
    	}
    }
    
    if(d != null){
        if(d.documentElement && d.body){
            h = Math.max(
                d.documentElement.scrollHeight,d.documentElement.offsetHeight,d.body.scrollHeight
                );
        } 
        else {
            if(d.body){
                h = d.body.scrollHeight;
            }
        }
        
        if(h < min_max){
        	h = min_max;
        }
        
        h = h + 5;  //play
        
        obj_iframe.style.height = h + "px";
    }
}
