//var indexURL = "index.htm";
//var aboutURL = "about.htm";
//var uniqueURL = "diff.htm";
//var servicURL = "service.htm";
//var loctinURL = "location.htm";
//var jobURL = "job.htm";
//var siteURL = "sitemap.htm";
//var contactURL = "job.htm";
document.write("<table border=0 cellspacing=0 cellpadding=0 width=885 >");
document.write("<tr><td height=10><\/td><\/tr>");
document.write("<tr>");
document.write("<td width=16><\/td>");
document.write("<td><a href='javascript:next_url(\"index.htm\");' class='menu_m'>Home<\/a><\/td>");
document.write("<td width=23><\/td>");
document.write("<td><a href='javascript:next_url(\"about.htm\");' class='menu_m'>About Us<\/a><\/td>");
document.write("<td width=23><\/td>");
document.write("<td><a href='javascript:next_url(\"diff.htm\");' class='menu_m'>Our Difference<\/a><\/td>");
document.write("<td width=23><\/td>");
document.write("<td><a href='javascript:next_url(\"service.htm\");' class='menu_m'>Services<\/a><\/td>");
document.write("<td width=23><\/td>");
document.write("<td><a href='javascript:next_url(\"location.htm\");' class='menu_m'>Locations<\/a><\/td>");
document.write("<td width=23><\/td>");
document.write("<td><a href='javascript:next_url(\"job.htm\");' class='menu_m'>Employment<\/a><\/td>");
document.write("<td width=23><\/td>");
document.write("<td><a href='javascript:next_url(\"sitemap.htm\");' class='menu_m'>Site Map<\/a><\/td>");
document.write("<td width=23><\/td>");
document.write("<td><font style='color: #ffffff; text-decoration: none; font-size: 13px; font-family: verdana;'>&nbsp; Copyright&copy; 2009<\/font><\/td>");
document.write("<td width=16><\/td>");
document.write("<\/tr>");
document.write("<\/table>");
document.write("<table border=0 cellspacing=0 cellpadding=0 width=885>");
document.write("<tr><td height=10><\/td><\/tr>");
document.write("<tr>");
document.write("<td align=right height=15>");
if (_pageMark == 'index') {
document.write("<font style=\"font-family: verdana ; font-size: 11px; color:#cecece;\">Flash Effect &nbsp;<\/font><a href='javascript:flash_on()' class='menu_m'>On<\/a><font style='font-family: verdana ; font-size: 11px; color:#cecece;'>&nbsp;|&nbsp;<\/font><a href='javascript:flash_off()' class='menu_m'>Off<\/a>");
}
document.write("<\/td><td width=12><\/td>");
document.write("<\/tr>");
document.write("<\/table>");
document.write("<table border=0 cellspacing=0 cellpadding=0 width=885>");
document.write("<tr><td width=20></\/td>");
//document.write("<td width=100 align='left'><font style='font-family: verdana; font-size: 12px; color:#ffffff;'><span name='hcount' id='hcount'><\/span><\/font><\/td>");
document.write("<td align='center'><font style='font-family: verdana; font-size: 12px; color:#ffffff;'>Criterion Brock  - Toll Free (800) 950-0002<\/font><\/td>");
document.write("<\/tr>");
document.write("<tr><td height=30><\/td><\/tr>");
document.write("<\/table>");
var hc_obj=null;
var debug_ok = 'n';  // 'y' or 'n'
function hc_readSvrData(url) {
hc_obj=null
if (window.XMLHttpRequest) {
hc_obj = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
hc_obj=new ActiveXObject("Microsoft.XMLHTTP")
} else {
hc_obj=null;
return false;
}
hc_obj.onreadystatechange=hc_stateChecker;
hc_obj.open('GET', url, true);
hc_obj.send(null);
} // hc_readSvrData(url)
function hc_stateChecker() {
if(hc_obj.readyState==4){
if(hc_obj.status==200){
//alert("bt_ajax.js -- JSON="+hc_obj.responseText);
var result = eval('(' + hc_obj.responseText + ')');
//var result = hc_obj.responseText;
//alert("ajax_hc.js -- JSON="+result);
hc_displayData(result);
} else {
if (debug_ok == 'y') {
document.getElementById('hcount').innerHTML= "<font style='font-family: arial; font-size: 12px; color:666666; line-height: 1.4;'>Failed to get response:"+ hc_obj.statusText +"; status code="+hc_obj.status+"<br> ResponseText:"+hc_obj.responseText+" </font>";
}
}
}
} // hc_stateChecker()
function hc_displayData(result) {
var displayText = "HC "+ result.usr_count;
displayText += "-"+ result.hit_count;
document.getElementById('hcount').innerHTML=displayText;
}
/*
Call the Ajax in Javascript by
var idx_rdm = randomByMath(100);
window.onload=function() {
if(document.getElementById &&
document.getElementsByTagName &&
document.createElement) {
hc_readSvrData('http://localhost/scripts/cbc/ajax_hc.pl?idx='+idx_rdm);
}
}
*/
/*
End
*/
