" +
"" +
"" +
" " +
"" +
maxvalue1.toString() + maxvalue2 + " " +
"" +
txtmonth + " " +
" " +
" " +
" | " + prefix + " | " +
"
| " ;
}
document.write (h);
maxvalue = max / yscale ;
values = "" + prefix + " | " ;
odd = true;
columns = 1 ;
}
function bar(color, value, value2, month)
{
img = 'blanco' ;
if (value == "-")
{ value = 0 ; }
if (value2 == "-")
{ value2 = 0 ; }
value *= 1 ;
value2 *= 1 ;
if (color == 'Y') { img = 'yellowbar' ; }
if (color == 'B') { img = 'bluebar' ; }
if (color == 'R') { img = 'redbar' ; }
if (color == 'G') { img = 'greenbar' ; }
if (color == 'V') { img = 'violetbar' ; }
img2 = 'greybar' ;
h = "" ;
height = 0 ;
if ((value != 0) && (maxvalue != 0))
{ height = Math.round (maxheight * ((value/yscale) / maxvalue)) ; }
height2 = 0 ;
if ((value2 != 0) && (maxvalue != 0))
{ height2 = Math.round (maxheight * ((value2/yscale) / maxvalue)) - 1 ; }
if (height2 > 1)
{
h += " " +
" " ;
}
if (height > 0)
{
h += " " +
" " +
" " ;
}
else
{ h += " " ; }
value3 = (((value+value2)/yscale)+".").split('.');
value4 = value3 [0] ;
if (value4 == 0)
{ value4 = "" ; }
if (value4 >= 0)
{
if (odd)
{ h += "" + value4 + "" ; }
else
{ h += "" + value4 + "" ; }
odd = ! odd ;
}
h += " " ;
h += " " + month + " | " ;
document.write (h);
}
function bar2(color, value)
{
img = 'blanco' ;
if (value == "-") { value = 0 ; }
if (color == 'Y') { img = 'yellowbar' ; }
if (color == 'B') { img = 'bluebar' ; }
if (color == 'R') { img = 'redbar' ; }
if (color == 'G') { img = 'greenbar' ; }
columns++ ;
if (columns == 2)
{
if (showTotals == "y")
{ img = 'violetbar' ; }
else
{ img = 'blanco' ; }
}
h = "" +
"" ;
height = 0 ;
if ((value != 0) && (maxvalue != 0))
{ height = maxheight * ((value/yscale) / maxvalue) ; }
if ((twoScales == "y")&& (value < (maxvalue3 / 10)))
{
height *= 10 ;
img = 'greenbar2' ;
}
height = Math.round (height) ;
h += "" ;
if ((columns == 2) && (showTotals == "n"))
{
h += " " ;
}
else
{
if (height > 0)
{
h += " " ;
h += " " ;
}
h += "" ;
}
value2 = ((value/yscale)+".").split('.');
value = value2 [0]+'.'+(value2[1]+'0000').substr(0,1);
if ((value2 [0] > 10) || ((color == 'Y') && (yscale == 1)))
{ value = value2 [0] ; }
if (value > 0)
{
if (value > 999)
{ value = value.substr (0,value.length-3) + "," + value.substr (value.length-3) ; }
value = value.replace(regExp, sep_1000) ;
h += " | " + value + " | " ;
}
else
{ h += " | " ; }
h += "
| " ;
document.write (h);
}
// Return a stylesheet rule with the mentioned name
function get_rule (name)
{
// W3C
if (document.getElementById && document.styleSheets && document.styleSheets[0].cssRules)
{
for (sheet = 0; sheet < document.styleSheets.length ; sheet++)
{
for (rule = 0; rule < document.styleSheets[sheet].cssRules.length ; rule++)
{
if (document.styleSheets[sheet].cssRules[rule].selectorText == name)
{ return (document.styleSheets[sheet].cssRules[rule]) ; }
}
}
}
// IE
else
if(document.all && document.styleSheets)
{
for ( sheet = 0; sheet < document.styleSheets.length; sheet++ )
{
for(rule=0; rule 3))
{ showBookSizes = 1 ; }
setCookie ("ShowBookSizes", showBookSizes);
if (showBookSizes == 1)
{
get_style_class ('ch1').color = '#BBBB66' ;
get_style_class ('ch1').fontSize = '12px' ;
get_style_class ('ch1').fontWeight = 'normal' ;
get_style_class ('ch1').paddingLeft = '3px' ;
get_style_class ('ch1').paddingRight = '3px' ;
get_style_class ('ch2').color = '#4466AA' ;
get_style_class ('ch2').fontSize = '12px' ;
get_style_class ('ch2').fontWeight = 'normal' ;
get_style_class ('ch2').paddingLeft = '3px' ;
get_style_class ('ch2').paddingRight = '3px' ;
get_style_class ('ch3').color = '#0000FF' ;
get_style_class ('ch3').fontSize = '12px' ;
get_style_class ('ch3').fontWeight = 'bold' ;
get_style_class ('ch3').paddingLeft = '3px' ;
get_style_class ('ch3').paddingRight = '3px' ;
}
if (showBookSizes == 2)
{
get_style_class ('ch1').color = '#BBBB66' ;
get_style_class ('ch1').fontSize = '10px' ;
get_style_class ('ch1').fontWeight = 'normal' ;
get_style_class ('ch1').paddingLeft = '3px' ;
get_style_class ('ch1').paddingRight = '3px' ;
get_style_class ('ch2').color = '#4466AA' ;
get_style_class ('ch2').fontSize = '12px' ;
get_style_class ('ch2').fontWeight = 'normal' ;
get_style_class ('ch2').paddingLeft = '3px' ;
get_style_class ('ch2').paddingRight = '3px' ;
get_style_class ('ch3').color = '#0000FF' ;
get_style_class ('ch3').fontSize = '15px' ;
get_style_class ('ch3').fontWeight = 'normal' ;
get_style_class ('ch3').paddingLeft = '3px' ;
get_style_class ('ch3').paddingRight = '3px' ;
}
if (showBookSizes == 3)
{
get_style_class ('ch1').color = '#000044' ;
get_style_class ('ch1').fontSize = '9px' ;
get_style_class ('ch1').fontWeight = 'normal' ;
get_style_class ('ch1').paddingLeft = '0px' ;
get_style_class ('ch1').paddingRight = '0px' ;
get_style_class ('ch2').color = '#0000AA' ;
get_style_class ('ch2').fontSize = '11px' ;
get_style_class ('ch2').fontWeight = 'bolder' ;
get_style_class ('ch2').paddingLeft = '3px' ;
get_style_class ('ch2').paddingRight = '3px' ;
get_style_class ('ch3').color = '#0000FF' ;
get_style_class ('ch3').fontSize = '13px' ;
get_style_class ('ch3').fontWeight = 'bold' ;
get_style_class ('ch3').paddingLeft = '6px' ;
get_style_class ('ch3').paddingRight = '6px' ;
}
}