function addslashes(str) {
	str=str.replace(/\\/g,'\\\\');
	str=str.replace(/\'/g,'\\\'');
	str=str.replace(/\"/g,'\\"');
	str=str.replace(/\0/g,'\\0');

	return str;
}

var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5);

function pwMinLen(obj,min){
	if (obj.value.length<min) alert('Password must be at least '+min+' characters');
}

function openNewWindow(URLtoOpen, windowName, windowFeatures)  {
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}
