<html><head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta charset="utf-8">
		<script type="text/javascript" src="../../ClientGlobalContext.js.aspx"></script>
		<script type="text/javascript" src="../JScript/SDK.REST.js"></script>
		<script src="..\JScript\jquery.1.11.min.js" type="text/javascript"></script>
		<script src="..\Veteran\JScript\charts.js" type="text/javascript"></script>
		<style>
		body
		{
			font-family: Segoe UI,Tahoma,Arial;
		}
		.sidebar
		{
			background-color:#002050;
			width:8%;
			height:100%;
			position:fixed;
			left: 0;
			top:0;
		}
		.button{
			margin-left:5%;
			margin-top:5%;
			width:90%;
			height:6%;
			font-family: 'Segoe UI';
			cursor: pointer;
		}
		.frame
		{
			display: none;
			position:fixed;
			right: 0;
			top: 0;
			width:92%;
			height: 100%;
		}
		.iframe{
			width:100%;
			height:95%;
			position: absolute;
			top: 1%;
			border: none;
		}
		#loadingGifDiv
		{
			background-color: rgba(255,255,255,.8);
			font-size: 15px;
			margin-left:8%;
			z-index: 1010;
			width: 92%;
			height:100%;
			position: fixed;
			display: none;
			cursor: wait;
		}
		#errorContainer
		{
			display: none;
		}
		#errorHeaderTitle
		{
			color: red;
		}
		</style>
		<script>
			function createCRMAddendum(pMessageContent){
				if(!!pMessageContent){
					//if(pMessageContent.origin = "notesFrameNewAddendum"){
						//alert("got addendum message from notes frame: " + pMessageContent.data);
						
						
						//TODO: open new ftp_addendum form
						//this will be routed by USD to an 'Addendum' tab.
					/*}
					else{
						writeToConsole("message of unknown origin:");
						writeToConsole(pMessageContent);
					}*/
					var context = (typeof GetGlobalContext != "undefined") ? GetGlobalContext() : null;
					var clientUrl = context.getClientUrl();
					var newAddendumUrl = clientUrl + "/main.aspx?etn=ftp_addendum&pagetype=entityrecord";
					var extraQs = "ftp_vistanoteid=" + pMessageContent.data;
				}
				else{
					alert("message content is empty");
				}
			}
			
			function writeToConsole(message) {
				if (typeof console != 'undefined') console.log(message);
			}
		</script>
	</head>
	<body>
		<div align="middle" id="loadingGifDiv">
			<table width="100%" height="100%">
				<tbody><tr>
					<td align="middle">
						<img id="progressImg" alt="" src="/_imgs/advfind/progress.gif">
						<div>
						<p id="progressText">Loading chart...</p>
					</div></td>
				</tr>
			</tbody></table>
		</div>
		<div id="errorContainer">
			<div id="error_tdDialogHeader">
				<div id="errorHeaderTitle"></div>
				<div id="errorHeaderDescription"></div>
				<div id="errorButtonContainer">
					<!-- <br/>
					<label>Click OK to end this session</label>
					<button tabindex="1" class="ms-crm-RefreshDialog-Button" id="btn_errorOK" style="margin-left: 8px;" onclick="btn_errorOK_click()" type="button">OK</button> -->
				</div>
			</div>
		</div>
		<div class="sidebar" id="sidebar">
			<!--buttons-->
			<button class="button" id="svcUrl" title="SC Disabilities" value="">SC Disabilities</button><br>
			<button class="button" id="ftp_ProblemChartURL" title="Problems" value="">Problems</button><br>
			<button class="button" id="ftp_NoteChartURL" title="Notes" value="">Notes</button><br>
			<button class="button" id="ftp_OrderChartURL" title="Orders" value="">Orders</button><br>
			<button class="button" id="ftp_AppointmentChartURL" title="Appointments" value="">Appointments</button><br>
			<button class="button" id="ftp_MedicationsChartURL" title="Medications" value="">Medications</button><br>
			<button class="button" id="ftp_PostingChartURL" title="Postings" value="">Postings</button><br>
			<button class="button" id="ftp_AllergyChartURL" title="Allergies" value="">Allergies</button><br>
			<button class="button" id="ftp_LabChartURL" title="Labs" value="">Labs</button><br>
			<button class="button" id="ftp_ConsultChartURL" title="Consults" value="">Consults</button><br>
			<button class="button" id="ftp_NonVAChartURL" title="Non-VA Meds" value="">Non-VA Meds</button><br>
			<button class="button" id="ftp_VitalsChartURL" title="Vitals" value="">Vitals</button><br>
			<button class="button" id="ftp_RadiologyChartURL" title="Imaging" value="">Imaging</button><br>
			<button class="button" id="ftp_DischargeURL" title="Discharges" value="">Discharges</button><br>
		</div>
		<div class="frame" id="framediv">
			<iframe title="IFrame placeholder" class="iframe" id="displayframe"></iframe>
		</div>
	
</body></html>