var theForm;
var newVal;
var quotes = /"/g;
var msiemac = false;
if ((navigator.userAgent.indexOf('MSIE') != -1)&&(navigator.platform == "MacPPC")) { msiemac = true }

function fixvals() {
// form object
theForm = document.forms[0];
// replace double quotes for single quotes (csv)
if (!msiemac) {
for (var i=0;i<theForm.length;i++) {
	if (theForm[i].type != undefined) {
		newVal = theForm[i].value.replace(quotes,'\'');
		theForm[i].value = newVal;
	}
}
}
else { // if it's IE Mac...
for (var i=0;i<theForm.length;i++) {
	if (theForm[i].type != null) {
		newVal = theForm[i].value.replace(quotes,'\'');
		theForm[i].value = newVal;
	}
}
}
return true
}