Project

General

Profile

metacat / lib / style / common / templates / entryForm.tmpl @ 2510

1
[% INCLUDE "genericHeader.tmpl" %]
2

    
3
  <script language="JavaScript" type="text/javascript">
4

    
5
    function addParagraph() {
6
        var newParaWidget=document.createElement("textarea");
7
        newParaWidget.setAttribute("rows", "6");
8
        newParaWidget.className="longwidth";
9
        newParaWidget.setAttribute("name", "methodPara");
10

    
11
        var TR = document.createElement("tr");
12
        TR.className='sectbody';
13
        var TD = createTD("5","left");
14
        var emptyTD = createTD("","right");
15
        TD.appendChild(newParaWidget);
16
        TR.appendChild(emptyTD);
17
        TR.appendChild(TD);
18
        var addParaButton = document.getElementById("addparabutton1");
19
        var parent = addParaButton.parentNode;
20
        parent.insertBefore(TR, addParaButton);
21
    }
22

    
23
    function addMethod(){
24
        var index = incrementCount('methodCount');
25
        var methodButton = document.getElementById("addmethodbutton");
26
        var parent = methodButton.parentNode;
27
        
28
        parent.insertBefore(createHRRow(), methodButton);
29
        parent.insertBefore(addMethodTitle(), methodButton);
30
        parent.insertBefore(addMethodDescription(index), methodButton);
31
        parent.insertBefore(addMethodButton(index), methodButton);
32
    }
33

    
34
    function  addMethodButton(index){
35
        var TR = document.createElement("tr");
36
        var buttonId = 'addparabutton' + index;
37
        TR.className='sectbody';
38
        TR.setAttribute("id", buttonId);
39
        var labelTD = createTD("","right");
40
        var TD = createTD("5","left");
41
        var button=document.createElement("input");
42
        button.setAttribute("type", "button"); 
43
        button.setAttribute("value", "Add Paragraph to Method Description"); 
44
        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
45
            button.attachEvent("onclick", new Function("addParagraph("+ index + ", '" + buttonId + "')"));
46
        } else {
47
            button.setAttribute("onclick", "addParagraph("+ index +", '" + buttonId + "')"); 
48
        }
49
        TD.appendChild(button);
50
        TR.appendChild(labelTD);
51
        TR.appendChild(TD);
52
        return TR;
53
    }
54
    
55
    function  addMethodTitle(){
56
        var TR = document.createElement("tr");
57
        TR.className='sectbody';
58
        var labelTD = createTD("","right");
59
        labelTD.appendChild(document.createTextNode("Method Title"));
60
        var TD = createTD("5","left");
61
        var textField=document.createElement("input");
62
        textField.setAttribute("type", "text"); 
63
        textField.setAttribute("name", "methodTitle"); 
64
        textField.className="longwidth";
65
        TD.appendChild(textField);
66
        TR.appendChild(labelTD);
67
        TR.appendChild(TD);
68
        return TR;
69
    }
70

    
71
    function  addMethodDescription(index){
72
        var TR = document.createElement("tr");
73
        TR.className='sectbody';
74
        var labelTD = createTD("","right");
75
        labelTD.setAttribute("vAlign","top");
76
        labelTD.appendChild(document.createTextNode("Method Description"));
77
        var TD = createTD("5","left");
78
        var textArea=document.createElement("textarea");
79
        textArea.setAttribute("name", "methodPara"+index);
80
        textArea.setAttribute("rows", 6); 
81
        textArea.className="longwidth";
82
        TD.appendChild(textArea);
83
        TR.appendChild(labelTD);
84
        TR.appendChild(TD);
85
        return TR;
86
    }
87
    
88
    function createTextField(name, size, value) {
89
        var newField=document.createElement("input");
90
        newField.setAttribute("type", "text"); 
91
        newField.setAttribute("name", name); 
92
        newField.setAttribute("size", size); 
93
        newField.value = value; 
94
        return newField;
95
    }
96

    
97
    function createTextRow(count, varName, labelText, value) {
98
        var textField=createTextField(varName + count, "30", value);
99
	var row = createRow(count, textField, labelText);
100
	return row;
101
    }
102

    
103
    function createRow(count, elem, labelText){
104
        var textTD = createTD("5");
105
        textTD.appendChild(elem);
106

    
107
        var labelTD = createTD("","right");
108

    
109
        var labelSpan = document.createElement("span");
110
        labelSpan.className = 'label';
111

    
112
        var label = document.createTextNode(labelText);
113
        labelSpan.appendChild(label);
114
        labelTD.appendChild(labelSpan);
115

    
116
        var TR = document.createElement("tr");
117
        TR.className='sectbody';
118
        TR.appendChild(labelTD);
119
        TR.appendChild(textTD);
120

    
121
       return TR;
122
    }
123

    
124
    function createHRRow() {
125
        var hrCell = createTD("6");
126
	var hr = document.createElement("hr");
127
	hr.setAttribute("width", "85%");
128
        hrCell.appendChild(hr);
129

    
130
        var hrTR = document.createElement("tr");
131
        hrTR.className = 'sectbody';
132
        hrTR.appendChild(hrCell);
133

    
134
        return hrTR;
135
    }
136

    
137
    function createHiddenInput(name, value){
138
        var elem = document.createElement("input");
139
        elem.setAttribute("type", "hidden");
140
        elem.setAttribute("name", name);
141
        elem.setAttribute("value", value);
142
        return elem
143
    }
144

    
145
    function sortInputTags(){
146
        sortTagWithAttributeName("aoFirstName", "addAssociatedParty");
147
        sortTagWithAttributeName("aoLastName", "addAssociatedParty");
148
        sortTagWithAttributeName("aoRole", "addAssociatedParty", "select");
149
        
150
        sortTagWithAttributeName("taxonName", "addTaxon");
151
        sortTagWithAttributeName("taxonRank", "addTaxon");
152
        
153
        sortTagWithAttributeName("keyword", "addKeyword");
154
        sortTagWithAttributeName("keywordType", "addKeyword");
155
        sortTagWithAttributeName("keywordTh", "addKeyword");
156

    
157
    }
158
    
159

    
160
    function sortTagWithAttributeName(tag, afterTag, parentTag){
161
       var elem = document.getElementById(afterTag);
162
       
163
       elem=elem.nextSibling.nextSibling;
164
        while(elem.nodeName == "TR"){
165
            var nodes = elem.getElementsByTagName("input");
166
            for(var i=0; i < nodes.length; i++){
167
                var node = nodes.item(i); 
168
                if(node.getAttribute("name")==tag){
169
                        var parent = node.parentNode;
170
                        var clone = node.cloneNode(true);
171
                        parent.removeChild(node);
172
                        parent.appendChild(clone);
173
                }
174
            }
175
            if(parentTag != null){
176
            var nodes = elem.getElementsByTagName(parentTag);
177
            for(var i=0; i < nodes.length; i++){
178
                var node = nodes.item(i); 
179
                if(node.getAttribute("name")==tag){
180
                        var parent = node.parentNode;
181
                        var clone = node.cloneNode(true);
182
                        clone.value = node.value;
183
                        parent.removeChild(node);
184
                        parent.appendChild(clone);
185
                }
186
            }
187
            }
188
            elem=elem.nextSibling;
189
        }
190
    }
191
    
192
    function incrementCount(_count){
193
        var countField = document.getElementById(_count);
194
        var count = countField.getAttribute("value");
195
        count++;
196
        countField.setAttribute("value", count);
197
        return count;
198
    }
199
    
200
    function decrementCount(_count){
201
        var countField = document.getElementById(_count);
202
        var count = countField.getAttribute("value");
203
        count--;
204
        countField.setAttribute("value", count);
205
        return count;
206
    }
207
    
208
    function createImageLink(imgSrc, imgAlt, imgOnClick, cursor){
209
        var link = document.createElement("a");
210
        var img = document.createElement("img");
211
        img.setAttribute("src", imgSrc);
212
        img.setAttribute("alt", imgAlt);
213
        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
214
            link.style.setAttribute("cursor", cursor);
215
            img.attachEvent("onclick", new Function(imgOnClick));
216
        } else {
217
            link.setAttribute("style", "cursor:"+cursor);
218
            img.setAttribute("onClick", imgOnClick);
219
        }
220
        img.setAttribute("border", "0");
221
        link.appendChild(img);        
222
        return link;
223
    }
224
    
225
    
226
    function createTD(colSpan, align, cursor){
227
        var td = document.createElement("td");
228
        if(colSpan != "")
229
            td.setAttribute("colSpan", colSpan);
230
        td.setAttribute("align", align);
231
        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
232
            td.style.setAttribute("cursor", cursor);
233
        } else {
234
            td.setAttribute("style", "cursor:"+cursor);
235
        }
236
        return td;
237
    }
238
  
239
  
240
    function cleanTextNodes(startTagId, endTagId){
241
        var startTag = document.getElementById(startTagId);
242

    
243
        var bro = startTag.nextSibling;       
244

    
245
        while(bro){
246
            if(bro.nodeName == "#text"){
247
                var temp = bro.nextSibling;
248
                bro.parentNode.removeChild(bro);
249
                bro = temp;
250
            } else {
251
                var id = bro.getAttribute("id");
252
                if(id == endTagId){
253
                  return;
254
                }
255
                bro = bro.nextSibling;
256
            }
257
        }
258

    
259
    }
260
  
261
    function delRow(evt){
262
         evt = (evt) ? evt : ((window.event) ? window.event : null);
263
         if (evt) {
264
           // equalize W3C/IE models to get event target reference
265
           var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
266
           if (elem) {
267
               try {
268
                    var table = elem.parentNode.parentNode.parentNode.parentNode;
269
                    var row = elem.parentNode.parentNode.parentNode;
270

    
271
                    table.removeChild(row);
272
                 }
273
               catch(e) {
274
                   var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
275
                   alert("Error:\n" + msg);
276
                   return;
277
               }
278
           }
279
         }
280
    }
281

    
282
    function moveUpRow(evt){
283
         evt = (evt) ? evt : ((window.event) ? window.event : null);
284
         if (evt) {
285
           // equalize W3C/IE models to get event target reference
286
           var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
287
           if (elem) {
288
               try {
289
                    var table = elem.parentNode.parentNode.parentNode.parentNode;
290
                    var row = elem.parentNode.parentNode.parentNode;
291
                    
292
                    var bro = row.previousSibling;
293
                    if(bro != null && bro.previousSibling.nodeName =="TR"){
294
                        clone = row.cloneNode(true);
295
                        table.insertBefore(clone, bro);
296
                        table.removeChild(row);
297
                    }
298
                 }
299
               catch(e) {
300
                   var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
301
                   alert("Error:\n" + msg);
302
                   return;
303
               }
304
           }
305
         }
306
    }
