function newWindow(url)
{
 window.open(url,'HelpWindow','scrollbars=no,resizable=no,toolbar=no,height=300,width=400');
}

function promptID($forwardTo){
$umcID = prompt("Please Enter the Patients UMC#.","");
	if($umcID == null)
		{return ;}
	if($umcID == 0)
		{alert("No Patient ID entered. Admit Cancled");} 
	else
		{location.href=$forwardTo+ '?ID='+$umcID;}
}

function confirmLogout()
{
var out = confirm('Are you sure you want to log out?');
if(out)
	location.href = 'logging.php?action=logout'
else
	return false;
}

function confirmDelete()
{
var out = confirm('Are you sure you want to delete \nthe selected client(s)?');
if(out)
	return true;
else
	return false;
}


function getPassword()
{
	if($pass = prompt("Please enter your password", ""))
	{
	document.form1.hidPass.value = $pass;
	return true;
	}
	else
	{return false;}
}


