function hidePopUp(strId) {
	if ( document.layers ) {
		obj = document.layers.strId;
	}
	else {
		obj = document.getElementById(strId)
	}
	obj.style.visibility = 'hidden';
}

function showPopUp(strId) {
	if ( document.layers ) {
		obj = document.layers.strId;
	}
	else {
		obj = document.getElementById(strId)
	}
	obj.style.visibility = 'visible';
}

function buildPopUp(strId, strContent, iLeft, iTop, iWidth) {
	var strReturn = 	'<div ID="'+strId+'" STYLE="position:absolute; left:'+iLeft+'px; top:'+iTop+'px; z-index:3; visibility: hidden;">'+
				 	'<table WIDTH="'+iWidth+'" BORDER="0" CELLPADDING="3" CELLSPACING="1" bgcolor="#0E4EA1">'+
					'<tr>'+
						'<td width="100%" bgcolor="#FFFFFF" class="popUp">'+strContent+'</td>'+
					'</tr>'+
					'</table>'+
					'</div>';
	
	document.write(strReturn);
}
