<HTML><HEAD>
<TITLE>MVD Add/Edit Entry Form</TITLE>

<script language="Javascript">
<!--

function insertag(tform) {

var seltag = tform.tags.selectedIndex;
var text = tform.tags.options[seltag].text;

parent.frames[1].document.open();
parent.frames[1].document.writeln('<body bgcolor=white> <center> <h2> ' + text + ' Wizard </h2> </center>');

if (text == "Centering") { 
  parent.frames[1].document.writeln('<p> <form>Start of Centering:<br><input type=text size=8 name=start value="<CENTER>"><p>' +
  'Centered Text:<br><input type=text size=40 name=text value="This line will be centered."><p>' + 
  'End of Centering:<br><input type=text size=9 name=end value="</CENTER>"><p>' +
  '<input type=button value=Submit onclick=parent.frames[0].maketag(forms[0].start.value,forms[0].text.value,forms[0].end.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the <i>Start of Centering</i> and <i>End of Centering</i> tags and fill in the text later in the main form, in which case you would clear out the <i>Centered Text</i> field. Also you may want to insert just one tag or the other, in which case you would clear out the other two fields. For example you might insert just the <i>Start of Centering</i> tag and then continue on filling in the main form and then come back to insert the <i>End of Centering</i> tag later. Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Font") { 
  parent.frames[1].document.writeln('<p> <form>Size: <font size=1>From smaller to largest: 1 - 7 </font><br><input type=text size=2 name=fontsize><p>' +
  'Color:<font size=1>as either a predefined common name, such as red;blue;green etc., or a hexadecimal number representing the RGB values.*</font><br><input type=text size=10 name=fontcolor><p>' +
  'New Font Text:<br><input type=text size=40 name=fonttext value="This text will have a new font."><p>' +
  'End of Font<br><input type=text size=7 name=endfont value="</FONT>"><p>' + 
  '<input type=button value=Submit onclick=parent.frames[0].makefonttag(forms[0].fontsize.value,forms[0].fontcolor.value,forms[0].fonttext.value,forms[0].endfont.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the Font tags and fill in the text later in the main form, in which case you would clear out the <i>New Font Text</i> field. Also you may want to insert just one tag or the other, the <i>Start New Font</i> tag, which is created by inputting a size and/or color, or the <i>End of Font</i> tag. For example you might insert a <i>Font</i> tag, by inputting a color or size, and then continue on filling in the main form and then come back to insert the <i>End of Font</i> tag later. Press the reset button to reset the fields to their default values.<br>* You can find a table of colors here: <a href=http://www.ma.utexas.edu/~tbryan/colors.html target=_new>Tom\'s HTML Color Table</a>.</font><p>');
}
else if (text == "Link") { 
  parent.frames[1].document.writeln('<p> <form>Link To: <font size=1>the URL of the object to link to.</font><br><input type=text size=40 name=url><p>' +
  'Target:<font size=1>if the link will be opened in a window other than the current one.</font><br><input type=text size=40 name=target><p>' +
  'Link Text:<br><input type=text size=40 name=linktext value="This text will be a hyper-link."><p>' +
  'End of Link<br><input type=text size=4 name=endlink value="</A>"><p>' + 
  '<input type=button value=Submit onclick=parent.frames[0].makelinktag(forms[0].url.value,forms[0].target.value,forms[0].linktext.value,forms[0].endlink.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the Link tags and fill in the text later in the main form, in which case you would clear out the <i>Link Text</i> field. Also you may want to insert just one tag or the other, the <i>Start of Link</i> tag, which is created by inputting a url and possibly a target, or the <i>End of Link</i> tag. For example you might insert a <i>Link</i> tag, by inputting a url, and then continue on filling in the main form and then come back to insert the <i>End of Link</i> tag later. Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Link to MVD File") { 
  parent.frames[1].document.writeln('<p> <form>MVD Document Filename: <font size=1>( wTitle.html )</font><br><input type=text size=40 name=url><p>' +
  'Target:<font size=1>if the link will be opened in a window other than the current one.</font><br><input type=text size=40 name=target><p>' +
  'Link Text:<br><input type=text size=40 name=linktext value="This text will be a hyper-link."><p>' +
  'End of Link<br><input type=text size=4 name=endlink value="</A>"><p>' + 
  '<input type=button value=Submit onclick=parent.frames[0].makeintlinktag(forms[0].url.value,forms[0].target.value,forms[0].linktext.value,forms[0].endlink.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the Link tags and fill in the text later in the main form, in which case you would clear out the <i>Link Text</i> field. Also you may want to insert just one tag or the other, the <i>Start of Link</i> tag, which is created by inputting a url and possibly a target, or the <i>End of Link</i> tag. For example you might insert a <i>Link</i> tag, by inputting a url, and then continue on filling in the main form and then come back to insert the <i>End of Link</i> tag later. Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Image") {
var align = "";

  parent.frames[1].document.writeln('<p> <form>Image Filename: <font size=1>( e.g. pathtofilename.jpg )</font><br><input type=text size=40 name=src><p>' +
  'Align:<br><input type=radio name=al value=Left>Left<br><input type=radio name=al value=Right>Right<br><input type=radio name=al value=Top>Top<br><input type=radio name=al value=Middle>Middle<br><input type=radio name=al value=Bottom>Bottom<br><p>' +
  'Width:<br><input type=text size=4 name=imgwidth><p>' +
  'Height:<br><input type=text size=4 name=imgheight><p>' +
  'Border:<br><input type=text size=4 name=imgborder><p>' +
  'Vertical Space:<br><input type=text size=4 name=vspace><p>' +
  'Horizontal Space:<br><input type=text size=4 name=hspace><p>' +
  'Alt Text:<br><input type=text size=40 name=alt value="This text will describe the graphic."><p>');

  parent.frames[1].document.writeln('<input type=button value=Submit onclick=parent.frames[0].makeimagetag(forms[0].src.value,forms[0].al,forms[0].imgwidth.value,forms[0].imgheight.value,forms[0].imgborder.value,forms[0].vspace.value,forms[0].hspace.value,forms[0].alt.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p>' +
  '<i>Align</i> refers to how the following text will be aligned. <i>Left</i> will put the ' +
  'image on the left and have the text wrap around it on the right. <i>Right</i> will do the ' +
  'reverse. <i>Top</i> will align with the tallest item in the line. <i>Middle</i> will align ' +
  'the current line with the middle of the image. <i>Bottom</i> will align the bottom of the ' +
  'image to the current line. <i>Width</i> and <i>Height</i> lets you scale the image from it\'s ' +
  'original dimensions. <i>Border</i> is the width of the border you would like around the graphic; 0 = no-border. <i>Vertical Space</i> and <i>Horizontal Space</i> is extra space around ' +
  'the graphic, to let one change the space between it and surrounding text or other elements. ' +
  '<i>Alt Text</i> is optional text which will be rendered in non-graphical environments or pop-up descriptions. Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Mail-to") { 
  parent.frames[1].document.writeln('<p> <form>Mail To:<br><input type=text size=40 name=address><p>' +
  'Subject line:<font size=1> To include a default subject line in the mail composer box.</font><br><input type=text size=40 name=subject"><p>' +
  'Link Text:<br><input type=text size=40 name=linktext value="will open a sendmail box when clicked on."><p>' +

  '<input type=button value=Submit onclick=parent.frames[0].makemailtotag(forms[0].address.value,forms[0].subject.value,forms[0].linktext.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p>' +
  'Clicking on the <i>Link Text</i> will invoke an email compostion box with the fields filled in with whatever info you supply in the <i>Mail To</i> and <i>Subject</i> fields. ' +
  'Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Horizonal ruled line") {
  parent.frames[1].document.writeln('<p> <form>Size:<br><input type=text size=4 name=size><p>' +
  'Width:<br><input type=text size=4 name=width><p>' +
  'Align:<br><input type=radio name=al value=Left>Left<br><input type=radio name=al value=Right>Right<br><input type=radio name=al value=Center>Center<br><p>' +
  '<input type=checkbox name=shade> No Shading<p>' +
  
  '<input type=button value=Submit onclick=parent.frames[0].makehrtag(forms[0].size.value,forms[0].width.value,forms[0].al,forms[0].shade)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p>' +
  '<i>Size</i> is the vertical thickness of the ruled line. <i>Width</i> is the width of the browser screen, or frame, that the line will extend across and can be expressed as an absolute number or a percentage. Select the <i>No Shading</i> ceheckbox if you want a solid line rather than a shaded one. ' +
  'Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Italics") { 
  parent.frames[1].document.writeln('<p> <form>Start of Italics:<br><input type=text size=3 name=start value="<I>"><p>' +
  'Italic Text:<br><input type=text size=40 name=text value="This line will be in italics."><p>' + 
  'End of Italics:<br><input type=text size=4 name=end value="</I>"><p>' +
  '<input type=button value=Submit onclick=parent.frames[0].maketag(forms[0].start.value,forms[0].text.value,forms[0].end.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the <i>Start of Italics</i> and <i>End of Italics</i> tags and fill in the text later in the main form, in which case you would clear out the <i>Italics Text</i> field. Also you may want to insert just one tag or the other, in which case you would clear out the other two fields. For example you might insert just the <i>Start of Italics</i> tag and then continue on filling in the main form and then come back to insert the <i>End of Italics</i> tag later. Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Bold") { 
  parent.frames[1].document.writeln('<p> <form>Start of Bold:<br><input type=text size=3 name=start value="<B>"><p>' +
  'Bold Text:<br><input type=text size=40 name=text value="This line will be Bold."><p>' + 
  'End of Bold:<br><input type=text size=4 name=end value="</B>"><p>' +
  '<input type=button value=Submit onclick=parent.frames[0].maketag(forms[0].start.value,forms[0].text.value,forms[0].end.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the <i>Start of Bold</i> and <i>End of Bold</i> tags and fill in the text later in the main form, in which case you would clear out the <i>Bold Text</i> field. Also you may want to insert just one tag or the other, in which case you would clear out the other two fields. For example you might insert just the <i>Start of Bold</i> tag and then continue on filling in the main form and then come back to insert the <i>End of Bold</i> tag later. Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Comment") { 
  parent.frames[1].document.writeln('<p> <form>Start of Comment:<br><input type=text size=4 name=start value="<!-- "><p>' +
  'Comment Text:<br><input type=text size=40 name=text value="This line will be an embedded comment."><p>' + 
  'End of Comment:<br><input type=text size=4 name=end value=" -->"><p>' +
  '<input type=button value=Submit onclick=parent.frames[0].maketag(forms[0].start.value,forms[0].text.value,forms[0].end.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the <i>Start of Comment</i> and <i>End of Comment</i> tags and fill in the text later in the main form, in which case you would clear out the <i>Comment Text</i> field. Also you may want to insert just one tag or the other, in which case you would clear out the other two fields. For example you might insert just the <i>Start of Comment</i> tag and then continue on filling in the main form and then come back to insert the <i>End of Comment</i> tag later. Press the reset button to reset the fields to their default values.</font><p>');
}
else if (text == "Horizontal Spacing") { 
  parent.frames[1].document.writeln('<p> <form>Non-breaking Space:<br><input type=text size=6 name=start value="&amp;nbsp;"><p>' +
  '<input type=button value=Submit onclick=parent.frames[0].makespacetag(forms[0].start.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Using the space bar or the tab key will not produce extra space in a line of text beyond one character. You may need to insert this several times to get the indentation or spacing that you like. You can use this instead of or in addition to other tags such as <i>centering</i> and/or using <i>tables</i> to get the formatting you desire.</font><p>');
}
else if (text == "Ordered List") {
var align = "";

  parent.frames[1].document.writeln('<p> <form>Start List:<br><input type=text size=3 name=start value="<OL"><p>' +
  'List Type:<br><input type=radio name=typ value=1>numbers (default)<br><input type=radio name=typ value=A>capital letters<br><input type=radio name=typ value=a>lower case letters<br><input type=radio name=typ value=I>capital roman numerals<br><input type=radio name=typ value=i>lower case roman numerals<br><p>' +
'Start:<font size=1>if other than at the beginning; as a number; will be translated to <i>type</i>.</font><br><input type=text size=3 name=seq><p>' +
  'Start List Item:<br><input type=text size=3 name=item value="<LI"><p>' +
  'Item Type:<br><input type=radio name=ityp value=1>default numbers<br><input type=radio name=ityp value=A>capital letters<br><input type=radio name=ityp value=a>lower case letters<br><input type=radio name=ityp value=I>capital roman numerals<br><input type=radio name=ityp value=i>lower case roman numerals<br><p>' +
'Item Text:<br><input type=text size=40 name=text value="This is a list item."><p>' +
  'End of List:<br><input type=text size=5 name=end value="</OL>"><p>');

  parent.frames[1].document.writeln('<input type=button value=Submit onclick=parent.frames[0].makeolisttag(forms[0].start.value,forms[0].typ,forms[0].seq.value,forms[0].item.value,forms[0].ityp,forms[0].text.value,forms[0].end.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the <i>Start List</i> and <i>End of List</i> tags and fill in the <i>list items</i> later in the main form, in which case you would clear out some of the other fields. For example you might insert just the <i>Start List</i> tag and then clear that out and insert some <i>list items</i> before coming back to insert the <i>End of List</i> tag later. Press the reset button to reset the fields to their default  values.</font><p>');
}
else if (text == "Table") {
var align = "";

  parent.frames[1].document.writeln('<p> <form>Start Table:<br><input type=text size=6 name=start value="<TABLE"><p>' +
'Border:<br><input type=text size=3 name=border><p>' +
'Cell Spacing:<br><input type=text size=3 name=cspace><p>' +
'Cell Padding:<br><input type=text size=3 name=cpad><p>' +
'Table Width:<br><input type=text size=3 name=twidth><p>' +
'Table Background Color: <font size=1>as either a predefined common name, such as red;blue;green etc., or a hexadecimal number representing the RGB values.*</font><br><input type=text size=10 name=bgcolor><p>' +
'Table Background Image:<br><input type=text size=40 name=bgimage><p>' +
'Table Align:<br><input type=radio name=tal value=Left>Left<br><input type=radio name=tal value=Right>Right<br><input type=radio name=tal value=Top>Top<br><input type=radio name=tal value=Middle>Middle<br><input type=radio name=tal value=Bottom>Bottom<br><p>' +
'Start Row:<br><input type=text size=3 name=startrow value="<TR"><p>' +
'Row H. Align:<br><input type=radio name=ral value=Left>Left<br><input type=radio name=ral value=Right>Right<br><input type=radio name=ral value=Center>Center<p>' +
'Row V. Align:<br><input type=radio name=rval value=Top>Top<br><input type=radio name=rval value=Middle>Middle<br><input type=radio name=rval value=Bottom>Bottom<p>' +
'Start Cell:<br><input type=text size=3 name=startcell value="<TD"><p>' +
'Cell Background Color*:<br><input type=text size=10 name=cbgcolor><p>' +
'Cell Background Image:<br><input type=text size=40 name=cbgimage><p>' +
'Cell Column Span: <font size=1> the number of columns this cell will span </font><br><input type=text size=3 name=colspan><p>' +
'Cell Row Span: <font size=1> the number of rows this cell will span </font><br><input type=text size=3 name=rowspan><p>' +
'Cell H. Align:<br><input type=radio name=cal value=Left>Left<br><input type=radio name=cal value=Right>Right<br><input type=radio name=cal value=Center>Center<p>' +
'Cell V. Align:<br><input type=radio name=cval value=Top>Top<br><input type=radio name=cval value=Middle>Middle<br><input type=radio name=cval value=Bottom>Bottom<p>' +
'<input type=checkbox name=wrap> No Wrap - <font size=1> the text in the cell will not wrap; the cell width will expand to accomodate the text. </font><p>' +
'Cell Text:<br><input type=text size=40 name=text value="This is text within a table cell."><p>' +
'End of Cell:<br><input type=text size=5 name=cend value="</TD>"><p>' +
'End of Row:<br><input type=text size=5 name=rend value="</TR>"><p>' +
'End of Table:<br><input type=text size=8 name=end value="</TABLE>"><p>');

  parent.frames[1].document.writeln('<input type=button value=Submit onclick=parent.frames[0].maketabletag(forms[0].start.value,forms[0].border.value,forms[0].cspace.value,forms[0].cpad.value,forms[0].twidth.value,forms[0].bgcolor.value,forms[0].bgimage.value,forms[0].tal,forms[0].startrow.value,forms[0].ral,forms[0].rval,forms[0].startcell.value,forms[0].cbgcolor.value,forms[0].cbgimage.value,forms[0].colspan.value,forms[0].rowspan.value,forms[0].cal,forms[0].cval,forms[0].wrap,forms[0].text.value,forms[0].cend.value,forms[0].rend.value,forms[0].end.value)> <INPUT TYPE=Reset VALUE="Reset"> </form>' +
  '<p><center><font size=2> <b> Hints for usage </b> </center> <p> Clear out any fields you don\'t want to submit. For instance you might want to just insert the <i>Start Table</i> and <i>End of Table</i> tags and fill in the <i>Rows</i> and <i>Cells</i> later in the main form, in which case you would clear out some of the other fields. For example you might insert just the <i>Start Table</i> tag and then clear that out and insert some <i>Cells</i> before coming back to insert the <i>End of Table</i> tag later. Press the reset button to reset the fields to their default  values.<br>* You can find a table of colors here: <a href=http://www.ma.utexas.edu/~tbryan/colors.html target=_new>Tom\'s HTML Color Table</a>.</font><p>');
}


parent.frames[1].document.close();
}

function maketabletag(start,border,cspace,cpad,twidth,bgcolor,bgimage,tal,startrow,ral,rval,startcell,cbgcolor,cbgimage,colspan,rowspan,cal,cval,wrap,text,cend,rend,end) {
var tagstr = parent.frames[0].document.forms[0].description.value;
var ltyp = "";

if ( tal[0].checked ) { ltyp = tal[0].value;}
else if ( tal[1].checked ) { ltyp = tal[1].value;}
else if ( tal[2].checked ) { ltyp = tal[2].value;}
else if ( tal[3].checked ) { ltyp = tal[3].value;}
else if ( tal[4].checked ) { ltyp = tal[4].value;}

    if(start) { tagstr += start;
      if(border) { tagstr += " BORDER=" + border;} 
      if(cspace) { tagstr += " CELLSPACING=" + cspace;}
      if(cpad) { tagstr += " CELLPADDING=" + cpad;}
      if(bgcolor) { tagstr += " BGCOLOR=" + bgcolor;} 
      if(bgimage) { tagstr += " BACKGROUND=" + bgimage;}   
      if(ltyp) { tagstr += " ALIGN=" + ltyp; }
      tagstr += ">\n"; 
    } 
    if(startrow) { tagstr += startrow; 

ltyp = "";

if ( ral[0].checked ) { ltyp = ral[0].value;}
else if ( ral[1].checked ) { ltyp = ral[1].value;}
else if ( ral[2].checked ) { ltyp = ral[2].value;}

      if(ltyp) { tagstr += " ALIGN=" + ltyp; }

ltyp = "";

if ( rval[0].checked ) { ltyp = rval[0].value;}
else if ( rval[1].checked ) { ltyp = rval[1].value;}
else if ( rval[2].checked ) { ltyp = rval[2].value;}

      if(ltyp) { tagstr += " VALIGN=" + ltyp; }
      tagstr += "> "; 
    }
    if(startcell) { tagstr += startcell;
     if(cbgcolor) { tagstr += " BGCOLOR=" + cbgcolor;} 
     if(cbgimage) { tagstr += " BACKGROUND=" + cbgimage;}
     if(colspan) { tagstr += " COLSPAN=" + colspan;} 
     if(rowspan) { tagstr += " ROWSPAN=" + rowspan;} 

ltyp = "";

if ( cal[0].checked ) { ltyp = cal[0].value;}
else if ( cal[1].checked ) { ltyp = cal[1].value;}
else if ( cal[2].checked ) { ltyp = cal[2].value;}

      if(ltyp) { tagstr += " ALIGN=" + ltyp; }

ltyp = "";

if ( cval[0].checked ) { ltyp = cval[0].value;}
else if ( cval[1].checked ) { ltyp = cval[1].value;}
else if ( cval[2].checked ) { ltyp = cval[2].value;}

      if(ltyp) { tagstr += " VALIGN=" + ltyp; }
      if(wrap.checked) { tagstr += " NOWRAP"; }
      tagstr += "> ";
      if(text) { tagstr += text + " "; } 
    }
    if(cend) { tagstr += cend; }
    if(rend) { tagstr += rend; }
    if(end) { tagstr += "\n</TABLE>\n"; }
  
  parent.frames[0].document.forms[0].description.value=tagstr;

}

function makeolisttag(start,typ,seq,item,ityp,text,end) {
var tagstr = parent.frames[0].document.forms[0].description.value;
var ltyp = "";

if ( typ[0].checked ) { ltyp = typ[0].value;}
else if ( typ[1].checked ) { ltyp = typ[1].value;}
else if ( typ[2].checked ) { ltyp = typ[2].value;}
else if ( typ[3].checked ) { ltyp = typ[3].value;}
else if ( typ[4].checked ) { ltyp = typ[4].value;}

    if(start) { tagstr += start; 
      if(ltyp) { tagstr += " TYPE=" + ltyp; }
      if(seq) { tagstr += " START='" + seq + "'"; }
      tagstr += ">\n"; 
    } 
    if(item) { tagstr += item; 

ltyp = "";

if ( ityp[0].checked ) { ltyp = ityp[0].value;}
else if ( ityp[1].checked ) { ltyp = ityp[1].value;}
else if ( ityp[2].checked ) { ltyp = ityp[2].value;}
else if ( ityp[3].checked ) { ltyp = ityp[3].value;}
else if ( ityp[4].checked ) { ltyp = ityp[4].value;}

      if(ltyp) { tagstr += " TYPE=" + ltyp; }
      tagstr += "> "; 
      if(text) { tagstr += text + "\n"; }
    }
    if(end) { tagstr += "</OL>\n"; }
  
  parent.frames[0].document.forms[0].description.value=tagstr;

}

function makespacetag(start) {

var tagstr = parent.frames[0].document.forms[0].description.value;

  if(start) { tagstr += start; } 
    
  parent.frames[0].document.forms[0].description.value=tagstr;
}

function maketag(start,txt,end) {

var tagstr = parent.frames[0].document.forms[0].description.value;

  if(start) { tagstr += start + "\n"; } 
  if(txt) { tagstr += txt + "\n"; }
  if(end) { tagstr += end + "\n"; }
  
  parent.frames[0].document.forms[0].description.value=tagstr;
}

function makehrtag(size,width,aa,shd) {

var tagstr = parent.frames[0].document.forms[0].description.value;
var c = 0;
var trsubj = "";

tagstr += "<HR";

  if(size) { tagstr += " SIZE=" + size; }
  if(width) { tagstr += " WIDTH=" + width; }

var aln = "";

if ( aa[0].checked ) { aln = aa[0].value;}
else if ( aa[1].checked ) { aln = aa[1].value;}
else if ( aa[2].checked ) { aln = aa[2].value;}
 
  if(aln != "") { tagstr += " ALIGN=" + aln; }
  if(shd.checked) { tagstr += " NOSHADE"; }
  tagstr += ">\n";

   parent.frames[0].document.forms[0].description.value=tagstr;

}

function makemailtotag(add,subj,lnktxt) {

var tagstr = parent.frames[0].document.forms[0].description.value;
var c = 0;
var trsubj = "";

  if(add) {
    tagstr += "<A HREF=MAILTO:" + add;  
    if(subj) { 
      for(c=0; c<subj.length; c++) {  
        if (subj.charAt(c) == " ") { trsubj += "\%20";}
        else { trsubj += subj.charAt(c); }
      }     
      tagstr += "?SUBJECT=" + trsubj; 
    }

    tagstr += ">";
    if(lnktxt) { tagstr += lnktxt + "</A>\n"; }

  }
  
  parent.frames[0].document.forms[0].description.value=tagstr;

}

function makeimagetag(src,aa,imgwidth,imgheight,imgborder,vspace,hspace,alt) {

var tagstr = parent.frames[0].document.forms[0].description.value;
var aln = "";

if ( aa[0].checked ) { aln = aa[0].value;}
else if ( aa[1].checked ) { aln = aa[1].value;}
else if ( aa[2].checked ) { aln = aa[2].value;}
else if ( aa[3].checked ) { aln = aa[3].value;}
else if ( aa[4].checked ) { aln = aa[4].value;}

  if(src) {
    tagstr = tagstr + "<IMG SRC='" + src + "' ";
    if(aln) { tagstr = tagstr + "ALIGN='" + aln + "' "; }
    if(imgwidth) { tagstr = tagstr + "WIDTH='" + imgwidth + "' "; }
    if(imgheight) { tagstr = tagstr + "HEIGHT='" + imgheight + "' "; }
    if(imgborder) { tagstr = tagstr + "BORDER='" + imgborder + "' "; }
    if(vspace) { tagstr = tagstr + "VSPACE='" + vspace + "' "; }
    if(hspace) { tagstr = tagstr + "HSPACE='" + hspace + "' "; }
    if(alt) { tagstr = tagstr + "ALT='" + alt + "' "; }

    tagstr = tagstr + ">\n";
  }

  parent.frames[0].document.forms[0].description.value=tagstr;

}

function makeintlinktag(ur,targ,lnktxt,lnkend) {

var tagstr = parent.frames[0].document.forms[0].description.value;

  if(ur) { 
    tagstr = tagstr + "<A HREF='mvl.cgi?NextName=" + ur + "' ";  
    if(targ) { tagstr = tagstr + "target='" + targ + "'"; }
    tagstr = tagstr + ">\n";
  }  
  
  if(lnktxt) { tagstr = tagstr + lnktxt + "\n"; }
  if(lnkend) { tagstr = tagstr + lnkend + "\n"; }
  
  parent.frames[0].document.forms[0].description.value=tagstr;
}

function makelinktag(ur,targ,lnktxt,lnkend) {

var tagstr = parent.frames[0].document.forms[0].description.value;

  if(ur) { 
    tagstr = tagstr + "<A HREF='" + ur + "' ";  
    if(targ) { tagstr = tagstr + "target='" + targ + "'"; }
    tagstr = tagstr + ">\n";
  }  
  
  if(lnktxt) { tagstr = tagstr + lnktxt + "\n"; }
  if(lnkend) { tagstr = tagstr + lnkend + "\n"; }
  
  parent.frames[0].document.forms[0].description.value=tagstr;
}

function makefonttag(fntsize,fntcolor,fnttxt,fntend) {

var tagstr = parent.frames[0].document.forms[0].description.value;

tagstr = tagstr + "<FONT ";

  if(fntsize) { tagstr = tagstr + "size=" + fntsize + " "; } 
  if(fntcolor) { tagstr = tagstr + "color='" + fntcolor + "'"; }
  
  tagstr = tagstr + ">\n";
  
  if(fnttxt) { tagstr = tagstr + fnttxt + "\n"; }
  if(fntend) { tagstr = tagstr + fntend + "\n"; }
  
  parent.frames[0].document.forms[0].description.value=tagstr;
}

function makebodytag(bgcol,bimg,txtcol,lnkcol,vlnkcol) {

var tagstr = "<BODY";

  if(bgcol) { tagstr = tagstr + " BGCOLOR='" + bgcol + "'"; } 
  if(bimg) { tagstr = tagstr + " BACKGROUND='" + bimg + "'"; }
  if(txtcol) { tagstr = tagstr + " TEXT='" + txtcol + "'"; }
  if(lnkcol) { tagstr = tagstr + " LINK='" + lnkcol + "'"; }
  if(vlnkcol) { tagstr = tagstr + " VLINK='" + vlnkcol + "'"; }

  tagstr = tagstr + ">";
  parent.frames[0].document.forms[0].body.value=tagstr;
}

function makemetatag(desc,keyw) {

var tagstr = "";

  if(desc) { tagstr = tagstr + "<META HTTP-EQUIV='description' CONTENT='" + desc + "'> "; } 
  if(keyw) { tagstr = tagstr + "<META HTTP-EQUIV='keywords' CONTENT='" + keyw + "'> "; }

parent.frames[0].document.forms[0].head.value=tagstr;
}

//-->
</script>

</HEAD><BODY BGCOLOR=#99CCCC background=web3.jpg>
<center>
<p><hr size=2><p>
<h1>MVD Add/Edit Entry Form</h1>
<hr><p>
<FORM METHOD=POST ACTION="mvladmin.cgi">
<table width=600 border=0><td>
<center><table width=85% border=0><td>
<font color=red>Note</font>: If this is *not* the first entry you are creating and/or editing
during this session you will need to hit the reload button on your browser to make sure you
are editing the file you want and not one held in the cache.<p>

Change whatever default values need to be changed in each of these input boxes and then press
the "Save" or "Preview" button. "Preview" will allow you to see what your entry will look like
before saving. You can then use your browser's 'Back' button to return to this page if you need 
to make further changes."Save" will create a new entry or overwrite the existing one with the 
new values. You can't undo any changes made after pressing "Save" except by returning to this 
page to re-edit. Use the "Reset" button to restore the form to it's default values.
<p>
<b>Please be careful! Be careful I say! It took a lot of time to enter all this information in 
these files. You should only enter new comments and leave other's information alone.<br>
Thanks</b>
</td></table></center>
<p>

