(HTFormAcceptCharset ? HTFormAcceptCharset : ""));
(HTFormAcceptCharset ? HTFormAcceptCharset : "")));
PUBLIC void HText_beginForm ARGS5(	char *,		action,	char *,		method,	char *,		enctype,	char *,		title,	CONST char *,	accept_cs){    PerFormInfo * newform;    HTFormMethod = URL_GET_METHOD;    HTFormNumber++;    HTFormFields = 0;    HTFormDisabled = FALSE;    /*     *  Check the ACTION. - FM     */    if (action != NULL) {	if (!strncmp(action, "mailto:", 7)) {	    HTFormMethod = URL_MAIL_METHOD;	}	StrAllocCopy(HTFormAction, action);    }    else	StrAllocCopy(HTFormAction, HTLoadedDocumentURL());    /*     *  Check the METHOD. - FM     */    if (method != NULL && HTFormMethod != URL_MAIL_METHOD)	if (!strcasecomp(method,"post") || !strcasecomp(method,"pget"))	    HTFormMethod = URL_POST_METHOD;    /*     *  Check the ENCTYPE. - FM     */    if ((enctype != NULL) && *enctype) {	StrAllocCopy(HTFormEnctype, enctype);	if (HTFormMethod != URL_MAIL_METHOD &&	    !strncasecomp(enctype, "multipart/form-data", 19))	    HTFormMethod = URL_POST_METHOD;    } else {	FREE(HTFormEnctype);    }    /*     *  Check the TITLE. - FM     */    if ((title != NULL) && *title)	StrAllocCopy(HTFormTitle, title);    else	FREE(HTFormTitle);    /*     *  Check for an ACCEPT_CHARSET.  If present, store it and     *  convert to lowercase and collapse spaces. - kw     */    if (accept_cs != NULL) {	StrAllocCopy(HTFormAcceptCharset, accept_cs);	LYRemoveBlanks(HTFormAcceptCharset);	LYLowerCase(HTFormAcceptCharset);    }    /*     *  Create a new "PerFormInfo" structure to hold info on the current     *  form.  The HTForm* variables could all migrate there, currently     *  this isn't done (yet?) but it might be less confusing.     *  Currently the only data saved in this structure that will actually     *  be used is the accept_cs string.     *  This will be appended to the forms list kept by the HText object     *  if and when we reach a HText_endForm. - kw     */    newform = (PerFormInfo *)calloc(1, sizeof(PerFormInfo));    if (newform == NULL)	outofmem(__FILE__,"HText_beginForm");    newform->number = HTFormNumber;    PerFormInfo_free(HTCurrentForm); /* shouldn't happen here - kw */    HTCurrentForm = newform;    CTRACE(tfp, "BeginForm: action:%s Method:%d%s%s%s%s%s%s\n",		HTFormAction, HTFormMethod,		(HTFormTitle ? " Title:" : ""),		(HTFormTitle ? HTFormTitle : ""),		(HTFormEnctype ? " Enctype:" : ""),		(HTFormEnctype ? HTFormEnctype : ""),		(HTFormAcceptCharset ? " Accept-charset:" : ""),		(HTFormAcceptCharset ? HTFormAcceptCharset : ""));}