/* - - - - - - - - - - - - - - - - - - - - - - -
 JavaScript
 Thursday, March 19, 2009 1:51:04 PM
 HAPedit 3.1.11.111
 - - - - - - - - - - - - - - - - - - - - - - - */
 function infoTabbedBox(boxT,headStr,tabStr,conid,objname){  //alert(conid);
 var boxTitle=boxT;
 var boxCollapseState=0;
 var tabHeadString=headStr;
 var tabContentString=tabStr;
 var tabhead=tabHeadString.split('~');
 var tabstr=tabContentString.split('~');
 var boxValue="";
 var controlId=conid;
 var objName=objname;

this.openBox = openBox;
 var str="<table width=100% cellpadding=0 cellspacing=0 border=0 ><tr><td width='92%' class=''><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='' nowrap height='20'><img src='images/"+boxTitle+"' alt='Loading Image...'></td>";
 str=str+"</tr></table></td><td width='5%' class='' align=right><a href='javascript:"+objName+".openBox(0);'><img src='images/arrow_gray_down.gif' border=0  alt='Arrow' width='13' height='7' /></a></td></tr></table>";

 document.getElementById(controlId).innerHTML=str;
 function openBox(tabid) {
        boxCollapseState=1;

        var myhtm="<table width=100% cellpadding=0 cellspacing=0 border=0 ><tr><td width='20%' class='' nowrap><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='' nowrap height='20'><img src='images/"+boxTitle+"' alt='Loading Image...'></td>";
        myhtm=myhtm+"</tr></table></td><td><table width=100% cellpadding=2 cellspacing=0 border=0 ><tr>";
        for(x=0;x<tabhead.length;x++){
        curclass="innerbox_top_tab1";
        if(x==tabid){
         curclass="innerbox_top_tab";
        }
        myhtm=myhtm+"<td  width=10% class="+curclass+" nowrap><a href='javascript:"+objName+".openBox("+x+");' >"+tabhead[x]+"</a></td>";
        }
        for(x=0;x<6;x++){
         myhtm=myhtm+"<td width=10% class=innerbox_top_tab1  nowrap>&nbsp;</td>";
         }
        myhtm=myhtm+"</tr></table></td><td class=innerbox_top_tab1 align=right><a href='javascript:"+objName+".closeBox();'><img src='images/arrow_gray_up.gif' border=0></a></td></tr>";
        myhtm=myhtm+"<tr><td colspan=4 class=outerbox_border><table  border=0 width=100% cellpadding=2><tr><td>"+tabstr[tabid]+"</td></tr></table></td></tr></table></td></tr></table>";
        document.getElementById(controlId).innerHTML=myhtm;
        //alert('box '+boxTitle+' Opened');
    }
    this.closeBox = function() {
        boxCollapseState=0;
        var str="<table width=100% cellpadding=0 cellspacing=0 border=0 ><tr><td width='92%' class=''><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='' nowrap height='20'><img src='images/"+boxTitle+"' alt='Loading Image...'></td>";
        str=str+"</tr></table></td><td width='5%' class='' align=right><a href='javascript:"+objName+".openBox(0);'><img src='images/arrow_gray_down.gif' border=0  alt='Arrow' width='13' height='7' /></a></td></tr></table>";

        document.getElementById(controlId).innerHTML=str;
        //alert('box '+boxTitle+' Opened');
    }



 }

 function infoBox(boxT,boxStr,conid,objname){  //alert(conid);
 var boxTitle=boxT;
 var boxCollapseState=0;
 var boxValue="";
 var controlId=conid;
 var objName=objname;
 this.openBox1 = openBox1;

 document.getElementById(controlId).innerHTML="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='97%' align='left' class='' nowrap height='20'><img src='images/"+boxTitle+"' alt='Loading Image...'></td><td width='3%'><a href='javascript:"+objName+".openBox1();'><img src='images/arrow_gray_down.gif' border=0 alt='Arrow' width='13' height='7' /></a></td></tr></table>";

 function openBox1() {
        boxCollapseState=1;

        var myhtm="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='97%' align='left' class='' nowrap height='20'><img src='images/"+boxTitle+"' alt='Loading Image...'></td><td width='3%'>"
        myhtm=myhtm+"<a href='javascript:"+objName+".closeBox1();'><img src='images/arrow_gray_up.gif' border=0 alt='Arrow' width='13' height='7' /></a></td></tr>";
        myhtm=myhtm+"<tr><td colspan=2 >"+boxStr+"</td></tr></table>";
        document.getElementById(controlId).innerHTML=myhtm;
        //alert('box '+boxTitle+' Opened');
    }
    this.closeBox1 = function() {
        boxCollapseState=0;
        document.getElementById(controlId).innerHTML="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='97%' align='left' class='' nowrap height='20'><img src='images/"+boxTitle+"' alt='Loading Image...'></td><td width='3%'><a href='javascript:"+objName+".openBox1();'><img src='images/arrow_gray_down.gif' border=0 alt='Arrow' width='13' height='7' /></a></td></tr></table>";
        //alert('box '+boxTitle+' Opened');
    }


 }