307

    
308
    function moveDownRow(evt, lastTR){
309
         evt = (evt) ? evt : ((window.event) ? window.event : null);
310
         if (evt) {
311
           // equalize W3C/IE models to get event target reference
312
           var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
313
           if (elem) {
314
               try {
315
                    var table = elem.parentNode.parentNode.parentNode.parentNode;
316
                    var row = elem.parentNode.parentNode.parentNode;
317
                    
318
                    var _test = row.nextSibling;
319
                    if(_test.getAttribute("id") == lastTR){
320
                            return;
321
                    }
322
                    var bro = row.nextSibling.nextSibling;
323
                    if(bro != null && bro.nodeName =="TR"){
324
                        clone = row.cloneNode(true);
325
                        table.insertBefore(clone, bro);
326
                        table.removeChild(row);
327
                    }
328
                 }
329
               catch(e) {
330
                   var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
331
                   alert("Error:\n" + msg);
332
                   return;
333
               }
334
           }
335
         }
336
    }
337
  
338
    function addAssociatedParty() {
339
    	var AOLN   = document.getElementById("AONameLast");
340
	var AOFN   = document.getElementById("AONameFirst");
341
	var AORole = document.getElementById("AORole");
342

    
343
        if(AOLN.value != ""){
344
            
345
            var aoCount = incrementCount("aoCount");
346
            
347
        try{
348
            var aoRow = createAORow(aoCount, AOLN.value, AOFN.value, AORole.options[AORole.selectedIndex].text);
349
        }    catch(e) {
350
                   var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
351
                   alert("Error:\n" + msg);
352
                   return;
353
               }
354

    
355
             var aoRowMarker = document.getElementById("addaorow");
356
            var parent = aoRowMarker.parentNode;
357
            
358
            var aoHR = document.getElementById("aoHRRow");
359
            if(aoHR == null) {
360
              var aoHRRow = createHRRow();
361
              aoHRRow.setAttribute("id", "aoHRRow");
362
              parent.insertBefore(aoHRRow, aoRowMarker);
363
            }
364
            
365
            parent.insertBefore(aoRow, aoRowMarker);
366
        
367
            AOFN.value = "";
368
            AOLN.value = "";
369
            AORole.selectedIndex = 0;
370
        } else {
371
            alert("Enter the last name of the associated party");
372
        }
373
    }
374
    
375
    function createAORow(aoCount, AOLN, AOFN, AORole){    
376
        var TR = document.createElement("tr");
377
        TR.className='sectbody';
378
        var labelTD = createTD("5","left", "pointer");
379
        
380
        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
381
            labelTD.attachEvent("onclick", new Function("aoEditRow(event, 0, \"" + AOFN  + "\",\""
382
                             + AOLN  + "\",\"" + AORole + "\")"));
383
        } else {
384
            labelTD.setAttribute("onClick","aoEditRow(event, 0, \"" + AOFN  + "\",\""
385
                             + AOLN  + "\",\"" + AORole + "\")");
386
        }
387

    
388
        
389
        var text   = AOFN + " " + AOLN + " (Role: " + AORole + ")";
390
        var label = document.createTextNode(text);
391

    
392
        labelTD.appendChild(label);
393
        labelTD.appendChild(createHiddenInput("aoFirstName", AOFN));
394
        labelTD.appendChild(createHiddenInput("aoLastName", AOLN));
395
        labelTD.appendChild(createHiddenInput("aoRole", AORole));
396
        
397
        var imgTD = createTD("","right");
398
        
399
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/previous.gif",
400
                                          "Move Up","moveUpRow(event)","pointer"));
401
      	imgTD.appendChild(document.createTextNode(" "));
402
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/next.gif",
403
                                          "Move Down", "moveDownRow(event, \"addaorow\")",
404
                                          "pointer"));
405
      	imgTD.appendChild(document.createTextNode(" "));
406
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/delete.gif",
407
                                          "Delete", "delRow(event)",
408
                                          "pointer"));
409
    
410
        TR.appendChild(imgTD);
411
        TR.appendChild(labelTD);
412
        
413
        return TR;
414
    }
415

    
416
    function aoEditRow(evt, num,  AOFN ,  AOLN ,  AORole){
417
         evt = (evt) ? evt : ((window.event) ? window.event : null);
418
         if (evt) {
419
           // equalize W3C/IE models to get event target reference
420
           var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
421
           if (elem && elem.nodeName == "TD") {
422
               try {
423
                    var table = elem.parentNode;
424
                    if(num == 0){
425
                        table.removeChild(elem);
426
                        var TD = createTD("5","left", "pointer");
427
                        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
428
                            TD.attachEvent("onclick", new Function("aoEditRow(event, 1, \"" + AOFN  + "\",\""
429
                                                        + AOLN  + "\",\"" + AORole + "\")"));
430
                        } else {
431
                            TD.setAttribute("onClick","aoEditRow(event, 1, \"" + AOFN  + "\",\""
432
                                                 + AOLN  + "\",\"" + AORole + "\")");
433
                        }                   
434
                        TD.appendChild(createTextField("aoFirstName", 15, AOFN));
435
                        TD.appendChild(document.createTextNode(" "));
436
                        TD.appendChild(createTextField("aoLastName", 15, AOLN));
437
                        TD.appendChild(document.createTextNode(" Role: "));
438
                        TD.appendChild(createAORoleTypeSelect("aoRole", AORole));
439
                        table.appendChild(TD);
440
                    } else {
441
                        var child = elem.childNodes;
442
                        AOFN = child.item(0).value;
443
                        AOLN = child.item(2).value;
444
                        var _AORole = child.item(4);
445
                        AORole = _AORole.options[_AORole.selectedIndex].text;
446
                        table.removeChild(elem);
447
    
448
                        var TD = createTD("5","left", "pointer");
449
                        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
450
                            TD.attachEvent("onclick", new Function("aoEditRow(event, 0, \"" + AOFN  + "\",\""
451
                                                        + AOLN  + "\",\"" + AORole + "\")"));
452
                        } else {
453
                            TD.setAttribute("onClick","aoEditRow(event, 0, \"" + AOFN  + "\",\""
454
                                                 + AOLN  + "\",\"" + AORole + "\")");
455
                        }
456
                        var text   = AOFN + " " + AOLN + " (Role: " + AORole + ")";
457
                        var label = document.createTextNode(text);
458
                        TD.appendChild(label);
459
                        TD.appendChild(createHiddenInput("aoFirstName", AOFN));
460
                        TD.appendChild(createHiddenInput("aoLastName", AOLN));
461
                        TD.appendChild(createHiddenInput("aoRole", AORole));
462
                        table.appendChild(TD);
463
                    }
464
                 }
465
               catch(e) {
466
                   var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
467
                   alert("Error:\n" + msg);
468
                   return;
469
               }
470
           }
471
         }
472
    }
473

    
474
    function createAORoleTypeSelect(name, value) {
475
        var newField=document.createElement("select");
476
        newField.setAttribute("name", name);
477
	var option1=document.createElement("option");
478
	var text1=document.createTextNode("Co-owner");
479
	//var text1=document.createTextNode("Principal Investigator");
480
	option1.appendChild(text1);
481
	newField.appendChild(option1);
482
	var option2=document.createElement("option");
483
	var text2=document.createTextNode("Custodian/Steward");
484
	option2.appendChild(text2);
485
	newField.appendChild(option2);
486
	var option3=document.createElement("option");
487
	var text3=document.createTextNode("Metadata Provider");
488
	option3.appendChild(text3);
489
	newField.appendChild(option3)
490
	var option4=document.createElement("option");
491
	var text4=document.createTextNode("User");
492
	option4.appendChild(text4);
493
	newField.appendChild(option4);
494
        
495
        if(value == "Co-owner"){
496
            newField.selectedIndex=0;
497
        } else if(value == "Custodian/Steward"){
498
            newField.selectedIndex=1;
499
        } else if(value == "Metadata Provider"){
500
            newField.selectedIndex=2;
501
        } else if(value == "User"){
502
            newField.selectedIndex=3;
503
        }
504

    
505
	return newField;
506
    }
507

    
508

    
509

    
510
   function addTaxon() {   
511
      	var taxonRank   = document.getElementById("taxonRank");
512
	var taxonName   = document.getElementById("taxonName");
513

    
514
        if(taxonRank.value !="" && taxonName.value != ""){
515
            
516
            var taxonCount = incrementCount("taxaCount");
517

    
518
            var row = createTaxonRow(taxonCount, taxonName.value, taxonRank.value);
519
            var taxonRowMarker = document.getElementById("addtaxarow");
520
            var parent = taxonRowMarker.parentNode;
521
            
522
            var taxonHR = document.getElementById("taxonHRRow");
523
            if(taxonHR == null) {
524
              var taxonHRRow = createHRRow();
525
              taxonHRRow.setAttribute("id", "taxonHRRow");
526
              parent.insertBefore(taxonHRRow, taxonRowMarker);
527
            }
528
            
529
            parent.insertBefore(row, taxonRowMarker);
530
        
531
            taxonRank.value = "";
532
            taxonName.value = "";
533
        } else {
534
            alert("Enter complete taxonomic information");
535
        }
536
    }
537

    
538
    function createTaxonRow(taxonCount, taxonRank, taxonName){    
539
        var TR = document.createElement("tr");
540
        TR.className='sectbody';
541

    
542
        var labelTD = createTD("5","left", "pointer");
543
        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
544
            labelTD.attachEvent("onclick",new Function("taxonEditRow(event, 0, \"" + taxonName
545
                             + "\",\"" + taxonRank  + "\")"));
546
        } else {
547
            labelTD.setAttribute("onClick","taxonEditRow(event, 0, \"" + taxonName
548
                             + "\",\"" + taxonRank  + "\")");
549
        }
550

    
551
        
552
        var text = "Rank: " + taxonName + ", Name: " + taxonRank;
553
        var label = document.createTextNode(text);
554

    
555
        labelTD.appendChild(label);
556
        labelTD.appendChild(createHiddenInput("taxonName", taxonName));
557
        labelTD.appendChild(createHiddenInput("taxonRank", taxonRank));
558
        
559
        var imgTD = createTD("","right");
560
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/previous.gif",
561
                                          "Move Up", "moveUpRow(event)",
562
                                          "pointer"));
563
      	imgTD.appendChild(document.createTextNode(" "));
564
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/next.gif",
565
                                          "Move Down", "moveDownRow(event, 'addtaxarow')",
566
                                          "pointer"));
567
      	imgTD.appendChild(document.createTextNode(" "));
568
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/delete.gif",
569
                                          "Delete", "delRow(event)",
570
                                          "pointer"));
571
    
572
        TR.appendChild(imgTD);
573
        TR.appendChild(labelTD);
574
        
575
        return TR;
576
    }
