// Distributed Digital Library of Chant Manuscript Images, JavaScript
//  for the NEUMES Project website.
// Copyright 2006, Louis W. G. Barton
// Version: 24 November 2006

function showLogin(mode) {
// Called by user click on 'modify record' or 'close'.
	var divObj=null;  // temp handle
	var divObj_style=null;  // style property of the <div> object

	// Do 'modify' msg:
	if(document.getElementById) {  // Level 1 DOM
		divObj=document.getElementById('modify');
		if(null != divObj) {
			divObj_style=divObj.style;
		}
	} else if(document.all) {  // IE4 model
		divObj=document.all['modify'];
		if(null != divObj) {
			divObj_style=divObj.style;
		}
	} else if(document.layers) {  // NS4 model
		divObj=document.layers['modify'];
		if(null != divObj) {
			divObj_style=divObj;
		}
	}  //end, if/else browser model
	if(null != divObj_style) {
		if (mode == 'show') {
			divObj_style.visibility='hidden';
		} else {
			divObj_style.visibility='visible';
		}  //end if/else
	}  //end, modify

	// Do 'loginBlock':
	divObj=null;  // re-init
	divObj_style=null;  // re-init
	if(document.getElementById) {  // Level 1 DOM
		divObj=document.getElementById('loginBlock');
		if(null != divObj) {
			divObj_style=divObj.style;
		}
	} else if(document.all) {  // IE4 model
		divObj=document.all['loginBlock'];
		if(null != divObj) {
			divObj_style=divObj.style;
		}
	} else if(document.layers) {  // NS4 model
		divObj=document.layers['loginBlock'];
		if(null != divObj) {
			divObj_style=divObj;
		}
	}  //end, if/else browser model
	if(null != divObj_style) {
		if (mode == 'show') {
			divObj_style.display='block';
		} else {
			divObj_style.display='none';
		}  //end if/else
	}  //end, loginBlock

	return true;
}  //end, showLogin()

//[end, ddl_login.js]
