// JavaScript Document
function revealModal(msg) {
	window.onscroll = function () { document.getElementById(divID).style.top = document.body.scrollTop; };
	//document.getElementById('modelMsgBlock').innerHTML = msg;

	if (!document.layers && !document.all) {
		try {
			document.getElementById ('modelMsgBlock').innerHTML = msg;
		  }
		catch(err) {
		  alert(msg);
		  }
		}
	else {
		if (document.layers) {
			document.layers.modelMsgBlock.document.write(msg);
			document.layers.modelMsgBlock.document.close();
			}
		else if (document.all) {
			//modelMsgBlock.innerHTML = msg;
			document.getElementById ('modelMsgBlock').firstChild.data = msg;
			}
		}
	document.getElementById('modalPage').style.display = "block";
	document.getElementById('modalPage').style.top = document.body.scrollTop;
}

function hideModal() {
	document.getElementById('modalPage').style.display = "none";
	}


// ' var myArray = new Array();
// myArray['one'] = 1;
// myArray['two'] = 2;
// myArray['three'] = 3;
// 
// / show the values stored
// for (var i in myArray) {
// 	alert('key is: ' + i + ', value is: ' + myArray[i]);
// }

function mySimpleDropdownDlg(msg, listItems) {
	window.onscroll = function () { document.getElementById(divID).style.top = document.body.scrollTop; };
	//document.getElementById('modelMsgBlock').innerHTML = msg;

	if (!document.layers && !document.all) {
		try {
			document.getElementById ('modelMsgBlock').innerHTML = msg;
		  }
		catch(err) {
		  alert(msg);
		  }
		}
	else {
		if (document.layers) {

			 for (var i in listItems) {
			 	msg=msg+'key is: ' + i + ', value is: ' + listItems[i] + ' -- ';
			 }


			document.layers.modelMsgBlock.document.write(msg);
			document.layers.modelMsgBlock.document.close();
			}
		else if (document.all) {
			//modelMsgBlock.innerHTML = msg;
			document.getElementById ('modelMsgBlock').firstChild.data = msg;
			}
		}
	document.getElementById('modalPage').style.display = "block";
	document.getElementById('modalPage').style.top = document.body.scrollTop;
	}
