﻿// JScript File
// Used to remove HTML tags from textfields.
// In 4 places I had to add the script code directly. PhotoAlbum.ascx, Login.ascx, TipAFriend.ascx and SearchMembers.aspx 
function RemoveHTML(Field)
{
	var regEx = new RegExp("<|%3C|>|%22|%3E|%2F|%3c|%3e|%2f/","g");
	if (regEx.exec(Field.value) != null) 
	{
		alert("\r\nTecken som < och > är ej tillåtna. \r\nDessa har plockats bort."); 
	} 
	Field.value = Field.value.replace(regEx, "");
}


