I'm trying to debug this function in Firefox/Firebug and it says that "dbasedata.remove" is not a function??
function dbasetype(){
var dbasedata = document.forms[0]._dbase_name.value;
dbasedata = dbasedata.toUpperCase();
dbasedata = dbasedata.replace(/\s/g, "");
dbasedata = dbasedata.remove("UK_CONTACTS","");
if (dbasedata != "") {
_area.value = _dbase_name.value;
} }
replace().replace(). If you replace something with an empty string it's effectively removing it. Or if all you want is to check if it has some specific value, just test for it directly:if( dbasedata == "UK_CONTACTS" ) ...