// Some UI UTILS with no outside dependencies
// ---------------------------------------------------------------------------


// BOFA Search

function create_button(text, href, css_class, onclick_evt, onmouseover_evt, onmouseout_evt, tabindex, txt_title) {
	var t = "";
	if (( document.getElementById )||( document.all )) {
		t = "<div class=" + css_class + "><a href=\"" + href + "\" class=" + css_class;

		if (onclick_evt) { t = t + " onClick=\"" + onclick_evt + "\""; }
		if (onmouseover_evt) { t = t + " onMouseOver=\"" + onmouseover_evt + "\""; }
		if (onmouseout_evt) { t = t + " onMouseOut=\"" + onmouseout_evt + "\""; }
		if (tabindex) { t = t + " tabindex=\"" + tabindex + "\""; }
		if (txt_title) { t = t + " title=\"" + txt_title + "\""; }
		t = t + ">" + text + "<\/a><\/div>";

	} else if ( document.layers ) {
		// Netscape 4
		t = "<input type=submit  name=" + text + " value=" + text + " alt=" + text + " class=" + css_class + ">";
	}
	document.write(t);
}


function click_submit(id) {
	
	if (( document.getElementById )||( document.all )) {
		var formElement = document.getElementById( id );
		if ( formElement ) {
			formElement.submit();
		}
	} 
}


// KILL SEARCH PROMPT
// ---------------------------------------------------------------------------

function killSearchPrompt(){
	
	var element = document.getElementById( 'prompt' );
	if ( element ) {
		element.style.display='none';
	}
}
