function getBMqs(start_time, protocol) {
    var cook;

    if (navigator.cookieEnabled) {
        cook = navigator.cookieEnabled;
    } else {
        document.cookie="CS=;%20expires=0;%20path=/index.html";
        if (document.cookie != "") {
            cook = true
        } else {
            cook = false
        }
    }

    var n = new Date();

    if (!window.name) {
        window.name = Math.round(Math.random() * n.getTime());
    }

    if (parent.frames) {
        var ref = parent.document.referrer;
    } else {
        var ref = document.referrer;
    }

    var qs = escape(window.location) + '*' + escape(ref) + '*'+window.name + '/' + start_time + '/' + n.getTime() + '/' + cook + '/' + (navigator.javaEnabled());

    if (window.screen) {
        qs += '/'+screen.width+'x'+screen.height+'/'+screen.colorDepth+'/'
    } else {
        qs+='///'
    };

    var bm_img = '<img name="bm_image" id="bm_image" src="' + protocol + '://www.bmmetrix.com/A' + qs + '" width=1 height=1 border=0>';
//    document.write(bm_img);

    //does the browser support this object?
    var netscapeType = (window.innerWidth)? true:false;

    var bmWidth = (netscapeType)? window.innerWidth :
                  document.body.offsetWidth;
    var bmHeight = (netscapeType)? window.innerHeight :
                   document.body.offsetHeight;
    var bmData = 'url=' + escape(window.location) + '&' +
                 'width=' + bmWidth + '&' +
                 'height=' + bmHeight;
    var bmImg = '<img name="bmImg" id="bmImg" src="' + protocol + '://www.bmmetrix.com/L' + bmData + '" width=1 height=1 border=0>';
//    document.write(bmImg);
}


/*
@ function;	visibiltyOn, visibiltyOff
@ author:	Paul Markus
@ input:	the name of the object ID  to change its visibility On (Obj_ON)and Off(Obj_OFF)
@ output:	the object specified as Obj_ON will change its visibility to On and visa versa
@ version:	1
*/

function visibiltyOn(Obj_ON, Obj_OFF){
 if(document.getElementById(Obj_ON)) {
	  document.getElementById(Obj_ON).style.visibility = "visible";
	  document.getElementById(Obj_OFF).style.visibility = "hidden";
  } else {
	  alert("On :no such object: " + Obj_name);
  }
}
function visibiltyOff(Obj_OFF, Obj_ON){
  if(document.getElementById(Obj_ON)) {
	  document.getElementById(Obj_ON).style.visibility = "visible";
	  document.getElementById(Obj_OFF).style.visibility = "hidden";
  } else {
	  alert("Off: no such object " + Obj_name);
  }
}