function OpenFileForm(textarea)
{
    /**
     * override of {@link Form#provideContent} to provide content of
     * the form
     */
    this.provideContent = function() {
	var d = document.createElement("div");
	var s;
	s    = '<form name="openfileform" id="openfileform" method="post" action="http://arunk.freepgs.com/cmnt/openfile.php"';
	s    += ' enctype="multipart/form-data"';
	s    += ' onsubmit="return AIM.submit(this, {\'onStart\' : startOpenFile, \'onComplete\' : completeOpenFile})">';
	s    += '<table style="overflow:auto;">';
	s    += '<tr>';
	s    += '<td colspan="2"><b>Specify notation file to open:</b>';
	s    += '<tr>';
	s    += '<td><input type="hidden" name="MAX_FILE_SIZE" value="5000">' +
		'<input type="file" name="openfile" id="openfile" size="40">';
	s    += '<td colspan="2">';
	s    += '<tr>';
	s    += '<td colspan="2"><div><center>';
	s    += '<input type="submit" value="&nbsp;OK&nbsp;"> &nbsp;';
	s    += '<input id="openfileform_cancel" name="cancel" type="button" value="Cancel" onclick="OpenFileForm.prototype.cancelHandler()">';
	s    += '</center>';
	s    += '</div>';
	s    += '</table>';
	s    += '</form>';
	d.innerHTML = s;
	d.style.overflow = "auto";
	var form = d.getElementsByTagName("form")[0];
	this.fForm = form;
	Utils.addToIdMap(form, this);
	curOpenFileForm = this;
	return d;
    }

    this.onCancel = function() {
	curOpenFileForm = null;
	this.hide();
    }

    this.fTextArea = textarea;
}
/**
 * @class
 * the import/edit raw contents form
 */
@class
the import/edit raw contents form
@class the import / edit raw contents form
function OpenFileForm(textarea)
{
    this.provideContent = function() {
	var d = document.createElement("div");
	var s;
	s    = '<form name="openfileform" id="openfileform" method="post" action="http://arunk.freepgs.com/cmnt/openfile.php"';
	s    += ' enctype="multipart/form-data"';
	s    += ' onsubmit="return AIM.submit(this, {\'onStart\' : startOpenFile, \'onComplete\' : completeOpenFile})">';
	s    += '<table style="overflow:auto;">';
	s    += '<tr>';
	s    += '<td colspan="2"><b>Specify notation file to open:</b>';
	s    += '<tr>';
	s    += '<td><input type="hidden" name="MAX_FILE_SIZE" value="5000">' +
		'<input type="file" name="openfile" id="openfile" size="40">';
	s    += '<td colspan="2">';
	s    += '<tr>';
	s    += '<td colspan="2"><div><center>';
	s    += '<input type="submit" value="&nbsp;OK&nbsp;"> &nbsp;';
	s    += '<input id="openfileform_cancel" name="cancel" type="button" value="Cancel" onclick="OpenFileForm.prototype.cancelHandler()">';
	s    += '</center>';
	s    += '</div>';
	s    += '</table>';
	s    += '</form>';
	d.innerHTML = s;
	d.style.overflow = "auto";
	var form = d.getElementsByTagName("form")[0];
	this.fForm = form;
	Utils.addToIdMap(form, this);
	curOpenFileForm = this;
	return d;
    }
    this.onCancel = function() {
	curOpenFileForm = null;
	this.hide();
    }
    this.fTextArea = textarea;
}
function OpenFileForm ( textarea ) { this . provideContent = function ( ) { var d = document . createElement ( "div" ) ; var s ; s = '<form name="openfileform" id="openfileform" method="post" action="http://arunk.freepgs.com/cmnt/openfile.php"' ; s += ' enctype="multipart/form-data"' ; s += ' onsubmit="return AIM.submit(this, {\'onStart\' : startOpenFile, \'onComplete\' : completeOpenFile})">' ; s += '<table style="overflow:auto;">' ; s += '<tr>' ; s += '<td colspan="2"><b>Specify notation file to open:</b>' ; s += '<tr>' ; s += '<td><input type="hidden" name="MAX_FILE_SIZE" value="5000">' + '<input type="file" name="openfile" id="openfile" size="40">' ; s += '<td colspan="2">' ; s += '<tr>' ; s += '<td colspan="2"><div><center>' ; s += '<input type="submit" value="&nbsp;OK&nbsp;"> &nbsp;' ; s += '<input id="openfileform_cancel" name="cancel" type="button" value="Cancel" onclick="OpenFileForm.prototype.cancelHandler()">' ; s += '</center>' ; s += '</div>' ; s += '</table>' ; s += '</form>' ; d . innerHTML = s ; d . style . overflow = "auto" ; var form = d . getElementsByTagName ( "form" ) [ 0 ] ; this . fForm = form ; Utils . addToIdMap ( form , this ) ; curOpenFileForm = this ; return d ; } this . onCancel = function ( ) { curOpenFileForm = null ; this . hide ( ) ; } this . fTextArea = textarea ; }
@class
 the import/edit raw contents form
@class the import / edit raw contents form
/**
     * override of {@link Form#provideContent} to provide content of
     * the form
     */