
// define some colors for setting and testing. We need to do it this way, because IE
// and Firefox use different schemes (hex vs RGB) when testing and comparing colors.
if (!(window.trackviaz)) {
	window.trackviaz = document.createElement('div');

	window.trackviaz.style.backgroundColor = '#ffffff'; var cUncheckedMouseOut  = window.trackviaz.style.backgroundColor;
	window.trackviaz.style.backgroundColor = '#dddddd'; var cUncheckedMouseOver = window.trackviaz.style.backgroundColor;
	window.trackviaz.style.backgroundColor = '#9999ff'; var cCheckedMouseOut    = window.trackviaz.style.backgroundColor;
	window.trackviaz.style.backgroundColor = '#bbbbff'; var cCheckedMouseOver   = window.trackviaz.style.backgroundColor;
}

var server = 'http://www.trackvia.com';

if (!(window.trackvia_content)) {
	window.trackvia_content = new Object();
}

window.trackvia_content['259576'] = '<h1 class="reptitle">Registration Status</h1> <p><table class="datagrid"> <tr align="baseline">    <th onclick="loadPage(259576,\'KxJ9Bmbyuv\',1,\'varchar000\',\'A\');" class="datagrid" title="sort ascending">Program</th>    <th onclick="loadPage(259576,\'KxJ9Bmbyuv\',1,\'double001\',\'A\');" class="datagrid" title="sort ascending">Spots</th>    <th onclick="loadPage(259576,\'KxJ9Bmbyuv\',1,\'double000\',\'A\');" class="datagrid" title="sort ascending">Taken</th>    <th onclick="loadPage(259576,\'KxJ9Bmbyuv\',1,\'double003\',\'A\');" class="datagrid" title="sort ascending">Left</th>    <th onclick="loadPage(259576,\'KxJ9Bmbyuv\',1,\'double002\',\'A\');" class="datagrid" title="sort ascending">% full</th>    <th onclick="loadPage(259576,\'KxJ9Bmbyuv\',1,\'text000\',\'A\');" class="datagrid" title="sort ascending">Status</th> </tr> <tr class="unshaded_row"  valign="baseline" id="report259576ticket70918310" name="report259576ticket70918310">    <td class="datagrid" id="grid_varchar000_70918310">U09 Boys</td>    <td class="datagrid" id="grid_double001_70918310"><div align="right" style="background: inherit;">40</div></td>    <td class="datagrid" id="grid_double000_70918310"><div align="right" style="background: inherit;">41</div></td>    <td class="datagrid" id="grid_double003_70918310"><div align="right" style="background: inherit;">-1</div></td>    <td class="datagrid" id="grid_double002_70918310"><div align="right" style="background: inherit;">103</div></td>    <td class="datagrid" id="grid_text000_70918310">Full. Sorry.</td> </tr> <tr class="shaded_row"  valign="baseline" id="report259576ticket70918311" name="report259576ticket70918311">    <td class="datagrid" id="grid_varchar000_70918311">U10 Boys</td>    <td class="datagrid" id="grid_double001_70918311"><div align="right" style="background: inherit;">50</div></td>    <td class="datagrid" id="grid_double000_70918311"><div align="right" style="background: inherit;">35</div></td>    <td class="datagrid" id="grid_double003_70918311"><div align="right" style="background: inherit;">15</div></td>    <td class="datagrid" id="grid_double002_70918311"><div align="right" style="background: inherit;">70</div></td>    <td class="datagrid" id="grid_text000_70918311">Open</td> </tr> <tr class="unshaded_row"  valign="baseline" id="report259576ticket70918313" name="report259576ticket70918313">    <td class="datagrid" id="grid_varchar000_70918313">U11 Boys</td>    <td class="datagrid" id="grid_double001_70918313"><div align="right" style="background: inherit;">36</div></td>    <td class="datagrid" id="grid_double000_70918313"><div align="right" style="background: inherit;">37</div></td>    <td class="datagrid" id="grid_double003_70918313"><div align="right" style="background: inherit;">-1</div></td>    <td class="datagrid" id="grid_double002_70918313"><div align="right" style="background: inherit;">103</div></td>    <td class="datagrid" id="grid_text000_70918313">Full. Sorry.</td> </tr> <tr class="shaded_row"  valign="baseline" id="report259576ticket70918314" name="report259576ticket70918314">    <td class="datagrid" id="grid_varchar000_70918314">U09 Girls</td>    <td class="datagrid" id="grid_double001_70918314"><div align="right" style="background: inherit;">24</div></td>    <td class="datagrid" id="grid_double000_70918314"><div align="right" style="background: inherit;">24</div></td>    <td class="datagrid" id="grid_double003_70918314"><div align="right" style="background: inherit;">0</div></td>    <td class="datagrid" id="grid_double002_70918314"><div align="right" style="background: inherit;">100</div></td>    <td class="datagrid" id="grid_text000_70918314">Full. Sorry.</td> </tr> <tr class="unshaded_row"  valign="baseline" id="report259576ticket70918316" name="report259576ticket70918316">    <td class="datagrid" id="grid_varchar000_70918316">U10 Girls</td>    <td class="datagrid" id="grid_double001_70918316"><div align="right" style="background: inherit;">44</div></td>    <td class="datagrid" id="grid_double000_70918316"><div align="right" style="background: inherit;">42</div></td>    <td class="datagrid" id="grid_double003_70918316"><div align="right" style="background: inherit;">2</div></td>    <td class="datagrid" id="grid_double002_70918316"><div align="right" style="background: inherit;">95</div></td>    <td class="datagrid" id="grid_text000_70918316">Full. Sorry.</td> </tr> <tr class="shaded_row"  valign="baseline" id="report259576ticket70918320" name="report259576ticket70918320">    <td class="datagrid" id="grid_varchar000_70918320">U11 Girls</td>    <td class="datagrid" id="grid_double001_70918320"><div align="right" style="background: inherit;">36</div></td>    <td class="datagrid" id="grid_double000_70918320"><div align="right" style="background: inherit;">32</div></td>    <td class="datagrid" id="grid_double003_70918320"><div align="right" style="background: inherit;">4</div></td>    <td class="datagrid" id="grid_double002_70918320"><div align="right" style="background: inherit;">89</div></td>    <td class="datagrid" id="grid_text000_70918320">Open</td> </tr> <table> <tr><td colspan="6"><span class="greyital">Showing items 1 - 6 of 6.</span></td></tr> </table></p> ';
window.trackvia_content['259576-js'] = '';

