//navigator.platform
function correctFieldHeight(fieldId) {
	var height = 20;
	var el = document.getElementById(fieldId);
	var elType = el.nodeName.toLowerCase();
	if (navigator.appName == 'Konqueror') {
		el.style.height = height+'px';
	}
	if (navigator.appName == 'Opera') {
		if (elType == 'input') {
			el.style.height = height+'px';
		} else if (elType == 'select') {
			el.style.height = (height-2)+'px';
		}
	}
}
function setWidth(fieldId,width) {
	var el = document.getElementById(fieldId);
	var elType = el.nodeName.toLowerCase();
	if (navigator.appName == 'Netscape') {
		if (isInputSubmit(el)) {
			el.style.width = (width+(isAdjacentInputSubmit(el)?0:2))+'px';
		}
	} else if (navigator.appName == 'Microsoft Internet Explorer') {
		if (isInputSubmit(el)) {
			el.style.width = (width+(isAdjacentInputSubmit(el)?0:4))+'px';
		}
	}
}
function isAdjacentInputSubmit(el) {
	var prev = el.previousSibling;
	testNest:
	while (prev != null) {
		if (isInputSubmit(prev)) {
			return true;
		} else if (prev.nodeName.toLowerCase() == '#text') {
			prev = prev.previousSibling;
		} else {
			break;
		}
	}
	return false;
}
function isInputSubmit(el) {
	return el.nodeName.toLowerCase() == 'input' && el.type == 'submit';
}
