These scripts are made to encode text to mRNA codon sequences and visa-versa.  Use it here.

Encode

This script translates the single letter name of amino acids to the corresponding RNA. You can translate all letters (upper and lower), all numbers, most symbols (excluding ` and forward slash)

Decode

This script translates mRNA into the single letter name for the corresponding amino acid. It has a maximum of 100 codons per run


<html>
<head>
<title>mRNA Encoder/Decoder by Michael Dombrowski | mikedombrowski.com | v1.0.3</title>
</head>
<body>
<p>These scripts are made to encode text to mRNA codon sequences and visa-versa</p>
<p>These scripts were completely written by <a href="http://mikedombrowski.com">Michael Dombrowski.</a></p>
<p>     <a href="mailto:michael@mikedombrowski.com">Email Me Here</a></p>
<br/><FORM NAME="myform" ACTION="" METHOD="GET">
Enter what you want to be encoded or decoded. For decode start with the first AUG:   
<INPUT TYPE="text" NAME="inputbox" VALUE="">
<INPUT TYPE="button" NAME="button" Value="Encode" onClick="encode(this.form)">
<INPUT TYPE="button" NAME="button" Value="Decode" onClick="decode(this.form)">
</FORM>
<input type="button" onclick="toggle_visibility('1');;" value="More about encoding mRNA" />
<input type="button" onclick="toggle_visibility('2');" value="More about decoding mRNA" />
<div id="1" style="display:none"><p>This script translates the single letter name of amino acids to the corresponding RNA.  You can translate all letters (upper and lower), all numbers, most symbols (excluding ` and forward slash)</p></div>
<div id="2" style="display:none"><p>This script translates mRNA into the single letter name for the corresponding amino acid. It has a maximum of 100 codons per run</p></div>
<script type="text/javascript">
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else e.style.display = 'none';     
}
</script>
<script type="text/javascript">
function decode(form){
var RNA1 = form.inputbox.value;
var RNA = RNA1.toUpperCase();
var start = 3;
var stop = 6;
var i = 0;
var result = new Array();
document.write('This script translates mRNA into the single letter name for the corresponding amino acid. It has a maximum of 100 codons per run <br/>Your input                 ', RNA);
document.write(" <br/> Your decoded RNA--- ")
    
    if (RNA.substring(0,3) != 'AUG')  {
    alert('You did not start with the first AUG codon!');
    }
    
    if (RNA.substring(0,3) == 'AUG')  {
    result.push('M/Start');
    }
    
    for (i=0;i<=100;i++) {
    if (RNA.substring(start,stop) == '"B"') {
    result.push('B');
    var start = start+3;
    var stop = stop+3;
    }
    
    if (RNA.substring(start,stop) == '"O"') {
    result.push('O');
    var start = start+3;
    var stop = stop+3;
    }
    
    if (RNA.substring(start,stop) == '"X"') {
    result.push('X');
    var start = start+3;
    var stop = stop+3;
    }
    
    if (RNA.substring(start,stop) == '"J"') {
    result.push('J');
    var start = start+3;
    var stop = stop+3;
    }
    
    if (RNA.substring(start,stop) == '"U"') {
    result.push('U');
    var start = start+3;
    var stop = stop+3;
    }

    if (RNA.substring(start,stop) == '"Z"') {
    result.push('Z');
    var start = start+3;
    var stop = stop+3;
    }
    
    if (RNA.substring(start,stop) == 'AUG') {
    result.push('M');
    var start = start+3;
    var stop = stop+3;
    }
    
     if (RNA.substring(start,stop) == 'UUU')  {
    result.push('F');
    var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UUC')  {
    result.push('F');
    var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UUG')  {
    result.push('L');
    var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UUA')  {
    result.push('L');
    var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CUU')  {
    result.push('L');
        var start = start+3;
        var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CUC')  {
    result.push('L');
        var start = start+3;
        var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CUA')  {
    result.push('L');
        var start = start+3;
        var stop = stop+3;
        }   

     if (RNA.substring(start,stop) == 'CUG')  {
    result.push('L');
        var start = start+3;
        var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AUU')  {
    result.push('I');
        var start = start+3;
        var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AUC')  {
    result.push('I');
        var start = start+3;
        var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AUA')  {
    result.push('I');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GUU')  {
    result.push('V');
        var start = start+3;
    var stop = stop+3;
        }
        
     if (RNA.substring(start,stop) == 'GUC')  {
    result.push('V');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GUA')  {
    result.push('V');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GUG')  {
    result.push('V');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UCU')  {
    result.push('S');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UCC')  {
    result.push('S');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UCA')  {
    result.push('S');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UCG')  {
    result.push('S');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CCU')  {
    result.push('P');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CCC')  {
    result.push('P');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CCA')  {
    result.push('P');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CCG')  {
    result.push('P');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'ACU')  {
    result.push('T');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'ACC')  {
    result.push('T');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'ACA')  {
    result.push('T');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'ACG')  {
    result.push('T');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GCU')  {
    result.push('A');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GCC')  {
    result.push('A');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GCA')  {
    result.push('A');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GCG')  {
    result.push('A');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UAU')  {
    result.push('Y');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UAC')  {
    result.push('Y');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CAU')  {
    result.push('H');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CAC')  {
    result.push('H');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CAA')  {
    result.push('Q');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CAG')  {
    result.push('Q');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AAU')  {
    result.push('N');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AAC')  {
    result.push('N');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AAA')  {
    result.push('K');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AAG')  {
    result.push('K');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GAU')  {
    result.push('D');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GAC')  {
    result.push('D');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GAA')  {
    result.push('E');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GAG')  {
    result.push('E');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'UGU')  {
    result.push('C');
        var start = start+3;
    var stop = stop+3;
        }
        
     if (RNA.substring(start,stop) == 'UGC')  {
    result.push('C');
        var start = start+3;
    var stop = stop+3;
        }
        
     if (RNA.substring(start,stop) == 'UGG')  {
    result.push('W');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CGU')  {
    result.push('R');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CGC')  {
    result.push('R');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CGA')  {
    result.push('R');
        var start = start+3;
        var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'CGG')  {
    result.push('R');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AGU')  {
    result.push('S');
        var start = start+3;
    var stop = stop+3;
        }
        
     if (RNA.substring(start,stop) == 'AGC')  {
    result.push('S');
        var start = start+3;
    var stop = stop+3;
        }
    
     if (RNA.substring(start,stop) == 'AGA')  {
    result.push('R');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'AGG')  {
    result.push('R');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GGU')  {
    result.push('G');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GGC')  {
    result.push('G');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GGA')  {
    result.push('G');
        var start = start+3;
    var stop = stop+3;
        }

     if (RNA.substring(start,stop) == 'GGG')  {
    result.push('G');
        var start = start+3;
    var stop = stop+3;
        }
    if (RNA.substring(start,stop) == ' ') {
    document.write(' ');
    var start = start+1;
    var stop = stop+1;
    }
        }
    if (RNA.substring(start,stop) == 'UAA') {
    result.push('Stop. Please input starting at the next AUG and run again.');
    }
        if (RNA.substring(start,stop) == 'UAG') {
    result.push('Stop. Please input starting at the next AUG and run again.');
    }
        if (RNA.substring(start,stop) == 'UGA') {
    result.push('Stop. Please input starting at the next AUG and run again.');
    }
    document.write(result);
    document.write('<br/><a href="">Do it again</a>');
    document.write('<center><p>© 2011 Michael Dombrowski, Some Rights Reserved</p><p><a href="http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en">Creative Commons Attribution-NonCommercial-ShareAlike</a></p><p><a href="http://mikedombrowski.com">http://mikedombrowski.com</a> | mRNA Encoder/Decoder v1.0.3</p></center>');
    }
