<!--
//-/-// //-/-// //-/-// //-/-// //-/-// //-/-// //-/-// //-/-// //-/-// 
//-/-// 							//-/-// 
//-/-// 	Global Parse - Version 1.0			//-/-// 
//-/-// 		Copyright: 2001				//-/-// 
//-/-// 		Author: C, Drew Breder			//-/-// 
//-/-// 		Contact: www.simonband.com/port/	//-/-// 
//-/-// 			 webmaster@simonband.com	//-/-// 
//-/-// 							//-/-// 
//-/-// //-/-// //-/-// //-/-// //-/-// //-/-// //-/-// //-/-// //-/-// 

function globalParse(globalVar,globalEnterSwitch)
	{
	var globalQueryString = location.search.substring(1);
	var globalQueryStringArray = globalQueryString.split('&');
	var globalNumberOfVar = globalQueryStringArray.length;
	for(var i = 0; i < globalNumberOfVar; i++)
		{
		var globalQueryStringArraySub = globalQueryStringArray[i].split('=');
		var globalFormName = globalQueryStringArraySub[0];
		var globalFormValue = globalQueryStringArraySub[1];
		if (globalVar == globalFormName)
			{
			var globleFoundIt;
			if (globalEnterSwitch == '0')
				{
				globalFormValue = globalFormValue.replace(/%0D%0A/g, ' ');	// Enter
				globalFormValue = globalFormValue.replace(/%0D/g, ' ');		// Enter
				globalFormValue = globalFormValue.replace(/%0A/g, ' ');		// Enter
				}
			else if (globalEnterSwitch == '1')
				{
				globalFormValue = globalFormValue.replace(/%0D%0A/g, '\r');	// Enter
				globalFormValue = globalFormValue.replace(/%0D/g, '\r');	// Enter
				globalFormValue = globalFormValue.replace(/%0A/g, '\r');	// Enter
				}
			else if (globalEnterSwitch == '2')
				{
				globalFormValue = globalFormValue.replace(/%0D%0A/g, '<br>');	// Enter
				globalFormValue = globalFormValue.replace(/%0D/g, '<br>');	// Enter
				globalFormValue = globalFormValue.replace(/%0A/g, '<br>');	// Enter
				}
			else
				{
				globalFormValue = globalFormValue.replace(/%0D%0A/g, ' ');	// Enter
				globalFormValue = globalFormValue.replace(/%0D/g, ' ');		// Enter
				globalFormValue = globalFormValue.replace(/%0A/g, ' ');		// Enter
				}
			globalFormValue = globalFormValue.replace(/%09/g, ' ');			// Tab
			globalFormValue = globalFormValue.replace(/%27/g, "'");			// Single Quote
			globalFormValue = globalFormValue.replace(/%5C/g, '\\');		// One Back Slash
			globalFormValue = globalFormValue.replace(/\+/g, ' ');			// Space
			globalFormValue = globalFormValue.replace(/%20/g, ' ');
			globalFormValue = globalFormValue.replace(/%60/g, '`');
			globalFormValue = globalFormValue.replace(/%7E/g, '~');
			globalFormValue = globalFormValue.replace(/%21/g, '!');
			globalFormValue = globalFormValue.replace(/%23/g, '#');
			globalFormValue = globalFormValue.replace(/%24/g, '$');
			globalFormValue = globalFormValue.replace(/%25/g, '%');
			globalFormValue = globalFormValue.replace(/%5E/g, '^');
			globalFormValue = globalFormValue.replace(/%26/g, '&');
			globalFormValue = globalFormValue.replace(/%28/g, '(');
			globalFormValue = globalFormValue.replace(/%29/g, ')');
			globalFormValue = globalFormValue.replace(/%3D/g, '=');
			globalFormValue = globalFormValue.replace(/%2B/g, '+');
			globalFormValue = globalFormValue.replace(/%5B/g, '[');
			globalFormValue = globalFormValue.replace(/%7B/g, '{');
			globalFormValue = globalFormValue.replace(/%5D/g, ']');
			globalFormValue = globalFormValue.replace(/%7D/g, '}');
			globalFormValue = globalFormValue.replace(/%7C/g, '|');
			globalFormValue = globalFormValue.replace(/%3B/g, ';');
			globalFormValue = globalFormValue.replace(/%3A/g, ':');
			globalFormValue = globalFormValue.replace(/%22/g, '"');
			globalFormValue = globalFormValue.replace(/%2C/g, ',');
			globalFormValue = globalFormValue.replace(/%2F/g, '/');
			globalFormValue = globalFormValue.replace(/%3C/g, '<');
			globalFormValue = globalFormValue.replace(/%3E/g, '>');
			globalFormValue = globalFormValue.replace(/%3F/g, '?');
			globalVar = globalFormValue;
			return globalVar;
			break;
			}
		}
	if (!globleFoundIt)
		{
//		alert('The property name of form field "' + globalVar + '" was not found in query string.\r\r\tPlease check spelling of the form field and\r\thave it match the display script.\r\rPlease report all other errors to webmaster\@simonband.com.');
		globalVar = '';
		return globalVar;
		}
	}
//-->