//<script>
// Clears a textbox of any default "accessibility" text on focus
function clearText(textBoxID,defaultVal){
	if (document.getElementById(textBoxID).value == defaultVal) document.getElementById(textBoxID).value = '';
}

// Checks for enter key being pressed and fires the click event for the specified button
function clickOnEnter(buttonID){
	if (((document.all)?window.event.keyCode:event.which) == 13){
		document.getElementById(buttonID).click(); 
		return false;
	} else {
		return true;
	}
}

// Standard function to open pages in a new window
function OpenWindow(URL, name, width, height) {
window.open(URL,name,"scrollbars=yes,width=" + width + ",height=" + height);
}


function generateDisplayHTML()
{
	var count = arguments.length;
	var html=""; var i;

	html = html + "<%--><p><strong>" + arguments[0] + "</strong></p>";
	
	if (count > 0)
	{
	    html = html+ "<table bgColor='#dddddd' border='0'><tbody>";

	    for (i=1; i < count-1; i+=2) {
		    html = html + "<tr>";
		    html = html + "<td vAlign='top' nowrap>" + arguments[i] + "</td>";
		    html = html + "<td nowrap>" + arguments[i+1] + "</td>";
		    html = html + "</tr>";	
	    }
	
	    html += "</tbody></table>";
	}
	
	html += "<--%>";
	
	return html;
	
}