//                   ,--.               ,----..                           
//    ,---,.       ,--.'|  ,----..     /   /         ,---,        ,---,. 
//  ,'  .' |   ,--,:  : | /   /      /   .     :   .'  .' `    ,'  .' | 
//,---.'   |,`--.'`|  ' :|   :     : .   /   ;.  ,---.'      ,---.'   | 
//|   |   .'|   :  :  | |.   |  ;. /.   ;   /  ` ;|   |  .`  ||   |   .' 
//:   :  |-,:   |    | :.   ; /--` ;   |  ;  ; |:   : |  '  |:   :  |-, 
//:   |  ;/||   : '  '; |;   | ;    |   :  | ; | '|   ' '  ;  ::   |  ;/| 
//|   :   .''   ' ;.    ;|   : |    .   |  ' ' ' :'   | ;  .  ||   :   .' 
//|   |  |-,|   | |    |.   | '___ '   ;  ; /  ||   | :  |  '|   |  |-, 
//'   :  ;/|'   : |  ; .''   ; : .'|      ',  / '   : | /  ; '   :  ;/| 
//|   |    |   | '`--'  '   | '/  :  ;   :    /  |   | '` ,/  |   |     
//|   :   .''   : |      |   :    /        .'   ;   :  .'    |   :   .' 
//|   | ,'  ;   |.'           .'      `---`     |   ,.'      |   | ,'   
//`----'    '---'          `---`                  '---'        `----'     
    