577

    
578

    
579
    function taxonEditRow(evt, num,  taxonName ,  taxonRank){
580
         evt = (evt) ? evt : ((window.event) ? window.event : null);
581
         if (evt) {
582
           // equalize W3C/IE models to get event target reference
583
           var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
584
           if (elem && elem.nodeName == "TD") {
585
               try {
586
                    var table = elem.parentNode;
587
                    if(num == 0){
588
                        table.removeChild(elem);
589
                        var TD = createTD("5","left", "pointer");
590
                        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
591
                            TD.attachEvent("onclick",new Function("taxonEditRow(event, 1, \"" + taxonName
592
                                 + "\",\"" + taxonRank  + "\")"));
593
                        } else {
594
                            TD.setAttribute("onClick","taxonEditRow(event, 1, \"" + taxonName
595
                                 + "\",\"" + taxonRank  + "\")");
596
                        }
597
                  
598
                        TD.appendChild(document.createTextNode("Rank: "));
599
                        TD.appendChild(createTextField("taxonName", 15, taxonName));
600
                        TD.appendChild(document.createTextNode(" Name: "));
601
                        TD.appendChild(createTextField("taxonRank", 15, taxonRank));
602
                        table.appendChild(TD);
603
                    } else {
604
                        var child = elem.childNodes;
605
                        taxonName = child.item(1).value;
606
                        taxonRank = child.item(3).value;
607
                        table.removeChild(elem);
608
    
609
                        var TD = createTD("5","left", "pointer");
610
                        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
611
                            TD.attachEvent("onclick",new Function("taxonEditRow(event, 0, \"" + taxonName
612
                                 + "\",\"" + taxonRank  + "\")"));
613
                        } else {
614
                            TD.setAttribute("onClick","taxonEditRow(event, 0, \"" + taxonName
615
                                 + "\",\"" + taxonRank  + "\")");
616
                        }                        
617
                        var text = "Rank: " + taxonName + ", Name: " + taxonRank;
618
                        var label = document.createTextNode(text);
619
                        TD.appendChild(label);
620
                        TD.appendChild(createHiddenInput("taxonName", taxonName));
621
                        TD.appendChild(createHiddenInput("taxonRank", taxonRank));
622
                        table.appendChild(TD);
623
                    }
624
                 }
625
               catch(e) {
626
                   var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
627
                   alert("Error:\n" + msg);
628
                   return;
629
               }
630
           }
631
         }
632
    }
633
    
634
    function addKeyword() {
635
    	var keyword   = document.getElementById("keyword");
636
	var keywordType   = document.getElementById("keywordType");
637
	var keywordTh = document.getElementById("keywordTh");
638

    
639
        if(keyword.value !=""){
640
            var keyCount = incrementCount("keyCount");
641

    
642
            var keyRow = createKeywordRow(keyCount, keyword.value, keywordType.options[keywordType.selectedIndex].text, keywordTh.options[keywordTh.selectedIndex].text);
643
            var keyRowMarker = document.getElementById("addkeyrow");
644
            var parent = keyRowMarker.parentNode;
645
            
646
            var keyHR = document.getElementById("keywordHRRow");
647
            if(keyHR == null) {
648
              var keyHRRow = createHRRow();
649
              keyHRRow.setAttribute("id", "keywordHRRow");
650
              parent.insertBefore(keyHRRow, keyRowMarker);
651
            }
652
            
653
            parent.insertBefore(keyRow, keyRowMarker);
654
        
655
            keyword.value = "";
656
            keywordType.selectedIndex = 0;
657
            keywordTh.selectedIndex = 0;
658
        } else {
659
            alert("Enter keyword");
660
        }
661
    }
662

    
663

    
664
    function createKeywordRow(keyCount, keyword, keywordType, keywordTh){    
665
        var TR = document.createElement("tr");
666
        TR.className='sectbody';
667

    
668
        var labelTD = createTD("5","left", "pointer");
669
        
670
        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
671
            labelTD.attachEvent("onclick", new Function("keywordEditRow(event, 0, \"" + keyword
672
                + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")"));
673
        } else {
674
            labelTD.setAttribute("onClick","keywordEditRow(event, 0, \"" + keyword
675
                + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")");
676
        }
677
                  
678
        var text   = keyword + " (Type: " + keywordType + ", Thesaurus: " + keywordTh + ")";
679
        var label = document.createTextNode(text);
680

    
681
        labelTD.appendChild(label);
682
        labelTD.appendChild(createHiddenInput("keyword", keyword));
683
        labelTD.appendChild(createHiddenInput("keywordType", keywordType));
684
        labelTD.appendChild(createHiddenInput("keywordTh", keywordTh));
685
        
686
        var imgTD = createTD("","right");
687
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/previous.gif",
688
                                          "Move Up", "moveUpRow(event)",
689
                                          "pointer"));
690
      	imgTD.appendChild(document.createTextNode(" "));
691
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/next.gif",
692
                                          "Move Down", "moveDownRow(event, 'addkeyrow')",
693
                                          "pointer"));
694
      	imgTD.appendChild(document.createTextNode(" "));
695
        imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/delete.gif",
696
                                          "Delete", "delRow(event)",
697
                                          "pointer"));
698
    
699
        TR.appendChild(imgTD);
700
        TR.appendChild(labelTD);
701
        
702
        return TR;
703
    }
704

    
705
    function keywordEditRow(evt, num,  keyword,  keywordType, keywordTh){
706
         evt = (evt) ? evt : ((window.event) ? window.event : null);
707
         if (evt) {
708
           // equalize W3C/IE models to get event target reference
709
           var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
710
           if (elem && elem.nodeName == "TD") {
711
               try {
712
                    var table = elem.parentNode;
713
                    if(num == 0){
714
                        table.removeChild(elem);
715
                        var TD = createTD("5","left", "pointer");
716
                        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
717
                            TD.attachEvent("onclick", new Function("keywordEditRow(event, 1, \"" + keyword
718
                            + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")"));
719
                        } else {
720
                            TD.setAttribute("onClick","keywordEditRow(event, 1, \"" + keyword
721
                            + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")");
722
                        }
723
                    
724
                        TD.appendChild(createTextField("keyword", 15, keyword));
725
                        TD.appendChild(document.createTextNode(" Type: "));
726
                        TD.appendChild(createKeyTypeSelect("keywordType", keywordType));
727
                        TD.appendChild(document.createTextNode(" Thesaurus: "));
728
                        TD.appendChild(createKeyThSelect("keywordTh", keywordTh));
729
                        table.appendChild(TD);
730
                    } else {
731
                        var child = elem.childNodes;
732
                        keyword = child.item(0).value;
733
                        var _keywordType = child.item(2);
734
                        keywordType = _keywordType.options[_keywordType.selectedIndex].text;
735
                        var _keywordTh = child.item(4);
736
                        keywordTh = _keywordTh.options[_keywordTh.selectedIndex].text;
737
                        table.removeChild(elem);
738
    
739
                        var TD = createTD("5","left", "pointer");
740
                        if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
741
                            TD.attachEvent("onclick", new Function("keywordEditRow(event, 0, \"" + keyword
742
                            + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")"));
743
                        } else {
744
                            TD.setAttribute("onClick","keywordEditRow(event, 0, \"" + keyword
745
                            + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")");
746
                        }
747
                    
748
                        var text   = keyword + " (Type: " + keywordType + ", Thesaurus: " + keywordTh + ")";
749
                        var label = document.createTextNode(text);
750
                        TD.appendChild(label);
751
                        TD.appendChild(createHiddenInput("keyword", keyword));
752
                        TD.appendChild(createHiddenInput("keywordType", keywordType));
753
                        TD.appendChild(createHiddenInput("keywordTh", keywordTh));
754
                        table.appendChild(TD);
755
                    }
756
                 }
757
               catch(e) {
758
                   var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
759
                   alert("Error:\n" + msg);
760
                   return;
761
               }
762
           }
763
         }
764
    }
765
    
766
    function createKeywordThesaurusRow(name) {        
767
        var keyRowTemplate = document.getElementById("keyThRow");
768
        var newField =  keyRowTemplate.cloneNode(true);
769
	var nodes = newField.getElementsByTagName("input");
770
	nodes.item(0).setAttribute("name", name);
771
	nodes.item(1).setAttribute("name", name);
772
	return newField;
773
    }
774

    
775
    function createKeyThSelect(name, value) {
776
        var newField=document.createElement("select");
777
        newField.setAttribute("name", name);
778
	var option1=document.createElement("option");
779
	var text1=document.createTextNode("None");
780
	option1.appendChild(text1);
781
	newField.appendChild(option1);
782
	var option2=document.createElement("option");
783
	var text2=document.createTextNode("GCMD");
784
	option2.appendChild(text2);
785
	newField.appendChild(option2);
786

    
787
        if(value == "None"){
788
            newField.selectedIndex=0;
789
        } else if(value == "GCMD"){
790
            newField.selectedIndex=1;
791
        }
792
	return newField;
793
    }
794

    
795
    function createKeyTypeSelect(name, value) {
796
        var newField=document.createElement("select");
797
        newField.setAttribute("name", name);
798
	var option1=document.createElement("option");
799
	var text1=document.createTextNode("None");
800
	option1.appendChild(text1);
801
	newField.appendChild(option1);
802
	var option2=document.createElement("option");
803
	var text2=document.createTextNode("Theme");
804
	option2.appendChild(text2);
805
	newField.appendChild(option2);
806
	var option3=document.createElement("option");
807
	var text3=document.createTextNode("Place");
808
	option3.appendChild(text3);
809
	newField.appendChild(option3)
810
	var option4=document.createElement("option");
811
	var text4=document.createTextNode("Stratum");
812
	option4.appendChild(text4);
813
	newField.appendChild(option4);
814
	var option5=document.createElement("option");
815
	var text5=document.createTextNode("Temporal");
816
	option5.appendChild(text5);
817
	newField.appendChild(option5);
818
	var option6=document.createElement("option");
819
	var text6=document.createTextNode("Taxonomic");
820
	option6.appendChild(text6);
821
	newField.appendChild(option6);        
822
        if(value == "None"){
823
            newField.selectedIndex=0;
824
        } else if(value == "Theme"){
825
            newField.selectedIndex=1;
826
        } else if(value == "Place"){
827
            newField.selectedIndex=2;
828
        } else if(value == "Stratum"){
829
            newField.selectedIndex=3;
830
        }else if(value == "Temporal"){
831
            newField.selectedIndex=4;
832
        } else if(value == "Taxonomic"){
833
            newField.selectedIndex=5;
834
        }
835
	return newField;
836
    }
837
    
838
    var basicInfoBit = 1;
839
    var dsoBit = 1;
840
    var apBit = 1;
841
    var abstractBit = 1;
842
    var keywordBit = 1;
843
    var temporalBit = 1;
844
    var spatialBit = 1;
845
    var taxonomicBit = 1;
846
    var methodBit = 1;
847
    var dscBit = 1;
848
    var distBit = 1;
849
    
850
    function swap(evt, _node, nodeBit){
851
        evt = (evt) ? evt : ((window.event) ? window.event : null);
852
        if(evt) {
853
            var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
854
            
855
            // hack so that this works on safari...
856
            if(elem.nodeName != 'A'){
857
                elem=elem.parentNode;
858
            }
859
            elem.removeChild(elem.firstChild);
860
            var node = document.getElementById(_node);
861
            if(nodeBit){
862
                elem.appendChild(document.createTextNode("Show"));
863
                node.className="hide";
864
                return 0;
865
            } else {
866
                elem.appendChild(document.createTextNode("Hide"));
867
                node.className="tables";
868
                return 1;
869
            }
870
        }        
871
    }
