// JavaScript Document
	/* --------------------------------------------------------------------------------------
	   --  This function checks if the flash plugin is installed in the system or not. It  --
	   --  returns true if it is installed and false otherwise.                            --
   	   --------------------------------------------------------------------------------------
	*/
	function checkFlash(i) // i is the version of the flash we are going to check
	{
		var x,y,e;
		if (navigator.plugins && navigator.plugins.length)
		{
			x = navigator.plugins["Shockwave Flash"];
			if (x)
			{
				if (x.description)
				{
					y = x.description;
					if (parseInt(y.charAt(y.indexOf('.')-1))>=parseInt(i))
						return true;
				}
				return false;
			}
		}
		else
		{
			try
			{
				var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
				return true;
			}
			catch(e)
			{
				return false;
			}
		}
	} // end function
	// --------------------------------------------------------------------------------------
	function showFlash(flash,width,height,version,instead,alt,dir)
	{
		if (checkFlash(version))
		{
			document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
			document.write("<param name='movie' value='"+flash+"'>");
			document.write("<param name='quality' value='high'>");
			document.write("<embed src='"+flash+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>");
			document.write("</object>");
		}
		else
			document.write("<a href='http://www.macromedia.com/go/getflashplayer' style='direction:"+dir+"' title='"+alt+"' target='_blank'><img src='"+instead+"' style='direction:"+dir+"' alt='"+alt+"' border=0 width="+width+" height="+height+"></a>");
	}
	// --------------------------------------------------------------------------------------
	// general purpose function to see if a suspected numeric input
	// is a positive or negative number
	function isNumber(inputVal) {
	oneDecimal = false
	inputStr = inputVal.toString()
	for (var i = 0; i < inputStr.length; i++) {
	var oneChar = inputStr.charAt(i)
	if (i == 0 && oneChar == "-") {
	continue
	}
	if (oneChar == "." && !oneDecimal) {
	oneDecimal = true
	continue
	}
	if (oneChar < "0" || oneChar > "9") {
	return false
	}
	}
	return true
	}
	// --------------------------------------------------------------------------------------
	// general purpose function to see if a suspected numeric input
	// is a positive or negative integer
	function isInteger(inputVal) {
	inputStr = inputVal.toString()
	for (var i = 0; i < inputStr.length; i++) {
	var oneChar = inputStr.charAt(i)
	if (i == 0 && oneChar == "-") {
	continue
	}
	if (oneChar < "0" || oneChar > "9") {
	return false
	}
	}
	return true
	}
	// --------------------------------------------------------------------------------------
	function isEmail(email) {
	
	// Note: The next expression must be all on one line...
	//       allow no spaces, linefeeds, or carriage returns!
	return email.match(/\b(^(\S+@).+((\.com)|(\.biz)|(\.info)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
	//return true;

	}
	// --------------------------------------------------------------------------------------
	function toggle_show_hide(s_id)
	{
		if (s_id!="")
		{
			if (document.getElementById)
			{
				var x = document.getElementById(s_id);
				if (x)
					if (x.style)
						if (x.style.display)
							x.style.display = (x.style.display=="none")?"block":"none";
			}
		}
	}
	// --------------------------------------------------------------------------------------