
function closeWindow()
{
window.open('','_self','');
window.close();
}  
 
function showSplash(strPageLoading)
{
	document.write ("<div id='splashScreen'>");
		document.write ("<p>" + strPageLoading + "</p>");
		document.write ("<img src='/train_ani.gif' width='96' height='45' />");
	document.write ("</div>");
} 

  
function hideSplash()
{  
  document.getElementById("splashScreen").parentNode.removeChild(document.getElementById("splashScreen"));
}

function showPatient(pID, tID)
{
		myWin = window.open("patientAbstract.asp?pID=" + pID + "\&tID=" + tID, tID,
		"toolbar=no, location=no,directories=no,status=yes," +
		"menubar=no,scrollbars=yes, resizable=yes," +
		"width=600, height=680" );
		myWin.focus();
}

function showDiv(seq)
{
		var tempImg = document.getElementById("img_" + seq);
		var tempDiv = document.getElementById("div_" + seq);

		if (tempDiv.style.display != "block") {
			tempDiv.style.display = "block";
			tempImg.src = "/images/minus.gif"
			tempDiv.focus();
		}
		else{
			tempDiv.style.display = "none";
			tempImg.src = "/images/plus.gif";
		}
}

function validateDates()
{
		if (!checkDate(document.getElementById("dosstartDate"))) return false;
		if (!checkDate(document.getElementById("dosendDate"))) return false;
		if (!checkDate(document.getElementById("uploadstartDate"))) return false;
		if (!checkDate(document.getElementById("uploadendDate"))) return false;
		if (!checkDate(document.getElementById("dobstartDate"))) return false;
		if (!checkDate(document.getElementById("dobendDate"))) return false;
		return true;
}