872

    
873

    
874
    function handleOther(enable, node){
875
        var textBox = document.getElementById(node);
876
        if(enable){
877
       	   textBox.removeAttribute("disabled");   
878
        } else {
879
           textBox.value="";
880
      	   textBox.disabled = "true";   
881
        }
882
    }
883
    function copyContact(){
884
        var checkBox = document.getElementById("copyCheckBox");
885
        if(checkBox.checked == true)
886
	{
887
	   var cnf=document.getElementById("contactNameFirst");
888
	   var onf=document.getElementById("origNameFirst");
889
	   cnf.value = onf.value;
890
	   cnf.disabled = "true";
891

    
892
	   var cnl=document.getElementById("contactNameLast");
893
	   var onl=document.getElementById("origNameLast");
894
	   cnl.value = onl.value;
895
	   cnl.disabled = "true";
896

    
897
	   var cno=document.getElementById("contactNameOrg");
898
	   var ono=document.getElementById("origNameOrg");
899
	   cno.value = ono.value;
900
	   cno.disabled = "true";
901

    
902
	   var ce=document.getElementById("contactEmail");
903
	   var oe=document.getElementById("origEmail");
904
	   ce.value = oe.value;
905
	   ce.disabled = "true";
906

    
907
	   var cp=document.getElementById("contactPhone");
908
	   var op=document.getElementById("origPhone");
909
	   cp.value = op.value;
910
	   cp.disabled = "true";
911

    
912
	   var cf=document.getElementById("contactFAX");
913
	   var of=document.getElementById("origFAX");
914
	   cf.value = of.value;
915
	   cf.disabled = "true";
916

    
917
	   var cd=document.getElementById("contactDelivery");
918
	   var od=document.getElementById("origDelivery");
919
	   cd.value = od.value;
920
	   cd.disabled = "true";
921

    
922
	   var cc=document.getElementById("contactCity");
923
	   var oc=document.getElementById("origCity");
924
	   cc.value = oc.value;
925
	   cc.disabled = "true";
926

    
927
	   var cs=document.getElementById("contactState");
928
	   var os=document.getElementById("origState");
929
	   cs.options[os.selectedIndex].selected=true;
930
	   cs.disabled = "true";           
931

    
932
	   var cso=document.getElementById("contactStateOther");
933
	   var oso=document.getElementById("origStateOther");
934
	   cso.value = oso.value;
935
	   cso.disabled = "true";
936

    
937
	   var cz=document.getElementById("contactZip");
938
	   var oz=document.getElementById("origZip");
939
	   cz.value = oz.value;
940
	   cz.disabled = "true";
941

    
942
	   var cC=document.getElementById("contactCountry");
943
	   var oC=document.getElementById("origCountry");
944
	   cC.value = oC.value;
945
	   cC.disabled = "true";
946

    
947
	} else {
948
	   var cnf=document.getElementById("contactNameFirst");
949
	   cnf.value = "";
950
	   cnf.removeAttribute("disabled");
951

    
952
	   var cnl=document.getElementById("contactNameLast");
953
	   cnl.value = "";
954
	   cnl.removeAttribute("disabled");
955

    
956
	   var cno=document.getElementById("contactNameOrg");
957
	   cno.value = "";
958
	   cno.removeAttribute("disabled");
959

    
960
	   var ce=document.getElementById("contactEmail");
961
	   ce.value = "";
962
	   ce.removeAttribute("disabled");
963

    
964
	   var cp=document.getElementById("contactPhone");
965
	   cp.value = "";
966
	   cp.removeAttribute("disabled");
967

    
968
	   var cf=document.getElementById("contactFAX");
969
	   cf.value = "";
970
	   cf.removeAttribute("disabled");
971

    
972
	   var cd=document.getElementById("contactDelivery");
973
	   cd.value = "";
974
	   cd.removeAttribute("disabled");
975

    
976
	   var cc=document.getElementById("contactCity");
977
	   cc.value = "";
978
	   cc.removeAttribute("disabled");
979

    
980
	   var cs=document.getElementById("contactState");
981
           cs.options[0].selected = true;
982
	   cs.removeAttribute("disabled");
983

    
984
	   var cso=document.getElementById("contactStateOther");
985
	   cso.value = "";
986
	   cso.removeAttribute("disabled");
987

    
988
	   var cz=document.getElementById("contactZip");
989
	   cz.value = "";
990
	   cz.removeAttribute("disabled");
991

    
992
	   var cC=document.getElementById("contactCountry");
993
	   cC.value = "";
994
	   cC.removeAttribute("disabled");
995
	}
996
    }
997

    
998
  </script>
999

    
1000
      [% IF form != 're_entry' %]	
1001
      
1002
      
1003
      <table class="intro" cellpadding="3" cellspacing="0">
1004
      
1005
      <tr><td align="left"><span class="emphasis">Data [%IF cfg =='nceas'%] Repository [% ELSE %] Registry [% END %] Form</td></tr>
1006
      <tr><td align="left"><span class="regtext">Use this form to submit a new data set description for
1007
         inclusion in the [%IF cfg =='nceas'%] repository [% ELSE %] registry [% END %].</span></td></tr>
1008
      <tr><td></td></tr>
1009
      <tr><td align="left"><span class="regtext">Please have a look at the 
1010
      <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
1011
        <span class="boldlink">Guide for Completing the Data [%IF cfg =='nceas'%] Repository [% ELSE %] Registry [% END %] Form</span></a> 
1012
        before you start filling in this form. Also, use your browser's 
1013
        Reload/Refresh function to make sure you see the latest version of this 
1014
        page.</span></td></tr>
1015
      <tr><td></td></tr>
1016
      <tr><td align="left"><span class="regtext">If you have any questions, comments or problems 
1017
      regarding this form, please contact [% adminname %] at 
1018
      <a href="mailto:[% recipient %]"><span class="boldlink">[% recipient %]</span></a></span>.      
1019
      </td></tr><tr><td></td></tr>
1020
      [% ELSE %]
1021
      
1022
      
1023
      <table class="intro" cellpadding="3" cellspacing="0">
1024
      <tr><td align="left"><span class="regtext">Use this page to edit the data set description that you submitted earlier to the [%IF cfg =='nceas'%] 
1025
      repository [% ELSE %] registry [% END %].
1026
      [%IF docid !=''%]
1027
      <br>The ID of this data set is: <span class="boldlink"><a href="@servlet-path@?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
1028
      </span>
1029
      [%END%]
1030
      </span></td></tr>
1031
      <tr><td></td></tr>
1032
      <tr><td align="left"><span class="regtext">Please have a look at the 
1033
      <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
1034
        <span class="boldlink">Guide for Completing the Data [%IF cfg =='nceas'%] Repository [% ELSE %] Registry [% END %] Form</span></a> 
1035
        for help with filling in this form.</span></td</tr>
1036
      <tr><td></td></tr>
1037
      <tr><td align="left"><span class="regtext">If you have any questions, comments or problems 
1038
      regarding this form, please contact [% adminname %] at 
1039
      <a href="mailto:[% recipient %]"><span class="boldling">[% recipient %]</span></a>.</span>
1040
      </td></tr><tr><td></td></tr>
1041
      [% END %]
1042
      
1043
      
1044
      <tr><td align="left"><span class="label">*Denotes a required field.</span></td></tr>
1045
      <tr><td></td></tr>
1046
      
1047
      <tr><td></td></tr>
1048
      
1049
      </table>
1050

    
1051

    
1052
<form action="@cgi-prefix@/register-dataset.cgi" method="post">
1053
  <input type="hidden" name="cfg" value="[% cfg %]">
1054
  <input type="hidden" name="docid" value="[% docid %]">
1055
  <input type="hidden" name="stage" value="insert">
1056
  <input type="hidden" name="showSiteList" value="[% showSiteList %]">
1057
  <input type="hidden" name="showWgList" value="[% showWgList %]">
1058
  <input type="hidden" name="showOrganization" value="[% showOrganization %]">
1059
  <input type="hidden" name="lsite" value="[% lsite %]">
1060
  <input type="hidden" name="usite" value="[% usite %]">
1061
  <input type="hidden" name="hasKeyword" value="[% hasKeyword %]">
1062
  <input type="hidden" name="hasTemporal" value="[% hasTemporal %]">
1063
  <input type="hidden" name="hasSpatial" value="[% hasSpatial %]">
1064
  <input type="hidden" name="hasTaxonomic" value="[% hasTaxonomic %]">
1065
  <input type="hidden" name="hasMethod" value="[% hasMethod %]">
1066
  <input type="hidden" name="temporalRequired" value="[% temporalRequired %]">
1067
  <input type="hidden" name="spatialRequired" value="[% spatialRequired %]">
1068
  
1069
        <table class="tables" cellpadding="5" cellspacing="0">
1070
        <tr class="sectheader"><td colspan="5" align="left"><span class="label">BASIC INFORMATION&nbsp;
1071
	<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation" target="guide">
