function doSpellCheck(form, field) {
	// Make sure not empty
	if (field.value == '') {
		return false;
	}
	form.notes.value = field.value;
	// Init
	var windowName='spellWindow';
	var spellCheckURL='spell/spell.cfm?formname='+form.name+'&fieldname='+field.name;
	
	// Save action, method, and target
	var formAction=form.action;
	var formMethod=form.method;
	var formTarget=form.target;

	// Open spell check window
	 width=450;
	 height=225;
	
	 x = (1024 - width)/2;
     y = (768 - height)/2;
     if (screen) {
         y = Math.floor((screen.availHeight - height)/2);
         x = Math.floor((screen.availWidth - width)/2) - 10;
     }
		
	msgWindow=window.open('',windowName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no;resizable=no, width=' + width + ',height=' + height + ',top='+ y +',left='+ x +',screenX=' + x + ',screenY=' + y);

	// Change form to post to new window
	form.action=spellCheckURL;
	form.method='POST';
	form.target=windowName;
	
	// Force a submit
	form.submit();

	// And restore form settings
	form.action=formAction;
	form.method=formMethod;
	form.target=formTarget;

	// Done
	
	field.value = form.notes.value;
	return false;
}

 
