function bmark_msg(){
	var isie = 0;

	//if(navigator.appVersion.indexOf("MSIE") != -1)

	if(window.external) isie = 1;

	if(isie == 1){
		window.external.AddFavorite(location.href, document.title); 
	}
	else{
		alert("Your web-browser does not support automatic addition of favourites/bookmarks.\n\n"+
		"You will have to use a key-combination or menu option specific to your browser:\n"+
		"  - in Mozilla/Mozilla Firefox try: Ctrl-D\n"+
		"  - in Opera try Ctrl-T\n"+
		"  - for other browsers consult the program's help system/documentation\n\n\n"+
		"NOTE: The key combinations above will bookmark the page you were browsing at that moment.");
	}
	return false;
}

function setColor(oElement, bgcolor, color){
	oElement.style.backgroundColor = bgcolor;
	oElement.style.color = color;	
	for(i = 0; i < oElement.all.length; i++){
		oObject = oElement.all(i);
		oObject.style.backgroundColor = bgcolor;
		oObject.style.color = color;
	}
}

var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + //all caps
"abcdefghijklmnopqrstuvwxyz" + //all lowercase
"0123456789+/="; 



function decode64(inp)
{
var out = ""; //This is the output
var chr1, chr2, chr3 = ""; //These are the 3 decoded bytes
var enc1, enc2, enc3, enc4 = ""; //These are the 4 bytes to be decoded
var i = 0; //Position counter

// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
var base64test = /[^A-Za-z0-9\+\/\=]/g;

if (base64test.exec(inp)) { //Do some error checking
alert("There were invalid base64 characters in the input text.\n" +
"Valid base64 characters are A-Z, a-z, 0-9, ?+?, ?/?, and ?=?\n" +
"Expect errors in decoding.");
}
inp = inp.replace(/[^A-Za-z0-9\+\/\=]/g, "");

do { //Here’s the decode loop.

//Grab 4 bytes of encoded content.
enc1 = keyStr.indexOf(inp.charAt(i++));
enc2 = keyStr.indexOf(inp.charAt(i++));
enc3 = keyStr.indexOf(inp.charAt(i++));
enc4 = keyStr.indexOf(inp.charAt(i++));

//Heres the decode part. There’s really only one way to do it.
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;

//Start to output decoded content
out = out + String.fromCharCode(chr1);

if (enc3 != 64) {
out = out + String.fromCharCode(chr2);
}
if (enc4 != 64) {
out = out + String.fromCharCode(chr3);
}

//now clean out the variables used
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";

} while (i < inp.length); //finish off the loop

//Now return the decoded values.
return out;
}
// ** END **