function obxTabPage(sizex , sizey, cssHead){
    if(!cssHead) this.cssHead='';
    else this.cssHead=cssHead;
    document.write(
        '<table cellpadding="0" cellspacing="0" style="table-layout:fixed; padding:1;height:'+sizey+';width:'+sizex+'">' +
        '<tr><td class=tp_'+this.cssHead+'_nCell width=*>&nbsp;</td></tr>'+
        '<tr><td class=tp_'+this.cssHead+'_Content1 width=100%> </td></tr>'+ 
        '</table>'
    );
    this.height=sizey;
    this.width=sizex;
    var tables=document.getElementsByTagName("table");
	this.table=tables[tables.length-1];
    this.titleRow=this.table.rows[0];
    this.nullCell = this.titleRow.cells[0];
    this.contentRow = this.table.rows[1];
    this.contentCell = this.contentRow.cells[0];
    this.item= new Object();
 
    this.length=0;
 
    var re=new RegExp("\\bname=(\\w+)\\b",'i');
    if(location.search.match(re)) this.defaultView = RegExp.$1;
 
    this.addStart= function (id,title,idx,action) {
 
		var iIndex=(idx) ? idx-1 : this.length;
        
        this.item[id] = this.titleRow.insertCell(iIndex);
 
		this.item[id].className='tp_'+this.cssHead+'_Cell';
        this.item[id].parentObject=this;
        this.item[id].onclick=Function("this.parentObject.show('"+id+"');");
        if(action) this.item[id].action = action;
        this.item[id].height=25;
        this.item[id].innerHTML=title;
        document.write('<div style="display:none;width:100%; height:100%">');
		var divs=document.getElementsByTagName("div");
        this.item[id].content = divs[divs.length-1];
        this.item[id].content.className='tp_'+this.cssHead+'_Content2';
        this.DrawingID=id;
        this.length++;
        this.contentCell.colSpan=this.length+1;
 
    }
    
    this.addEnd = function () {
        document.write("</div></div>");
        this.contentCell.appendChild(this.item[this.DrawingID].content);
        if(!this.LastShownItemID) this.show(this.DrawingID,1);
        else if(this.defaultView==this.DrawingID) this.show(this.defaultView,1);
    }
    this.show = function (id,runtime){
 
        if (this.LastShownItemID) this.hide(this.LastShownItemID);
        this.LastShownItemID = id;
        this.item[id].className='tp_'+this.cssHead+'_sCell';
        this.item[id].content.style.display='';
        if(this.item[id].action) {
            try{eval(this.item[id].action);}catch(e){}}
    }
 
    this.hide = function (id){
        this.item[id].className='tp_'+this.cssHead+'_Cell';;
        this.item[id].content.style.display="none";
    }
} 


function Resize_Frame(name)  {
var Frame_Body= document.frames(name).document.body;
var Frame_name= document.all(name);

Frame_name.style.width = "100%"; //¾îÂ¥ÇÇ ³ÐÀÌ´Â 100%Á¤µµ°¡ µüÀÌ´Ù..
Frame_name.style.height = Frame_Body.scrollHeight + (Frame_Body.offsetHeight-Frame_Body.clientHeight);

if (Frame_name.style.height == "0px" || Frame_name.style.width == "0px")
{
Frame_name.style.width = "100%"; //±âº» iframe ³Êºñ
Frame_name.style.height = "600px"; //±âº» iframe ³ôÀÌ
}
//alert(Frame_name.style.width );
//alert(Frame_name.style.height );

} 