var rurl = window.location.pathname;

document.write('<div id="DhtmlLogin">');
document.write('<form action="/account/login/" method="post" name="DhtmlForm">');
document.write('<input name="mode" value="AUTH" type="hidden">');
document.write('<input name="rurl" value="'+rurl+'" type="hidden">');
document.write('<div class="Element">');
document.write('<div class="Label">Username:</div>');
document.write('<div class="Input"><input name="user_id" value="" size="20" maxlength="50" class="Field" type="text"></div>');
document.write('</div>');
document.write('<div class="Element">');
document.write('<div class="Label">Password:</div>');
document.write('<div class="Input"><input name="pwd" value="" size="20" maxlength="50" class="Field" type="password"></div>');
document.write('<input src="/images/go_search.gif" class="Button" type="image">');
document.write('</div>');
document.write('</form>');
document.write('Forgot your user ID or password?<br><a href="https://ai.omeda.com/cgi-win/chwk.cgi?m=idpassword&amp;s=cw">Click here</a> to have it sent to you.');
document.write('</div>');


var DhtmlLogin = document.getElementById('DhtmlLogin');

function toggleLogin()
{
	var logindiv = document.getElementById('logindiv');
	DhtmlLogin.style.display = DhtmlLogin.style.display=='block' ? 'none' : 'block';
	DhtmlLogin.style.left = (logindiv.offsetLeft+logindiv.offsetWidth)-DhtmlLogin.offsetWidth+2+'px'; // allows 2px for width of border
	document.DhtmlForm.user_id.focus();
}

function closeLogin()
{
	DhtmlLogin.style.display = 'none';
}




