var white_line = '<tr class="level2_bg"><td height="1" colspan="2"><img src="/pro/images/spacer.gif" width="1" height="1"></td></tr>';
var pre_link_2 = '<tr class="level2_bg"><td style="padding:2px 4px 2px 14px;">';
var pre_link_3 = '<tr class="level3_bg"><td style="padding:2px 4px 2px 24px;">';
var pre_link_photo = '<tr><td colspan="2">';
var spacer_code = '<img src="/pro/images/spacer.gif" width="1" height="1">';
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');
}