1072
        <span class="smalltext">(What's this?)</span></a></td>
1073
        <td class="rightCol"><span><a onClick="basicInfoBit=swap(event, 'basicInfoTable', basicInfoBit)" style="cursor:pointer">Hide</a></span></td>
1074
        </tr>
1075
	</table>
1076
        
1077
        <table class="tables" cellpadding="5" cellspacing="0" id="basicInfoTable">
1078
        <tr class="sectbody" id="firstName"><td class="rightCol"><span class="label">*First Name</span><td colspan="5"><input type="TEXT" name="providerGivenName" class="shortwidth" value="[%providerGivenName%]">
1079
        </td></tr>
1080
	<tr class="sectbody" id="lastName"><td class="rightCol"><span class="label">*Last Name</span><td colspan="5"><input type="TEXT" name="providerSurName" class="shortwidth" value="[%providerSurName%]">
1081
        </td></tr>
1082
	
1083
	<tr class="sectbody" id="title"><td class="rightCol"><span class="label">*Data Set Title</span></td><td colspan="5"><input type="TEXT" name="title" value="[%title%]" class="longwidth">
1084
        </td></tr>
1085
		
1086
	[% IF showSiteList == 'true' %]
1087
        <tr class="sectbody" id="sitelist"><td class="rightCol"><span class="label">*[% usite %] Name</span></td>
1088
	  <td colspan="5"><select name="site" class="longwidth">
1089
	    [% IF form == 're_entry' %]
1090
	    	<option selected>[%site%]</option>
1091
	    [% ELSE %]
1092
	        <option>Select your [% lsite %] here.</option>
1093
	    [% END %]
1094
            [% FOREACH site = siteList %]
1095
              <option>[% site %]</option>
1096
            [% END %]
1097
          </select></td></tr>
1098
[% END %]
1099
        
1100
	[% IF showWgList == 'true' %]
1101
        <tr class="sectbody"><td class="rightCol"><span class="label">*NCEAS Project(s):</span></td>
1102
            <td colspan="5"><select name="wg" multiple="multiple" size="5" class="longwidth">
1103
            [% FOREACH project = projects %]
1104
              [% SET pname = $project.3 %]
1105
              [% IF pname.length > 50 %]
1106
                [% SET sname = $project.4 %]
1107
              [% END %]
1108
              [% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
1109
              [% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
1110
              [% SET sel = '' %]
1111
              [% FOREACH group = wg %]
1112
                  [% IF group == value %]
1113
                      [% SET sel = 'selected="selected"' %]
1114
                  [% END %]
1115
              [% END %]
1116
              <option value="[% value %]" [% sel %]>[% label %]</option>
1117
            [% END %]
1118
          </select></td></tr>
1119
[% END %]
1120
[% IF showOrganization == 'true' %]
1121
        <tr class="sectbody"><td class="rightCol"><span class="label">*Organization Name</span></td>
1122
            <td colspan="5"><input type="TEXT" name="site" class="longwidth" value="[%site%]"></td></tr>
1123
[% END %]
1124
            
1125
        </table>
1126
       
1127
    <table class="tables" cellpadding="5" cellspacing="0">
1128
        <tr class="sectheader"><td colspan="5" align="left"><span class="label">PRINCIPAL DATA SET OWNER&nbsp;</span>
1129
	<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator" 
1130
	target="guide"><span class="smalltext">(What's this?)</span></a></td>
1131
        <td class="rightCol"><span><a onClick="dsoBit=swap(event, 'dsoTable', dsoBit)" style="cursor:pointer">Hide</a></span></td>
1132
        </tr>
1133
    </table>
1134

    
1135
    <table class="tables" cellpadding="5" cellspacing="0" id="dsoTable">    
1136
    <tr class="sectbody"><td class="rightCol"><span class="label">*First Name</span></td>
1137
        <td colspan="5"><input type="TEXT" name="origNamefirst0" class="shortwidth" id="origNameFirst" value="[%origNamefirst0%]"></td></tr>
1138
    <tr class="sectbody"><td class="rightCol"><span class="label">*Last Name</span></td>
1139
        <td colspan="5"><input type="TEXT" name="origNamelast0" class="shortwidth" id="origNameLast" value="[%origNamelast0%]"></td></tr>
1140
    <tr class="sectbody"><td class="rightCol"><span class="label">Organization Name</span></td>
1141
        <td colspan="5"><input type="TEXT" name="origNameOrg" class="longwidth" id="origNameOrg" value="[%origNameOrg%]"></td></tr>
1142
    <tr class="sectbody"><td class="rightCol"><span class="label">E-Mail</span></td>
1143
         <td colspan="5"><input type="TEXT" name="origEmail" class="shortwidth" id="origEmail" value="[%origEmail%]"></td></tr>
1144
    <tr class="sectbody"><td class="rightCol"><span class="label">Phone</span></td>
1145
        <td colspan="5"><input type="TEXT" name="origPhone" class="shortwidth" id="origPhone" value="[%origPhone%]"></td></tr>
1146
    <tr class="sectbody"><td class="rightCol"><span class="label">FAX</span></td>
1147
        <td colspan="5"><input type="TEXT" name="origFAX" class="shortwidth" id="origFAX" value="[%origFAX%]"></td></tr>
1148
  
1149
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td> 
1150
        <td colspan="5"><textarea id="origDelivery" name="origDelivery" class="longwidth">[%origDelivery%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span>
1151
        </td></tr>
1152
    
1153
    <tr class="sectbody"><td class="rightCol"><span class="label">City</span></td>
1154
        <td colspan="5"><input type="TEXT" name="origCity" id="origCity" value="[%origCity%]" class="shortwidth"></td></tr>
1155
    <tr class="sectbody"><td class="rightCol"><span class="label">U.S. State or Territory</span></td>
1156
        <td colspan="5"><select name="origState" id="origState" class="shortwidth">
1157
	    [% IF form == 're_entry' %]
1158
                <option selected>[%origState%]</option>
1159
	    [% ELSE %]
1160
		<option>Select state or territory here.</option>
1161
	    [% END %]
1162
            <option>Alabama</option>
1163
            <option>Alaska</option>
1164
            <option>American Samoa</option>
1165
            <option>Arizona</option>
1166
            <option>Arkansas</option>
1167
            <option>California</option>
1168
            <option>Colorado</option>
1169
            <option>Connecticut</option>
1170
            <option>Delaware</option>
1171
            <option>District of Columbia</option>
1172
            <option>Federated States of Micronesia</option>
1173
            <option>Florida</option>
1174
            <option>Georgia</option>
1175
            <option>Guam</option>
1176
            <option>Hawaii</option>
1177
            <option>Idaho</option>
1178
            <option>Illinois</option>
1179
            <option>Indiana</option>
1180
            <option>Iowa</option>
1181
            <option>Kansas</option>
1182
            <option>Kentucky</option>
1183
            <option>Louisiana</option>
1184
            <option>Maine</option>
1185
            <option>Marshall Islands</option>
1186
            <option>Maryland</option>
1187
            <option>Massachusetts</option>
1188
            <option>Michigan</option>
1189
            <option>Minnesota</option>
1190
            <option>Mississippi</option>
1191
            <option>Missouri</option>
1192
            <option>Montana</option>
1193
            <option>Nebraska</option>
1194
            <option>Nevada</option>
1195
            <option>New Hampshire</option>
1196
            <option>New Jersey</option>
1197
            <option>New Mexico</option>
1198
            <option>New York</option>
1199
            <option>North Carolina</option>
1200
            <option>North Dakota</option>
1201
            <option>Northern Mariana Islands</option>
1202
            <option>Ohio</option>
1203
            <option>Oklahoma</option>
1204
            <option>Oregon</option>
1205
            <option>Palau</option>
1206
            <option>Pennsylvania</option>
1207
            <option>Puerto Rico</option>
1208
            <option>Rhode Island</option>
1209
            <option>South Carolina</option>
1210
            <option>South Dakota</option>
1211
            <option>Tennessee</option>
1212
            <option>Texas</option>
1213
            <option>Utah</option>
1214
            <option>Vermont</option>
1215
            <option>Virgin Islands</option>
1216
            <option>Virginia</option>
1217
            <option>Washington</option>
1218
            <option>West Virginia</option>
1219
            <option>Wisconsin</option>
1220
            <option>Wyoming</option>
1221
	    </select></td></tr>
1222
   
1223
	  <tr class="sectbody"><td class="rightCol"><span class="label">Other State/Province</span></td>
1224
          <td colspan="5"><input type="TEXT" name="origStateOther" class="shortwidth" id="origStateOther" value="[%origStateOther%]"></td></tr>
1225
    <tr class="sectbody"><td class="rightCol"><span class="label">Postal Code</span></td>
1226
        <td colspan="5"><input type="TEXT" name="origZIP" id="origZip" value="[%origZIP%]" class="shortwidth"></td></tr>
1227
    <tr class="sectbody"><td class="rightCol"><span class="label">Country</span></td>
1228
        <td colspan="5"><input type="TEXT" name="origCountry" class="shortwidth" id="origCountry" value="[%origCountry%]"></td></tr>
1229
    </table>
1230
   
1231
    <table class="tables" cellpadding="5" cellspacing="0">
1232
    <tr class="sectheader"><td colspan="5" align="left"><span class="label">ASSOCIATED PARTIES&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators"
1233
         target="guide"><span class="smalltext">(What's this?)</span></a></td>
1234
         <td class="rightCol"><span><a onClick="apBit=swap(event, 'apTable', apBit)" style="cursor:pointer">Hide</a></span></td>
1235
    </tr>
1236
    </table>
1237

    
1238
    <table class="tables" cellpadding="5" cellspacing="0" id="apTable">    
1239
    <tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td>
1240
        <td colspan="5">
1241
        <input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr>
1242
            
1243
    <tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td>
1244
        <td colspan="5">
1245
        <input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr>
1246
                   
1247
    <tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td>
1248
        <td colspan="5"> 
1249
        <select id="AORole" name="aoRole" class="shortwidth">
1250
            <option>Co-owner</option>
1251
            <option>Custodian/Steward</option>
1252
            <option>Metadata Provider</option>
1253
	    <option>User</option>
1254
        </select>
1255
        </td>
1256
    </tr>
1257
  
1258
   <tr id="addAssociatedParty" class="sectbody"> 
1259
            <td></td>
1260
            <td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1"
1261
                    onClick="addAssociatedParty()"></td></tr>
1262
       
1263
    [% numAO = 0 %]
1264
    [% IF aoCount > 0 %]
1265
        [% numAO = aoCount %]
1266
        <tr class="sectbody" id="aoHRRow">
1267
            <td colSpan="6">
1268
                <hr width = "85%"/>
1269
            </td>
1270
        </tr>
1271
    [% END %]
1272
    [% cnt = 1 %]
1273
    [% WHILE cnt < numAO%]
1274
            
1275
        <tr class="sectbody">
1276
            [% SET aofn = "origNamefirst${cnt}" %]
1277
            [% SET aoln = "origNamelast${cnt}" %]
1278
            [% SET aorole = "origRole${cnt}" %]
1279
     
1280
            <td class="rightCol">
1281
                <a style="cursor:pointer">
1282
                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
1283
                    src="@systemidserver@@html-path@/style/images/previous.gif"
1284
                    alt="Move Up" border="0"/>
1285
                </a>
1286
                <a style="cursor:pointer">
1287
                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
1288
                    src="@systemidserver@@html-path@/style/images/next.gif"
1289
                    alt="Move Down" border="0"/>
1290
                </a>
1291
                <a style="cursor:pointer">
1292
                    <img src="@systemidserver@@html-path@/style/images/delete.gif"
1293
                    onClick="delRow(event)" alt="Delete" border="0"/>
1294
                </a>
1295
            </td>
1296
            <td colspan="5" align ="left" style="cursor:pointer"
1297
                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
1298
                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
1299
                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
1300
                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
1301
                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
1302
            </td>
1303
        </tr>
1304
        [% cnt = cnt + 1 %]
1305
    [% END %]
1306
    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
1307
    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
1308
    </table>
1309
   
1310
    <table class="tables" cellpadding="5" cellspacing="0">  		    
1311
  <tr class="sectheader"><td colspan="5" align="left"><span class="label">DATA SET ABSTRACT&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"
1312
          target="guide"><span class="smalltext">(What's this?)</span></td>
1313
          <td class="rightCol"><span><a onClick="abstractBit=swap(event, 'abstractTable', abstractBit)" style="cursor:pointer">Hide</a></span></td>        
1314
  </tr>  
1315
    </table>
1316
   
1317
    <table class="tables" cellpadding="5" cellspacing="0" id="abstractTable">  
1318
    <tr class="sectbody"><td class="rightCol" valign="top"><span class="label">*Data Set Abstract</span></td>
1319
        <td colspan="5"><textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea></td></tr>
1320
    </table>
1321
   
1322
  [% IF hasKeyword == 'true' %]
1323
    <table class="tables" cellpadding="5" cellspacing="0">
1324
  <tr class="sectheader"><td colspan="5" align="left"><span class="label">KEYWORD INFORMATION <span class="label">&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"
1325
        target="guide"><span class="smalltext">(What's this?)</span></a></td>
1326
        <td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
1327
        </tr>
1328
    </table>
1329
   
1330
    <table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">     
1331
     <tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
1332
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
1333
"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
1334
     
1335
      <tr class="sectbody">
1336
        <td class="rightCol"><span class="label">Keyword</span></td>
1337
      <td colspan="5">
1338
            <input name="keyword" id="keyword" class="shortwidth"></td></tr>
1339

    
1340

    
1341
     <tr class="sectbody"><td class="rightCol"><span class="label">Keyword Type</span></td>
1342
     <td colspan="5">
1343
            <select name="keywordType" id="keywordType" class="shortwidth">
1344
	    <option>None</option>
1345
            <option>Theme</option>
1346
            <option>Place</option>
1347
            <option>Stratum</option>
1348
            <option>Temporal</option>
1349
            <option>Taxonomic</option>
1350
            </select>
1351
        </td></tr>
1352
      
1353
        <tr id="keyThRow" class="sectbody"><td class="rightCol"><span class="label">Keyword Thesaurus</span></td>
1354
          <td colspan="5">
1355
            
1356
            <select name="keywordTh" id="keywordTh" class="shortwidth">
1357
   	     <option>None</option>
1358
             <option>GCMD</option>
1359
            </select>
1360
	    
1361
	  <!--  <input type="radio"  name="kwTh[%cnt%]" value="none"><span class="regtext">None&nbsp;&nbsp;</span>
1362
	  <input type="radio"  name="kwTh[%cnt%]" value="GCMD"><span class="regtext">GCMD&nbsp;&nbsp;</span> --> 
1363
	   
1364
	    
1365
	    </td></tr>
1366
            
1367
	  <tr id="addKeyword" class="sectbody">
1368
          <td></td>
1369
          <td colspan="5" align="left">
1370
                   <input type="button" value="Add Keyword" onClick="addKeyword()"></td></tr>
1371
        
1372
        
1373
 [% numKey = 0 %]
1374
 [% IF keyCount > 0 %]
1375
   [% numKey = keyCount %]
1376
        [% numAO = aoCount %]
1377
        <tr class="sectbody" id="keywordHRRow">
1378
            <td colSpan="6">
1379
                <hr width = "85%"/>
1380
            </td>
1381
        </tr>
1382
 [% END %]
1383
 <input type="hidden" name="keyCount" value="[%numKey%]" 
1384
            id="keyCount">
1385
   
1386
      [% cnt = 1 %]
1387
        [% WHILE cnt < numKey %]
1388
        
1389
           <tr class="sectbody">
1390
            <td class="rightCol">
1391
                <a style="cursor:pointer">
1392
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
1393
                    src="@systemidserver@@html-path@/style/images/previous.gif"
1394
                    alt="Move Up" border="0"/>
1395
                </a>
1396
                <a style="cursor:pointer">
1397
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
1398
                    src="@systemidserver@@html-path@/style/images/next.gif"
1399
                    alt="Move Down" border="0"/>
1400
                </a>
1401
                <a style="cursor:pointer">
1402
                    <img src="@systemidserver@@html-path@/style/images/delete.gif"
1403
                    onClick="delRow(event)" alt="Delete" border="0"/>
1404
                </a>
1405
            </td>
1406
            [% SET keyword = "keyword${cnt}" %]
1407
            [% SET keywordType = "kwType${cnt}" %]
1408
            [% SET keywordTh = "kwTh${cnt}" %]
1409
            <td colspan="5" align ="left" style="cursor:pointer"
1410
                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
1411
                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
1412
                <input name="keyword" type="hidden" value="[%$keyword%]"/>
1413
                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
1414
                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
1415
            </td>
1416
        </tr>
1417
        [% cnt = cnt + 1 %]
1418
       [% END %]
1419
        <tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
1420
       </table>
1421
  [% END %]
1422
  
1423
  [% IF hasTemporal == 'true' %]
1424
   
1425
  <table class="tables" cellpadding="5" cellspacing="0">   
1426
  <tr class="sectheader"><td colspan="5" align="left"><span class="label">
1427
  TEMPORAL COVERAGE OF DATA&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"
1428
   target="guide"><span class="smalltext">(What's this?)</span></a></td>
1429
   <td class="rightCol"><span><a onClick="temporalBit=swap(event, 'temporalTable', temporalBit)" style="cursor:pointer">Hide</a></span></td>
1430
   </tr>
1431
   </table>
1432
   
1433
   <table class="tables" cellpadding="5" cellspacing="0" id="temporalTable">  
1434
   <tr class="sectbody">
1435
      <td/>
1436
      <td align="left"><span class="label">Start Date</span></td>
1437
      <td/>
1438
      <td align="left"><span class="label">Stop Date</span></td>
1439
      <td colspan="2"></td>
1440
      </tr>
1441
     
1442
      <tr class="sectbody"> 
1443
        <td class="rightCol"> 
1444
          [% IF temporalRequired == 'true' %]
1445
          	<span class="label">*Year (yyyy)</span>
1446
          [% ELSE %]
1447
		<span class="label">Year (yyyy)</span>
1448
	  [% END %]</td>
1449
	<td align="left" style="width:15%"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td>
1450
        <td class="rightCol"><span class="label">Year (yyyy)</span></td>
1451
	<td align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td>
1452
        <td colspan="3"></td>
1453
      </tr>
1454
          
1455
	  
1456
	<tr class="sectbody">
1457
	  <td class="rightCol">
1458
	  [% IF temporalRequired == 'true' %]
1459
	        <span class="label">*Month</span>
1460
          [% ELSE %]
1461
		<span class="label">Month</span>
1462
	  [% END %]</td>
1463
	  <td align="left"><select name="beginningMonth">
1464
	    [% IF form == 're_entry' && beginningMonth != ""%]
1465
	    	<option selected>[%beginningMonth%]</option>
1466
	    [% END %]
1467
            <option>00</option>            <option>01</option>            <option>02</option>            <option>03</option>
1468
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
1469
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
1470
            <option>12</option>
1471
          </select></td>
1472
      
1473
         <td class="rightCol"><span class="label">Month</span></td>
1474
	 <td align="left"> <select name="endingMonth">
1475
	    [% IF form == 're_entry' && endingMonth != ""%]
1476
	    	<option selected>[%endingMonth%]</option>
1477
	    [% END %]
1478
            <option>00</option>            <option>01</option>            <option>02</option>            <option>03</option>
1479
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
1480
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
1481
            <option>12</option>
1482
          </select></td>  <td colspan="2"></td></tr>
1483
	 	  
1484
   <tr class="sectbody">
1485
	  <td class="rightCol"> 
1486
          [% IF temporalRequired == 'true' %]
1487
        	  <span class="label">*Day</span>
1488
          [% ELSE %]
1489
	          <span class="label">Day</span>
1490
	  [% END %]</td>
1491
	  
1492
	  <td align="left"><select name="beginningDay">
1493
	    [% IF form == 're_entry' && beginningDay != ""%]
1494
	    	<option selected>[%beginningDay%]</option>
1495
	    [% END %]
1496
            <option>00</option>            <option>01</option>            <option>02</option>            <option>03</option>
1497
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
1498
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
1499
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
1500
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
1501
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
1502
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
1503
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
1504
          </select></td>
1505
      
1506
          <td class="rightCol"><span class="label">Day</span></td>
1507
	  <td align="left"><select name="endingDay">
1508
	    [% IF form == 're_entry' && endingDay != ""%]
1509
	    	<option selected>[%endingDay%]</option>
1510
	    [% END %]
1511
            <option>00</option>            <option>01</option>            <option>02</option>            <option>03</option>
1512
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
1513
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
1514
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
1515
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
1516
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
1517
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
1518
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
1519
          </select></td>
1520
          <td colspan="2"></td></tr>
1521
  <tr class="sectbody"> 
1522
      <td></td><td align="left" colspan="5"> 
1523
       <span class="label">Note:&nbsp;</span><span class="regtext">Leave "Stop Date" blank if your data set is open-ended.</span>
1524
     </td></tr>
1525
     </table>
1526
  [% END %]  
1527
  
1528
[% IF hasSpatial == 'true' %]
1529

    
1530
  <table class="tables" cellpadding="5" cellspacing="0">  
1531

    
1532
  <tr class="sectheader"><td colspan="5" align="left"><span class="label">SPATIAL COVERAGE OF DATA&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData" 
1533
  target="guide"><span class="smalltext">(What's this?)</span></a>
1534
 </td>
1535
 <td class="rightCol"><span><a onClick="spatialBit=swap(event, 'spatialTable', spatialBit)" style="cursor:pointer">Hide</a></span></td>
1536
 </tr>
1537
   </table>
1538
   
1539
   <table class="tables" cellpadding="5" cellspacing="0" id="spatialTable">  
1540
   
1541
    <tr class="sectbody">
1542
       [% IF spatialRequired == 'true' %]
1543
      	  <td align="right" valign="top"><span class="label">*Geographic Description</span></td>
1544
    [% ELSE %]
1545
          <td align="right" valign="top"><span class="label">Geographic Description</span></td>
1546
    [% END %]    
1547
          <td align="left" colspan="5"><textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea></td></tr>
1548
    <tr class="sectbody"><td><td colspan="4"><span class="regtext">General description of the geographic area in which the data were collected. 
1549
    It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span></td><td>
1550
    </td></tr>
1551
    <tr class="sectbody"><td class="topbottom" align="center" colspan="6"><span class="label">COORDINATES</span></td></tr>
1552
        
1553
     
1554
<!--[% IF showSiteList == 'true' %]
1555
    <tr class="sectbody"><td align="left" valign="top" colspan="6">
1556
        <input class="label" type="CHECKBOX" name="useSiteCoord" [%useSiteCoord%]>
1557
        <span class="regtext">Use [% lsite %] coordinates. (This indicates that the data were
1558
        collected at the [% lsite %]. If you check this box, you don't need
1559
        to fill in the lat./long. fields below).</span>
1560
        </td></tr>
1561
[% END %]-->
1562
    
1563
    <tr class="sectbody">
1564
        <td width="190"></td><td width="100" align="left"><span class="label">Degrees</span></td>
1565
	<td width="110" align="left"><span class="label">Minutes</span></td>
1566
	<td width="70" align="left"><span class="label">Seconds</span></td>
1567
        <td width="200"></td><td width="90"</td></tr>
1568
		    
1569
      
1570
     <tr class="sectbody">
1571
     <td class="rightCol">
1572
      [% IF spatialRequired == 'true' %]
1573
        <span class="label">*Latitude</span>
1574
      [% ELSE %]
1575
        <span class="label">Latitude</span>
1576
      [% END %]</td> 
1577
     <td> 
1578
          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
1579
      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
1580
      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
1581
      
1582
      <td Align="left" colspan="2"> 
1583
    
1584
<!--    <select name="hemisphLat1">
1585
	    [% IF form == 're_entry' && hemisphLat1 != ""%]
1586
	    	<option selected>[%hemisphLat1%]</option>
1587
	    [% END %]
1588
            <option>N</option>
1589
            <option>S</option>
1590
          </select>   -->
1591
	  
1592
	    [% IF form == 're_entry' && hemisphLat1 == "N"%]
1593
	  <input type="radio"  name="hemisphLat1" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
1594
	[%ELSE%]
1595
	  <input type="radio"  name="hemisphLat1" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
1596
	[%END%]
1597
	    [% IF form == 're_entry' && hemisphLat1 == "S"%]
1598
	  <input type="radio"  name="hemisphLat1" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
1599
	  [%ELSE%]
1600
	  <input type="radio"  name="hemisphLat1" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
1601
	[%END%]
1602

    
1603
	  </td></tr>
1604
      
1605
           
1606
    <tr class="sectbody">
1607
      <td class="rightCol"> 
1608
      [% IF spatialRequired == 'true' %]
1609
        <span class="label">*Longitude</span>
1610
      [% ELSE %]
1611
        <span class="label">Longitude</span>
1612
      [% END %]</td>
1613
     
1614
      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
1615
      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
1616
      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
1617
      
1618
      
1619
      <td align="left" colspan="2"> 
1620
          
1621
<!--     <select name="hemisphLong1">
1622
	    [% IF form == 're_entry' && hemisphLong1 != ""%]
1623
	    	<option selected>[%hemisphLong1%]</option>
1624
	    [% END %]
1625
            <option>W</option>
1626
            <option>E</option>
1627
          </select>   -->
1628
	  
1629
	  
1630
	    [% IF form == 're_entry' && hemisphLong1 == "W"%]
1631
	  <input type="radio"  name="hemisphLong1" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
1632
	[%ELSE%]
1633
	  <input type="radio"  name="hemisphLong1" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
1634
	[%END%]
1635
	    [% IF form == 're_entry' && hemisphLong1 == "E"%]
1636
	  <input type="radio"  name="hemisphLong1" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
1637
	  [%ELSE%]
1638
	  <input type="radio"  name="hemisphLong1" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
1639
	  [%END%]
1640
	  </td></tr>
1641
      
1642
      
1643
      <tr class="sectbody"><td><td colspan="4" align="left"><span class="regtext">If only this first lat/long pair is entered, this indicates a point location. If both lat/long pairs are entered, then this first pair represents the northwest corner of a bounding box.</span>
1644
      </td><td></td></tr>
1645
      
1646
      <tr class="sectbody"> 
1647
      <td class="rightCol"><span class="label">Latitude</span></td>
1648
	<td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
1649
        <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
1650
        <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
1651
        
1652
	<td align="left" colspan="2"> 
1653
          
1654
<!--      <select name="hemisphLat2">
1655
	    [% IF form == 're_entry' && hemisphLat2 != ""%]
1656
	    	<option selected>[%hemisphLat2%]</option>
1657
            [% END %]
1658
	    <option>N</option>
1659
            <option>S</option>
1660
          </select> -->
1661
	  
1662
	    [% IF form == 're_entry' && hemisphLat2 == "N"%]
1663
	  <input type="radio"  name="hemisphLat2" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
1664
	[%ELSE%]
1665
	  <input type="radio"  name="hemisphLat2" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
1666
	[%END%]
1667
	    [% IF form == 're_entry' && hemisphLat2 == "S"%]
1668
	  <input type="radio"  name="hemisphLat2" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
1669
	  [%ELSE%]
1670
	  <input type="radio"  name="hemisphLat2" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
1671
	  [%END%]
1672
	  
1673
	  </td></tr>
1674
    
1675
    <tr class="sectbody"><td class="rightCol"><span class="label">Longitude</span></td>
1676
       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
1677
       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
1678
       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
1679
       <td align="left" colspan="2">
1680
       
1681
<!--      <select name="hemisphLong2">
1682
            [% IF form == 're_entry' && hemisphLong2 != ""%]
1683
	    	<option selected>[%hemisphLong2%]</option>
1684
	    [% END %]
1685
            <option>W</option>
1686
            <option>E</option>
1687
          </select> -->
1688
	  
1689
	    [% IF form == 're_entry' && hemisphLong2 == "W"%]
1690
	  <input type="radio"  name="hemisphLong2" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
1691
	[%ELSE%]
1692
	  <input type="radio"  name="hemisphLong2" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
1693
	[%END%]
1694
	    [% IF form == 're_entry' && hemisphLong2 == "E"%]
1695
	  <input type="radio"  name="hemisphLong2" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
1696
	  [%ELSE%]
1697
	  <input type="radio"  name="hemisphLong2" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
1698
	  [%END%]
1699
	  
1700
	  </td></tr>
1701
  <tr class="sectbody"><td></td>
1702
       <td align="left" colspan="4"><span class="regtext">
1703
        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
1704
      </td><td></td></tr>
1705
    </table>    
1706
   [% END %]
1707

    
1708
   [% IF hasTaxonomic == 'true' %]
1709
   
1710
   <table class="tables" cellpadding="5" cellspacing="0">  
1711

    
1712
        <tr class="sectheader"><td colspan="5" align="left">
1713
        <span class="label">TAXONOMIC COVERAGE OF DATA&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage" 
1714
	target="guide"><span class="smalltext">(What's this?)</span></a> </td>
1715
        <td class="rightCol"><span><a onClick="taxonomicBit=swap(event, 'taxonomicTable', taxonomicBit)" style="cursor:pointer">Hide</a></span></td>
1716
        </tr>
1717
    </table>
1718
   
1719
    <table class="tables" cellpadding="5" cellspacing="0" id="taxonomicTable">  
1720
        <tr class="sectbody"><td></td>
1721
        <td colspan="5" align="left"><span class="regtext">See the <a href=
1722
        "http://darwin.zoology.gla.ac.uk/~rpage/MyToL/www/index.php" target="_blank">Glasgow Taxonomic Name Server</a> or the <a href=
1723
        "http://www.itis.usda.gov/" target="_blank">Integrated Taxonomic Information System</a> for correct spelling of taxonomic names.</td></tr>
1724
  
1725
        <tr class="sectbody"> 
1726
            <td class="rightCol"><span class="label">Taxonomic Rank</span></td>
1727
            <td align="left" colspan="5">
1728
                <input name="taxonRank" id="taxonRank" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., Species)</span>
1729
            </td>
1730
        </tr>
1731

    
1732
        <tr class="sectbody"> 
1733
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
1734
            <td align="left" colspan="5">
1735
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
1736
            </td>
1737
        </tr>
1738

    
1739
        <tr id="addTaxon" class="sectbody"> 
1740
            <td></td>
1741
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
1742
                    onClick="addTaxon()">
1743
            </td>
1744
        </tr>
1745

    
1746
        [% numTaxa = 0 %]
1747
        [% IF taxaCount > 0 %]
1748
            [% numTaxa = taxaCount %]
1749
            <tr class="sectbody" id="taxonHRRow">
1750
                <td colSpan="6">
1751
                    <hr width = "85%"/>
1752
                </td>
1753
            </tr>
1754
        [% END %]
1755
        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
1756
    
1757
        [% cnt = 1 %]
1758
        [% WHILE cnt <= numTaxa%]        
1759
            <tr class="sectbody">
1760
                <td class="rightCol">
1761
                    <a style="cursor:pointer">
1762
                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
1763
                        src="@systemidserver@@html-path@/style/images/previous.gif"
1764
                        alt="Move Up" border="0"/>
1765
                    </a>
1766
                    <a style="cursor:pointer">
1767
                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
1768
                        src="@systemidserver@@html-path@/style/images/next.gif"
1769
                        alt="Move Down" border="0"/>
1770
                    </a>
1771
                    <a style="cursor:pointer">
1772
                        <img src="@systemidserver@@html-path@/style/images/delete.gif"
1773
                        onClick="delRow(event)" alt="Delete" border="0"/>
1774
                    </a>
1775
                </td>
1776
                [% SET trn = "taxonRankName${cnt}" %]
1777
                [% SET trv = "taxonRankValue${cnt}" %]
1778
                <td colspan="5" align ="left" style="cursor:pointer"
1779
                    onClick="taxonEditRow(event, 0, '[%$trn%]', '[%$trv%]')">
1780
                    Rank: [%$trn%], Name: [%$trv%]
1781
                    <input name="taxonName" type="hidden" value="[%$trn%]"/>
1782
                    <input name="taxonRank" type="hidden" value="[%$trv%]"/>
1783
                </td>
1784
            </tr>
1785
            [% cnt = cnt + 1 %]
1786
        [% END %]
1787

    
1788
     <tr class="sectbody" id="addtaxarow"> 
1789
        <td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
1790
        <td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
1791
        </tr>
1792
     <tr class="sectbody">
1793
     <td></td>
1794
     <td colspan="5"><span class="regtext">List the source(s) used for identifying and naming taxa (e.g., name of a <br>field guide, key, or
1795
     nomenclature revision).</span></td>
1796
     </tr>   
1797
   </table>
1798
    [% END %]	
1799

    
1800
  [% IF hasMethod == 'true' %]
1801
   <table class="tables" cellpadding="5" cellspacing="0">  
1802
  <tr class="sectheader"><td colspan="5" align="left">
1803
  <span class="label">DATA COLLECTION METHODS&nbsp;</span>
1804
  <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide"><span class="smalltext">(What's this?)</span></a></td>
1805
  <td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
1806
  </tr>
1807
     </table>
1808
   
1809
   <table class="tables" cellpadding="5" cellspacing="0" id="methodTable">  
1810

    
1811
    <tr class="sectbody"> 
1812
      <td class="rightCol"><span class="label">Method Title</span></td>
1813
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
1814

    
1815
       <tr class="sectbody"><td valign="top" class="rightCol"><span class="label">Method Description</span>      
1816
        <td colspan="5" align="left">
1817
        [% IF methodPara.size < 1 %]
1818
          <textarea rows="6" cols="60" name="methodPara"></textarea>
1819
        [% END %]
1820
        [% FOREACH para = methodPara %]
1821
           <textarea rows="6" cols="60" name="methodPara">[% para %]</textarea>
1822
        [% END %]
1823
        </td></tr>
1824
        
1825
    <tr class="sectbody" id="addparabutton1">
1826
    <td ></td>
1827
    <td colspan="5" align="left">
1828
          <input type="button" value="Add Paragraph to Method Description" 
1829
                 onClick="addParagraph()"></td></tr>
1830
   
1831
     
1832
    <tr class="sectbody">
1833
      <td valign="top" align="right" class="bordertop">
1834
       <span class="label">Extent of Study Description</span>
1835
       </td>
1836
        <td colspan="5" align="left" class="bordertop"><textarea rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea></td>
1837
    </tr>
1838
	
1839
   <tr class="sectbody">
1840
    <td>
1841
    </td>
1842
    <td colspan="5"><span class="regtext">
1843
        Describe the temporal, spatial and taxonomic extent of the study,<br>
1844
        supplementing the information on coverage provided above.  <br>
1845
        For example, if the temporal coverage of the data is 1990-2000, you<br>
1846
        might provide details about any years that were missed or the months<br>
1847
        in which sampling occurred.</span>
1848
    </td>
1849
    </tr>
1850
          
1851
    <tr class="sectbody"><td class="bordertop" valign="top" align="right"><span class="label">Sampling Description</span></td>
1852
        <td colspan="5" align="left" class="bordertop" ><textarea rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea></td></tr>
1853
	
1854
   <tr class="sectbody"><td><td colspan="5"><span class="regtext">
1855
        Describe the sampling design of the study.  For example, you might <br> 
1856
        describe the way in which treatments were assigned to sampling units.</span></td></tr>
1857
      
1858
    </table>     
1859
   [% END %]
1860
 
1861
   <table class="tables" cellpadding="5" cellspacing="0">    
1862
  <tr class="sectheader"><td colspan="5" align="left">
1863
  <span class="label">DATA SET CONTACT&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide"><span class="smalltext">(What's this?)</span></a></td>
1864
  <td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
1865
  </tr>
1866
     </table>
1867
   
1868
   <table class="tables" cellpadding="5" cellspacing="0" id="dscTable">  
1869
  <tr class="sectbody"><td valign="top" align="left" colspan="6">
1870
        <input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
1871
        <span class="regtext">Use the same name and address as the <span class="label">PRINCIPAL DATA SET OWNER</span> above.</span></td></tr> 
1872
   <tr class="sectbody">
1873
      <td class="rightCol"><span class="label">*First Name</span></td>
1874
      <td colspan="5"><input type="TEXT" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]" class="shortwidth"></td></tr>
1875
    <tr class="sectbody">
1876
      <td class="rightCol"><span class="label">*Last Name</span>
1877
      <td colspan="5"><input type="TEXT" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]" class="shortwidth"></td></tr>
1878
    <tr class="sectbody">
1879
      <td class="rightCol"><span class="label">Organization Name</span>
1880
      <td colspan="5"><input type="TEXT" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]" class="longwidth"></td></tr>
1881
    <tr class="sectbody">      
1882
      <td class="rightCol"><span class="label">E-Mail</span>
1883
      <td colspan="5"><input type="TEXT" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]" class="shortwidth"></td></tr>
1884
    <tr class="sectbody">
1885
      <td class="rightCol"><span class="label">Phone</span>
1886
      <td colspan="5"><input type="TEXT" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]" class="shortwidth"></td></tr>
1887
    <tr class="sectbody"> 
1888
      <td class="rightCol"><span class="label">FAX</span>
1889
      <td colspan="5"><input type="TEXT" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]" class="shortwidth"></td></tr>
1890
    <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td>
1891
      <td colspan="5"><textarea rows="3" cols="30" name="origDeliveryContact" id="contactDelivery">[%origDeliveryContact%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span></td></tr>
1892
    <tr class="sectbody">    
1893
      <td class="rightCol"><span class="label">City</span>
1894
      <td colspan="5"><input type="TEXT" name="origCityContact" id="contactCity" value="[%origCityContact%]" class="shortwidth"></td></tr>
1895
    <tr class="sectbody">
1896
      <td class="rightCol"><span class="label">U.S. State or Territory</span>
1897
      <td colspan="5"><select id="contactState" name="origStateContact" class="shortwidth">
1898
	    [% IF form == 're_entry' %]	
1899
            	<option>[%origStateContact%]</option>
1900
	    [% ELSE %]
1901
                <option>Select state or territory here.</option>
1902
            [% END %]
1903
	        <option>Alabama</option>
1904
            <option>Alaska</option>
1905
            <option>American Samoa</option>
1906
            <option>Arizona</option>
1907
            <option>Arkansas</option>
1908
            <option>California</option>
1909
            <option>Colorado</option>
1910
            <option>Connecticut</option>
1911
            <option>Delaware</option>
1912
            <option>District of Columbia</option>
1913
            <option>Federated States of Micronesia</option>
1914
            <option>Florida</option>
1915
            <option>Georgia</option>
1916
            <option>Guam</option>
1917
            <option>Hawaii</option>
1918
            <option>Idaho</option>
1919
            <option>Illinois</option>
1920
            <option>Indiana</option>
1921
            <option>Iowa</option>
1922
            <option>Kansas</option>
1923
            <option>Kentucky</option>
1924
            <option>Louisiana</option>
1925
            <option>Maine</option>
1926
            <option>Marshall Islands</option>
1927
            <option>Maryland</option>
1928
            <option>Massachusetts</option>
1929
            <option>Michigan</option>
1930
            <option>Minnesota</option>
1931
            <option>Mississippi</option>
1932
            <option>Missouri</option>
1933
            <option>Montana</option>
1934
            <option>Nebraska</option>
1935
            <option>Nevada</option>
1936
            <option>New Hampshire</option>
1937
            <option>New Jersey</option>
1938
            <option>New Mexico</option>
1939
            <option>New York</option>
1940
            <option>North Carolina</option>
1941
            <option>North Dakota</option>
1942
            <option>Northern Mariana Islands</option>
1943
            <option>Ohio</option>
1944
            <option>Oklahoma</option>
1945
            <option>Oregon</option>
1946
            <option>Palau</option>
1947
            <option>Pennsylvania</option>
1948
            <option>Puerto Rico</option>
1949
            <option>Rhode Island</option>
1950
            <option>South Carolina</option>
1951
            <option>South Dakota</option>
1952
            <option>Tennessee</option>
1953
            <option>Texas</option>
1954
            <option>Utah</option>
1955
            <option>Vermont</option>
1956
            <option>Virgin Islands</option>
1957
            <option>Virginia</option>
1958
            <option>Washington</option>
1959
            <option>West Virginia</option>
1960
            <option>Wisconsin</option>
1961
            <option>Wyoming</option>
1962
          </select></td></tr>
1963
     <tr class="sectbody">
1964
        <td class="rightCol"><span class="label">Other State/Province</span>
1965
	<td colspan="5"><input type="TEXT" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]" class="shortwidth"></td></tr>
1966
     <tr class="sectbody">     
1967
        <td class="rightCol"><span class="label">Postal Code</span>
1968
	<td colspan="5"><input type="TEXT" name="origZIPContact" class="shortwidth" id="contactZip" value="[%origZIPContact%]"></td></tr>
1969
     <tr class="sectbody">
1970
        <td class="rightCol"><span class="label">Country</span>
1971
        <td colspan="5"><input type="TEXT" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]" class="shortwidth"></td></tr>
1972
     </table>
1973
   
1974
   <table class="tables" cellpadding="5" cellspacing="0">  
1975
  <tr class="sectheader"><td colspan="5" align="left">
1976
  <span class="label">DISTRIBUTION INFORMATION&nbsp;</span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation" 
1977
  target="guide"><span class="smalltext">(What's this?)</span></a></td>
1978
  <td class="rightCol"><span><a onClick="distBit=swap(event, 'distTable', distBit)" style="cursor:pointer">Hide</a></span></td>
1979
  </tr>
1980
   </table>
1981
   
1982
   <table class="tables" cellpadding="5" cellspacing="0" id="distTable">  
1983
  <tr class="sectbody"><td class="rightCol"><span class="label">Data Set Identifier</span></td>
1984
  <td colspan="5"><input type="TEXT" name="identifier" value="[%identifier%]" class="longwidth"></td></tr>
1985
  <tr class="sectbody"><td valign="top" align="right"><span class="label">Note:</span></td>
1986
     <td colspan="4" align="left"><span class="regtext">
1987
     If available, please enter a name or number that uniquely identifies and<br>
1988
     describes concisely the data set. Alternatively, provide other pertinent<br>
1989
     information that can identify and locate the data set within your site's<br>
1990
     data management system.</span></td><td></td></tr>
1991
  
1992
    <tr class="sectbody">
1993
        <td class="rightCol"><span class="label">*Data Medium</span></td>
1994
  
1995
        <td colspan="5" align="left">
1996
        [% IF form == 're_entry' && dataMedium == "digital " %]	
1997
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED><span class="regtext">Digital&nbsp;&nbsp;</span></input>
1998
        [%ELSE%]
1999
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital"><span class="regtext">Digital&nbsp;&nbsp;</span></input>
2000
        [% END %]
2001
        [% IF form == 're_entry' && dataMedium == "hardcopy " %]	
2002
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED><span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
2003
        [%ELSE%]
2004
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy"><span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
2005
        [% END %]
2006
        [% IF form == 're_entry' && dataMedium == "other" %]
2007
           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED><span class="regtext">Other&nbsp;</span></input>
2008
        [%ELSE%]
2009
           <input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other"><span class="regtext">Other&nbsp;</span></input>
2010
        [% END %]
2011

    
2012
	<input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
2013
        </td>
2014
    </tr>  
2015
  
2016
  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
2017
      <td colspan="5" align="left">
2018
      
2019
      
2020
      
2021
<!--      <select name="useConstraints">
2022
	    [% IF form == 're_entry' %]	
2023
	        <option selected>[%useConstraints%]</option>
2024
	    [% ELSE %]
2025
                <option>Select restrictions here.</option>
2026
	    [% END %]
2027
            <option>No restrictions</option>
2028
            <option>Obtain permission from data set owner(s)</option>
2029
            <option>Other</option>
2030
          </select>  -->
2031
	  
2032
          [% IF form == 're_entry' && useConstraints == "no restrictions" %]		  
2033
	    <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED><span class="regtext">No restrictions&nbsp;&nbsp;</span>
2034
          [%ELSE%]
2035
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions"><span class="regtext">No restrictions&nbsp;&nbsp;</span>
2036
          [%END%]
2037
          [% IF form == 're_entry' && useConstraints == "permissions" %]		  
2038
  	    <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="permissions" CHECKED><span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
2039
          [%ELSE%]
2040
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="permissions"><span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
2041
          [%END%]
2042
          </td></tr>
2043
	  
2044

    
2045
   
2046
   <tr class="sectbody"><td></td><td colspan="5" align="left">
2047
 
2048
    [% IF form == 're_entry' && useConstraints == "other" %]		  
2049
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED><span class="regtext">Other&nbsp;</span>
2050
    [%ELSE%]
2051
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other"><span class="regtext">Other&nbsp;</span>
2052
    [%END%]
2053
   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
2054
   
2055
   
2056
   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
2057
   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
2058
   
2059
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
2060
   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
2061
   
2062
   </table>
2063
   
2064
   <table class="tables" cellpadding="5" cellspacing="0">    
2065
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
2066
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
2067
              
2068
   
2069
   <!-- <span>&nbsp;&nbsp;</span><input type="RESET" value="Reset Form" name="RESET"></td></tr>-->
2070
    </table>
2071
    <p></p>
2072
   
2073
</form>
2074

    
2075

    
2076
[% INCLUDE "genericFooter.tmpl" %]