var riboWin = null;

function
showXRNAImageServlet(xrna_filename, title)
{
	// using this works for pdf download, but not localhost
	// on my own machine
	xrna_address = "http://rna.ucsc.edu:9090/xrna/xrna_frames.jsp?xrna_io_file=" + xrna_filename + ".xrna";
	/*
	xrna_address = "http://localhost:9090/xrna/xrna_frames.jsp?xrna_io_file=" + xrna_filename + ".xrna";
	*/
	riboWin = window.open(xrna_address, "",
		"width=700,height=600,resizable=1,scrollbars=1");
}

function
runXRNAFormatServlet()
{
	// using this works for pdf download, but not localhost
	// on my own machine

	// xrna_address = "http://rna.ucsc.edu:9090/xrna/xrna_frames.jsp?new_sstr=true";
	xrna_address = "http://rna.ucsc.edu:9090/xrna/xrna_frames.jsp?new_sstr=true&new_sstr_name=e.coli 5S&primary_structure=UGCCUGGCGGCCGUAGCGCGGUGGUCCCACCUGACCCCAUGCCGAACUCAGAAGUGAAACGCCGUAGCGCCGAUGGUAGUGUGGGGUCUCCCCAUGCGAGAGUAGGGAACUGCCAGGCAU&secondary_structure=1:119:10;16:68:2;18:65:6;28:56:3;31:51:4;70:106:5;79:97:8;";

	riboWin = window.open(xrna_address, "",
		"width=700,height=600,resizable=1,scrollbars=1");
}