// this sets the tvNNNN div with whatever is in the content var, which can be refreshed
// via the loadPage routine, which does an on-demand javascript call which changes the value.

function redraw(reportid_string) {
        window.document.getElementById('tv'+reportid_string).style.backgroundColor = '#FFFFFF';
        window.document.getElementById('tv'+reportid_string).className = 'reportwrapper';
        window.document.getElementById('tv'+reportid_string).innerHTML = window.trackvia_content[reportid_string];
	eval(window.trackvia_content[reportid_string+'-js']);
}

function initialize() {
	var head = document.getElementsByTagName("head")[0];
	
	var styles = document.createElement('link');
	styles.href = server+'/app/static/stylesheets/public.css';
	styles.rel = "stylesheet";
	styles.type = "text/css";
	head.appendChild(styles);
	
	redraw('259576');
}

function loadPage(reportid,testcode,num,sort1,dir1) {
    var res = '/app/pubrep?v='+testcode+'&a=update&r='+reportid+'&startnum='+num+'&postsort1='+sort1+'&dir1='+dir1+'&accountid=25812';
	loadScript(res);
}

function loadCal(reportid,testcode,mon,year) {
    var res = '/app/pubrep?v='+testcode+'&a=update&r='+reportid+'&cal_month='+mon+'&cal_year='+year+'&accountid=25812';
	loadScript(res);
}

function loadScript(loc) {
	var head = document.getElementsByTagName("head")[0];
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = server + loc;
    head.appendChild(script);
}

initialize()
