function tbox(nRow,nCol,nHgt,nWdh,skinx,hColor,nAlfa,nImgWdt,nImgHgt) {	     	
	     var nAncho = nImgWdt;  
         var nAlto  = nImgHgt;
         var fAlfa  = '.' + (nAlfa) 
         if (nAlfa == 100) {
            fAlfa  =  1
         }
         document.write('<div style="position:absolute;top:'+ (nRow) +'px;left:'+(nCol)+'px;width:'+(nWdh)+'px;height:'+(nHgt)+'px;">')
         document.write('<div style="position:absolute;top:0px;left:0px;width:'+(nAncho)+'px;height:'+(nAlto)+'px;background:url('+skinx+'/topleft.png);background-repeat:no-repeat"></div>')
         document.write('<div style="position:absolute;top:0px;left:'+(nAncho)+'px;width:'+(nWdh-(nAncho * 2))+'px;height:'+(nAlto)+'px;background:url('+skinx+'/top.png);background-repeat:repeat-x"></div>')
         document.write('<div style="position:absolute;top:0px;left:'+(nWdh-nAncho)+'px;width:'+(nAncho)+'px;height:'+(nAlto)+'px;background:url('+skinx+'/topright.png);background-repeat:no-repeat"></div>') 
         document.write('<div style="position:absolute;top:'+(nAlto)+'px;left:'+(nWdh-nAncho)+'px;width:'+(nAncho)+'px;height:'+(nHgt-(nAlto * 2))+'px;background:url('+skinx+'/right.png);background-repeat:repeat-y"></div>')
         document.write('<div style="position:absolute;top:'+(nHgt-nAlto)+'px;left:'+(nWdh-nAncho)+'px;width:'+(nAncho)+'px;height:'+(nAlto)+'px;background:url('+skinx+'/bottomright.png);background-repeat:no-repeat"></div>') 
         document.write('<div style="position:absolute;top:'+(nHgt-nAlto)+'px;left:'+(nAncho)+'px;width:'+(nWdh-(nAncho * 2))+'px;height:'+(nAlto)+'px;background:url('+skinx+'/bottom.png);background-repeat:repeat-x"></div>')
         document.write('<div style="position:absolute;top:'+(nHgt-nAlto)+'px;left:0px;width:'+(nAncho)+'px;height:'+(nAlto)+'px;background:url('+skinx+'/bottomleft.png);background-repeat:no-repeat"></div>')
         document.write('<div style="position:absolute;top:'+(nAlto)+'px;left:0px;width:'+(nAncho)+'px;height:'+(nHgt-(nAlto * 2))+'px;background:url('+skinx+'/left.png);background-repeat:repeat-y"></div>')	
         document.write('<div style="position:absolute;top:'+(nAlto)+'px;left:'+(nAncho)+'px;width:'+(nWdh-(nAncho * 2))+'px;height:'+(nHgt-(nAlto * 2))+'px;background-color:'+hColor+';filter:alpha(opacity='+ nAlfa +');-moz-opacity:'+ fAlfa + ';opacity:' + fAlfa + ';"></div>')
}

function lBox(nRow,nCol,nWdt,nHgt,hClrBde,nBorde,hClrBk,nAlfa) { 
         document.write('<div style="position:absolute;top:'+ (nRow + nBorde) +'px;left:'+ (nCol + nBorde) +'px;height:'+ (nHgt - nBorde) +'px;width:'+ (nWdt - nBorde) +'px;background-color:'+ hClrBk + ';filter:alpha(opacity='+ nAlfa +');-moz-opacity:.'+ nAlfa + ';opacity:.'+ nAlfa + ';">')
         document.write('<div style="position:absolute;top:0px;left:0px;height:'+ nBorde +'px;width:100%;background-color:'+ hClrBde +'"></div>') 
         document.write('<div style="position:absolute;top:0px;left:'+ ((nWdt - nBorde) - nBorde) +'px;height:100%;width:'+ nBorde +'px;background-color:'+ hClrBde +'"></div>')          
         document.write('<div style="position:absolute;top:'+ ((nHgt - nBorde) - nBorde) +'px;left:0px;height:'+ nBorde +'px;width:100%;background-color:'+ hClrBde +'"></div>')          
         document.write('<div style="position:absolute;top:0px;left:0px;height:100%;width:'+ nBorde +'px;background-color:'+ hClrBde +'"></div>')
}	 
