var white_line = '<tr><td width="140" height="1" colspan="2"><img src="http://www.crcna.org/images/spacer.gif" width="1" height="1"></td></tr>';
var pre_link = '<tr><td width="120" bgcolor="#e3e3e3" style="padding:2px 2px 0px 10px;">';
var pre_link_3 = '<tr><td width="120" class="menuhighlight" style="padding:2px 2px 0px 10px;">';
var pre_link_photo = '<tr><td width="140" colspan="2">';
var spacer_code = '<img src="images/spacer.gif" width="1" height="1">';
var plus_image = 'http://www.crcna.org/images/plus.gif';
var minus_image = 'http://www.crcna.org/images/minus.gif';
function getElement(element) {
	if (document.all) {
		// IE support document.all, but does not fully support
		// document.getElementById()
		return document.all[element];
	} else if (document.getElementById) {
		// Mozilla and its offspring (including NS6+) only support
		// document.getElementById()
		return document.getElementById(element);
	} else {
		// And, of course, there might be NS4 users using this - and their
		// browser doesn't support getting an element by name
		return null;
	}
}
function display_code(code,divname){
	var div = getElement(divname);
	// div will be null if the browser is not IE or not W3C DOM compliant
	if (div != null)
		div.innerHTML = code;
}
function open_new_window(url){
	window.open(url,'_blank');
}
