/*
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Copyright Info:	Copyright ©1995-2002 IISGroup. All Rights Reserved.
'						These pages may not be used without written permission
'						from the IISGroup.
'						http://www.IISGroup.com
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function hideErrors() {
	return true;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function openWindow(strURL) {
	objWindow = window.open(strURL, "IISGroupWindow")
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function openPopUp(strURL, strWidth, strHeight) {
	var strParams = "titlebar=no,alwaysRaised=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,"
	strParams += "width=" + strWidth + ",height=" + strHeight + ","
	
	if (document.all)
		var xMax = screen.width, yMax = screen.height;
	else
		if (document.layers)
			var xMax = window.outerWidth, yMax = window.outerHeight;
		else
			var xMax = 640, yMax=480;
	var xOffset = (xMax - strWidth)/2, yOffset = (yMax - strHeight)/2;

	strParams += "screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset
	objPopUpWindow = window.open(strURL, "IISGroupWindow", strParams)
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function openAbout(strURL, strWidth, strHeight) {
	var strParams = "titlebar=no,alwaysRaised=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,"
	strParams += "width=" + strWidth + ",height=" + strHeight + ","
	
	if (document.all)
		var xMax = screen.width, yMax = screen.height;
	else
		if (document.layers)
			var xMax = window.outerWidth, yMax = window.outerHeight;
		else
			var xMax = 640, yMax=480;
	var xOffset = (xMax - strWidth)/2, yOffset = (yMax - strHeight)/2;

	strParams += "screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset
	objPopUpWindow = window.open(strURL, "IISGroupWindow", strParams)
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function writeEMailAddr(strTo, strDomain, strType, strSubject) {
	var dteTimeSent = new Date();
	strSubject = escape(strSubject + ' - ' + dteTimeSent);
	document.write('<a href=mailto:' + strTo + '@' + strDomain + '.' + strType + '?Subject=' + strSubject + '>' + strTo + '@' + strDomain + '.' + strType + '</a>')
//	document.write('<a href=mailto:' + strTo + '@' + strDomain + '.' + strType + '>' + strTo + '@' + strDomain + '.' + strType + '</a>')
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function writeNameEMailAddr(strName, strTo, strDomain, strType, strSubject) {
	var dteTimeSent = new Date();
	strSubject = escape(strSubject + ' - ' + dteTimeSent);
	document.write('<a href=mailto:' + strTo + '@' + strDomain + '.' + strType + '?Subject=' + strSubject + '>' + strName + '</a>')
//	document.write('<a href=mailto:' + strTo + '@' + strDomain + '.' + strType + '>' + strTo + '@' + strDomain + '.' + strType + '</a>')
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function MenuInit() {
	if (!document.getElementById) return
	var imgOriginSrc;
	var aryImageHover = new Array();
	var aryImageDown = new Array();
	var aryImageList = document.getElementsByTagName('img');
	for (var i = 0; i < aryImageList.length; i++) {
		if (aryImageList[i].getAttribute('hsrc')) {
			aryImageHover[i] = new Image();
			aryImageHover[i].src = aryImageList[i].getAttribute('hsrc');
			aryImageDown[i] = new Image();
			aryImageDown[i].src = aryImageList[i].getAttribute('dsrc');
			aryImageList[i].onmouseover = function() {
				imgOriginSrc = this.getAttribute('src');
				this.setAttribute('src',this.getAttribute('hsrc'))
			}
			aryImageList[i].onmouseout = function() {
				this.setAttribute('src',imgOriginSrc)
			}
			aryImageList[i].onmousedown = function() {
				this.setAttribute('src',this.getAttribute('dsrc'))
			}
			aryImageList[i].onmouseup = function() {
				this.setAttribute('src',this.getAttribute('hsrc'))
			}
		}
	}
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
window.onerror = hideErrors;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