function encode(form) {
var RNA = form.inputbox.value;
var start = 0;
var stop = 1;
var i = 0;
document.write('This script translates the single letter name of amino acids to the corresponding RNA.  You can translate all letters (upper and lower), all numbers, most symbols (excluding ` and forward slash) The many "A"s at the end is the poly-A tail and is added for accuracy<br/>Your input is ---           ', RNA);
document.write(' <br/> Your encoded RNA--- ');
document.write('AUG');
for(i=0;i<=50;i++) {
    if (RNA.substring(start,stop) == ' ') {
    document.write('');
    var start = start+1;
    var stop = stop+1;
    }
    
    if (RNA.substring(start,stop) == 'M') {
    document.write('AUG');
    var start = start+1;
    var stop = stop+1;
    }

     if (RNA.substring(start,stop) == 'F')  {
    arr=['UUC','UUU']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
    var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'L')  {
    arr=['UUG','UUA','CUU','CUC','CUA','CUG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
    var start = start+1;
    var stop = stop+1;
        }


     if (RNA.substring(start,stop) == 'I')  {
    arr=['AUU','AUC','AUA']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
        var stop = stop+1;
        }


     if (RNA.substring(start,stop) == 'V')  {
    arr=['GUU','GUC','GUA','GUG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'P')  {
    arr=['CCU','CCC','CCA','CCG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'T')  {
    arr=['ACU','ACC','ACA','ACG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'A')  {
    arr=['GCU','GCC','GCA','GCG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'Y')  {
    arr=['UAU','UAC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'H')  {
    arr=['CAU','CAC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'Q')  {
    arr=['CAA','CAG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'N')  {
    document.write('AAU');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'K')  {
    document.write('AAA');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'D')  {
    arr=['GAU','GAC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'E')  {
    arr=['GAA','GAG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'C')  {
    document.write('UGU');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'W')  {
    document.write('UGG');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'R')  {
    arr=['CGU','CGC','CGA','CGG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'S')  {
    arr=['UCU','UCC','UCA','UCG','AGU','AGC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'G')  {
    arr=['GGU','GGC','GGA','GGG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'B')  {
    document.write('"B"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'J')  {
    document.write('"J"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'O')  {
    document.write('"O"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'Q')  {
    document.write('"Q"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'U')  {
    document.write('"U"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'X')  {
    document.write('"X"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'Z')  {
    document.write('"Z"');
        var start = start+1;
    var stop = stop+1;
        }

//Lowercase

     if (RNA.substring(start,stop) == 'm') {
    document.write('AUG');
    var start = start+1;
    var stop = stop+1;
    }

     if (RNA.substring(start,stop) == 'f')  {
    arr=['UUC','UUU']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
    var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'l')  {
    arr=['UUG','UUA','CUU','CUC','CUA','CUG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
    var start = start+1;
    var stop = stop+1;
        }


     if (RNA.substring(start,stop) == 'i')  {
    arr=['AUU','AUC','AUA']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
        var stop = stop+1;
        }


     if (RNA.substring(start,stop) == 'v')  {
    arr=['GUU','GUC','GUA','GUG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'p')  {
    arr=['CCU','CCC','CCA','CCG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 't')  {
    arr=['ACU','ACC','ACA','ACG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'a')  {
    arr=['GCU','GCC','GCA','GCG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'y')  {
    arr=['UAU','UAC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'h')  {
    arr=['CAU','CAC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'q')  {
    arr=['CAA','CAG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'n')  {
    document.write('AAU');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'k')  {
    document.write('AAA');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'd')  {
    arr=['GAU','GAC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'e')  {
    arr=['GAA','GAG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'c')  {
    document.write('UGU');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'w')  {
    document.write('UGG');
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'r')  {
    arr=['CGU','CGC','CGA','CGG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 's')  {
    arr=['UCU','UCC','UCA','UCG','AGU','AGC']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }

     if (RNA.substring(start,stop) == 'g')  {
    arr=['GGU','GGC','GGA','GGG']
    document.write(arr[Math.floor ( Math.random() * arr.length )]);
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'b')  {
    document.write('"B"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'j')  {
    document.write('"J"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'o')  {
    document.write('"O"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'q')  {
    document.write('"Q"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'u')  {
    document.write('"U"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'x')  {
    document.write('"X"');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == 'z')  {
    document.write('"Z"');
        var start = start+1;
    var stop = stop+1;
        }
//symbols
if (RNA.substring(start,stop) == '?')  {
    document.write('?');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '`')  {
    document.write('"`"');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '~')  {
    document.write('"~"');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '!')  {
    document.write('!');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '@')  {
    document.write('@');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '#')  {
    document.write('#');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '$')  {
    document.write('$');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '%')  {
    document.write('%');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '^')  {
    document.write('^');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '&')  {
    document.write('&');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '*')  {
    document.write('*');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '(')  {
    document.write('(');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == ')')  {
    document.write(')');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '-')  {
    document.write('-');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '_')  {
    document.write('_');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '+')  {
    document.write('+');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '=')  {
    document.write('=');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '/')  {
    document.write('/');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '|')  {
    document.write('|');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '[')  {
    document.write('[');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == ']')  {
    document.write(']');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '{')  {
    document.write('{');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '}')  {
    document.write('}');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '"')  {
    document.write('"');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == ';')  {
    document.write(';');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == ':')  {
    document.write(':');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == ',')  {
    document.write(',');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '.')  {
    document.write('.');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '<')  {
    document.write('&lt');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '>')  {
    document.write('&gt');
        var start = start+1;
    var stop = stop+1;
        }

//Numbers

if (RNA.substring(start,stop) == '1')  {
    document.write('1');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '2')  {
    document.write('2');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '3')  {
    document.write('3');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '4')  {
    document.write('4');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '5')  {
    document.write('5');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '6')  {
    document.write('6');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '7')  {
    document.write('7');
        var start = start+1;
    var stop = stop+1;
        }
    if (RNA.substring(start,stop) == '8')  {
    document.write('8');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '9')  {
    document.write('9');
        var start = start+1;
    var stop = stop+1;
        }
if (RNA.substring(start,stop) == '0')  {
    document.write('0');
        var start = start+1;
    var stop = stop+1;
        }
        }
    document.write('UAAAAAAAAAAAAAAAA');
    document.write('<br/><a href="">Do it again</a>');
    document.write('<center><p>© 2011 Michael Dombrowski, Some Rights Reserved</p><p><a href="http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en">Creative Commons Attribution-NonCommercial-ShareAlike</a></p><p><a href="http://mikedombrowski.com">http://mikedombrowski.com</a> | mRNA Encoder/Decoder v1.0.3</p></center>');
    }
</script>
<center>
<p>© 2011 Michael Dombrowski, Some Rights Reserved</p>
<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en">Creative Commons Attribution-NonCommercial-ShareAlike</a></p>
<p><a href="http://mikedombrowski.com">http://mikedombrowski.com</a> | mRNA Encoder/Decoder v1.0.3</p>
</center>
</body>
</html>

Leave a Reply