
function getCookie(c_name)
	{
	//document.write('it is getting to getCookie()<br>')
	if (document.cookie.length>0)
	  {
	  c_start=document.cookie.indexOf(c_name + "=")
	  if (c_start!=-1)
		{ 
		c_start=c_start + c_name.length+1 
		c_end=document.cookie.indexOf(";",c_start)
		if (c_end==-1) c_end=document.cookie.length
		return unescape(document.cookie.substring(c_start,c_end))
		} 
	  }
	return ""
	}
	
function checkFlashCookie()
	{
	var noflash=getCookie('No_Flash');
	//alert ("Getting here, noflash: " + noflash);
	if (noflash!=null && noflash!="" && noflash!="no")
	  {
	  //alert("view flash: yes");
	  return true
	  }
	else if (noflash=="no")
	  {
	  //alert("view flash: no");
	  return false
	  }
	else
	  {
	  return true
	  }
	  return true;
	}
checkFlashCookie()

function checkError()
	{//1
	var errorMsg = getCookie('FlashError')
	if (errorMsg != null && errorMsg != "")
		{//1.1
		var intIndexOfMatch = errorMsg.indexOf( "+" );
		 
		// Loop over the string value replacing out each matching
		// substring.
		while (intIndexOfMatch != -1)
			{//1.1.1
			// Relace out the current instance.
			errorMsg = errorMsg.replace( "+", " " )
			 
			// Get the index of any next matching substring.
			intIndexOfMatch = errorMsg.indexOf( "+" );
			}//1.1.1
		
		alert(errorMsg)
		//createCookie('FlashError',"",-1);
		//createCookie('FlashError',"",-1);
		}//1.1
	}//1
