//********************************************************************************************
// Method:	ShowXHMTL
// Author:	Erik Mau
// Date:	10/16/2001
//********************************************************************************************
function ShowXHMTL()
{
	if (document.location.href.indexOf('?') != -1)
	{
		window.open(document.location.href + '&validate=1');
	}
	else
	{
		window.open(document.location.href + '?validate=1');
	}
}

/**********************************
     Generic Global Variables
**********************************/
var Ver4 = parseInt(navigator.appVersion) >= 4
var Nav4 = ((navigator.appName == "Netscape") && Ver4)	
var IE4 = ((navigator.userAgent.indexOf("MSIE") != -1) && Ver4)
var g_blnClicked = false;
/********************************************************************************/
/********************************************************************************/
function SetColor(color, ColorName)
{
	
	var strName, strHex, lyr;
	
	if (color != 'undefined')
	{
		strName = color.substring(color.indexOf('|') + 1, color.length);
		strHex = color.substring(0, color.indexOf('|'));
		//alert (strName)
		//alert (strHex)
		//alert (ColorName)
		if (strName == '')
		{
						
			//eval('document.frm.HexColorVal' + id + '.value=""');
			//eval('document.frm.' + strHex + '.value=""');
			eval('document.frm.' + ColorName + '.value=""');
			
			
						
			if (IE4)
			{
				eval('document.all.CoverColor.style.backgroundColor="#FFFFFF"');
			}
			else
			{
			
				lyr = eval('document.layers["CoverColor"]');
				lyr.document.bgColor = "#FFFFFF";
				lyr.document.backgroundColor = "#FFFFFF";
			}			
		}
		else
		{
			//eval('document.frm.HexColorVal' + id + '.value="' + strName + '"');
			if (ColorName == '') {
			
			} else {
				eval('document.frm.' + ColorName + '.value="' + strName + '"');
			}
			if (IE4)
			{
				eval('document.all.CoverColor.style.backgroundColor="#' + strHex + '"');
			}
			else
			{
				lyr = eval('document.layers["CoverColor"]');
				lyr.document.bgColor = strName
				lyr.document.backgroundColor = strName
			}
		}
	}
	/*UpdateHiddenValue('True','hdnGenerate');*/
}

//--------------------------------------------------
	// NAME:	validInput
	// DESC: 	Returns false if the form field object
	//			passed to it is empty, returns true if
	//			it contains non-space input.
	// PARAMS:	textObj- A text input field object
	//--------------------------------------------------
	function validInput(textObj)
	{
		var retval = false;
		
		for (var i=0; i < textObj.value.length; i++)
		{
			if (textObj.value.substring(i, i + 1) != " ")
			{
				retval = true;
				break;
			}
		}  
		return retval;
	}
//------------------------------------------------------
		// NAME:	isChecked
		// DESC: 	Checks to see if a radio or checkbox is
		//			checked in a radio or checkbox selection
		//			object. Returns true if at least one is
		//			checked, false otherwise. (This function
		//			does not access the check group elements
		//			using the length property due to an in-
		//			compatibility in MSIE 3.x.)
		// PARAMS:	form - the form object containing the
		//			checkbox elements.
		//			objName - The name string of the checkbox
		//			object.
		//------------------------------------------------------
		function isChecked(objName, form)
		{
			var retval = false;
			for(i = 0; i < form.elements.length; i++)
			{
				if (form.elements[i].name == objName)
				{
					if (form.elements[i].checked == true)
					{
						retval = true;
						break;
					}
				}
			}
			
			return retval;
			
		}// end isChecked

