<!--
function blockError(){return true;}
window.onerror = blockError;

function replaceChars(entry) 
{
	out = " "; // replace this
	add = "_"; // with this
	temp = "" + entry; // temporary holder

	while (temp.indexOf(out)>-1) 
	{
		pos= temp.indexOf(out);
		temp = "" + (temp.substring(0, pos) + add + 
		temp.substring((pos + out.length), temp.length));
	}

	var temp2 = "";
	for (i=0; i<temp.length; i++)
	{
		var match = /[^0-9^a-z^A-Z^_]/.test(temp.charAt(i));
		if (!match)
		{
			temp2 = temp2+temp.charAt(i);
		}

	}

	if (temp2.length<4)
	{
		temp2 = temp2+'____';
	}

return temp2;
//	return temp;
}

function updateRef()
{
	$("txtMerchantReference").value = replaceChars($('your_name').value);
	if ($('Variable6').value != $('Variable18').value)
	{
		//alert('Email Addresses Do Not Match!');
		return false;
	}
	return true;
	
}
function checkEmail()
{
	if ($('email').value != $('email_confirm').value)
	{
		//alert('Email Addresses Do Not Match!');
		return false;
	}
	return true;
	
}
// -->