rem: if (obj.validateUnique.indexOf('|'+obj.value+'|') > -1) 
add: needle = obj.value.toLowerCase(); haystack = obj.validateUnique.toLowerCase();  if (haystack.indexOf('|'+needle+'|') > -1) 
context: function phpAds_formUpdate(obj){	err = false;	val = obj.value;		if ((val == '' || val == '-' || val == 'http://') && obj.validateReq == true)		err = true;		if (err == false && val != '')	{		if (obj.validateCheck == 'url' &&			val.indexOf('http://') != 0)			err = true;					if (obj.validateCheck == 'email' && 			(val.indexOf('@') < 1 || val.indexOf('@') == (val.length - 1)))			err = true;				if (obj.validateCheck == 'number*' &&			(isNaN(val) && val != '*' || val < 0))			err = true;		if (obj.validateCheck == 'number+' &&			(isNaN(val) && val != '-'  || val < 0))			err = true;				if (obj.validateCheck == 'unique')		{			if (obj.validateUnique.indexOf('|'+obj.value+'|') > -1)				err = true;		}	}		// Change class	if (err)		obj.className='error';	else		obj.className='flat';		return (err);}
meta: 2849	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2849/5e8ae8942a94880f9c834eb7e614ed6bb38eddf9/interface.js/buggy/admin/interface.js