function goodBrowser(){
	return document.getElementById;
}

function isIE(){
	browser = navigator.appName;
	appVer = parseInt(navigator.appVersion);
	ie = "Microsoft Internet Explorer";
	ns = "Netscape";
	if ((browser != ie)||(appVer<4)) {
		return false;
	}
	return true;
}

function printArray(arr){
	var i, shtuff="";
	for(i=0; i<arr.length; i++){
		shtuff += arr[i];
	}
	alert(shtuff);
}

function escapeChars(chr){
	if(chr=="\\"){
		return "&#92";
	}
	else if(chr=="\""){
		return "&#34";
	}
	else if(chr=="\<"){
		return "&#60";
	}
	else if(chr=="\&"){
		return "&#38";
	}
	else if(chr=="\>"){
		return "&#62";
	}
	else{
		return chr;
	}
}

function validChar(ch){
	return((ch>31)&&(ch<127));
}

function getHex(){
	var randnum, hex;
	randnum = Math.floor(Math.random()*16);
	if(randnum<10){
		hex = randnum.toString();
	}
	else{
		switch(randnum){
			case 10:
				hex = 'A';
				break;
			case 11:
				hex = 'B';
				break;
			case 12:
				hex = 'C';
				break;
			case 13:
				hex = 'D';
				break;
			case 14:
				hex = 'E';
				break;
			default:
				hex = 'F';
				break;
		}
	}
	return hex;
}
