function size_menu()
{
	var x = false;
	for (var i = 0; i < 6; i++)
	{
		if(document.getElementById("T" + i).style.visibility == "hidden")
		{ x = false; }
		else { x = true; }
		if(x) { document.getElementById("T" + i).style.visibility='hidden'; }
		else { document.getElementById("T" + i).style.visibility=''; }
	};
}

//--::::::::::::::::::::::::::::::::::::::::::::::::::- swapToolOptions
//    * swapToolOptions Changes the html page to the one selected by the user from the dropdown box 
//      on the search html pages (listed in the file header under depends) by refreshing the open window to the appropriate page
//    * Pre: The html page is any of the html pages including home, help, about, publications, results, or any of the searches
//    * In: the fcn expects a name of another search to be input
//    * Post: the fcn with then change the page to that search page
//    * Out: This fcn does not return anything

window.name = "searchtools"

function swapToolOptions(the_search_name)
{
var searchNames = new Array("Potential Binding Site","Genomic Sequence Retrival","Differential Binding Site","BAC Clone","PCR Primer Generator");
var searchFiles = new Array("potentialBS.html", "genomicSR.html", "novelBS.html", "bac.html", "pcrPrimer.html");
window.name = "searchtools"

  for (var i = 0; i < searchNames.length; i++)   //for each of the search names in the array searchNames
  {
    if(the_search_name == searchNames[i])		//if the search name passed in matches the search name in the array
    {
      window.open("/geneact/" + searchFiles[i],"searchtools");	//then that is the page to flip to, so open the same window with that new page
      i = searchNames.length + 1			//drop out of the loop
    }
  }
}

//	whose value is set to 0 when the user must reconfirm and set to the proper tool number 
//	when the user can go to the results page
//    * Pre: the search page has been checked by confirm.cgi
//    * In: no input parameters
//    * Post: the form action has been changed appropriately on the search page/confirm page
//    * Out: does not return anything
/*function determine_form_action()
{
	if(document.confirmDataForm.made_changes.value == "0") {
	document.confirmDataForm.action = '/geneact/cgi-bin/confirm.cgi';
	return true;
	}
	if(document.confirmDataForm.made_changes.value == "1") {
	document.confirmDataForm.action = 'http://promoter.colorado.edu:8080/searches/potentialSearch.jsp';
	return true;
	}
	if(document.confirmDataForm.made_changes.value == "2") {
	document.confirmDataForm.action = '/geneact/cgi-bin/results.cgi';
	return true;
	}
	if(document.confirmDataForm.made_changes.value == "3") {
	document.confirmDataForm.action = 'http://promoter.colorado.edu:8080/searches/novelSearch.jsp';
	return true;
	}
	if(document.confirmDataForm.made_changes.value == "4") {
	document.confirmDataForm.action = '/geneact/cgi-bin/results.cgi';
	return true;
	}
	if(document.confirmDataForm.made_changes.value == "5") {
	document.confirmDataForm.action = '/geneact/cgi-bin/results.cgi';
	return true;
	}
	return false;
}

*/

//::::::::::::::::::::::::::::::::::::::::::::::::::::- clear_email
//    * This fcn clears the email field when the user clicks in it
//    * Pre: the email field is clicked in
//    * In: nothing is passed in
//    * Post: The function clears the email field on the search form
//    * Out: nothing is returned
function clear_email()
{
	if(document.searchInfoForm)
	{
		document.searchInfoForm.emailaddr.value = ""		//clear the email address field
	}
	else
	{
		document.confirmDataForm.emailaddr.value = ""		//clear the email address field
	}
}

//::::::::::::::::::::::::::::::::::::::::::::::::::::- toggle_visibility
//    * This function alters the visibility style aspect of a parameter depending on the truth of the other parameter.  So if y is true, the element x becomes visible, otherwise invisible
//    * Pre: something is clicked that alters the visibility of another component on a search page
//    * In: x is an element with an id; y is a boolean (true or false) indicating whether or not a certain box on the search page has been checked
//    * Post: x's visibility is changed based on the truth value of y
//    * Out: Does not return anything
function toggle_visibility(x,y)
{
  if(y)									//if y is true
      {document.getElementById(x).style.visibility='';}	//make x visible
  else
      {document.getElementById(x).style.visibility='hidden'}//otherwise hide x, (make it invisible)
}

//::::::::::::::::::::::::::::::::::::::::::::::::::::- toggle_chroms
//    * Used to select all or deselect all chromosome checkboxes
//    * Pre: The user has selected the search that makes the chromosomes visible
//    * In: z is a boolean (true or false), indicating whether or not a certain box on the search page has been checked
//    * Post: if z is true, all of the chromosomes become checked, and if z is false, then they all are unchecked
//    * Out: Does not return anything
function toggle_chroms(z, whichall)
{
	if (whichall)	//if this is true, then we are adjusting all chroms
	{
		if(z)												//if z is true
		{
		   for(var i = 1; i < 23; i++)							//for each numbered chromosome element
		  {
			document.getElementById('Chrom' + i + '_ckbx').checked = true;	//make it checked
		  }
		   document.getElementById('ChromX_ckbx').checked = true;			//make the X chrom checked
		   document.getElementById('ChromY_ckbx').checked = true;			//make the Y chrom checked
		}
		else												//else if z is false
		{	
		   for(var i = 1; i < 23; i++)							//for each numbered chromosome element
		  {
			document.getElementById('Chrom' + i + '_ckbx').checked = false;	//uncheck it
		  }
		   document.getElementById('ChromX_ckbx').checked = false;			//uncheck the X chrom
		   document.getElementById('ChromY_ckbx').checked = false;			//uncheck the Y chrom
		}
	}
	else		//else, we are just adjusting the 'select all chroms' checkbox
	{
		if(z)
		{
			document.getElementById('allchroms').checked = false;
		}
	}
}

//::::::::::::::::::::::::::::::::::::::::::::::::::::- species_adjust_visible_forms_pcr
//    * Adjusts which parts of the page are visible or invisible depending on which species and other checkboxes are checked for the PCR Primer Generation
//    * Pre: The user clicks one or more of the species checkboxes
//    * In: takes no parameters
//    * Post: changes the visibility of certain parts of the search page, depending on what checkboxes are checked (see inline comments for specifics)
//    * Out: Does not return anything
function species_adjust_visible_forms_pcr()
{

  var species_table = document.getElementById('Species_table');		//species table
  var species_label = document.getElementById('Species_lbl');		//species label
  var contig_txt = document.getElementById('contig_text');			//contig text box
  var contig_box = document.getElementById('inputContig_ckbx');		//input contig checkbox
  var input_contig_lbl = document.getElementById('InputContig_lbl');	//input contig label
  var contig_range_lbl = document.getElementById('ContigRange_lbl');	//contig range label
  var contig_range = document.getElementById('ContigRange_fromto');	//contig range from/to fields

  var input_lbl = document.getElementById('InputSeq_lbl');			//input sequence label
  var input_box = document.getElementById('InputSeq_ckbx');			//input sequence checkbox
  var geneID_lbl = document.getElementById('GeneID_Blbl');			//Gene ID label
  var template_lbl = document.getElementById('TemplateSeq_Blbl');		//Template sequence label
  var gene_textarea = document.getElementById('GeneID_txtbx');		//gene ID text box
  var gene_filelbl = document.getElementById('GeneId_filelbl');		//gene ID file label
  var gene_file = document.getElementById('GeneId_file');			//gene ID file
  var region_table = document.getElementById('Region_table');		//table containing the regions
  var region_lbl = document.getElementById('Region_lbl');			//region label
  var range_lbl = document.getElementById('Range_lbl');			//range label
  var range_fromto = document.getElementById('Range_fromto');		//range from and to

  var fragsize_lbl = document.getElementById('FragSize_lbl');		//frag size label
  var fragsize_box = document.getElementById('FragSize_field');		//frag size field

	//if input seq check box is checked
	if(input_box.checked)
	{
		species_table.style.visibility='hidden';		//hide the species table
		species_label.style.visibility='hidden';		//hide the species label
		template_lbl.style.visibility='';  			//SHOW the template sequence label
		geneID_lbl.style.visibility='hidden';		//hide the Gene ID label
		region_table.style.visibility='hidden';		//hide the region and range fields
		region_lbl.style.visibility='hidden';		//hide the region and range fields
		range_fromto.style.visibility='hidden';		//hide the region and range fields
		range_lbl.style.visibility='hidden';		//hide the region and range fields
		gene_textarea.style.visibility='hidden';		//hide the gene textarea
		gene_filelbl.style.visibility='';			//SHOW the gene id file label and box
		gene_file.style.visibility='';			//SHOW the gene text area and file cell
		contig_txt.style.visibility='hidden';		//hide the contig text box
		contig_box.style.visibility='hidden';		//hide the input contig checkbox
		input_contig_lbl.style.visibility='hidden';	//hide the input contig label
		contig_range_lbl.style.visibility='hidden';	//hide the contig range label
		contig_range.style.visibility='hidden';		//hide the contig range from/to fields
		fragsize_lbl.style.visibility='';			//SHOW the frag size label
		fragsize_box.style.visibility='';			//SHOW the frag size field
	}
	else //input seq check box is not checked
	{
		if(contig_box.checked) //input contig box is checked
		{
			contig_txt.style.visibility='';		//SHOW the contig text box
			contig_box.style.visibility='';		//SHOW the input contig checkbox
			input_contig_lbl.style.visibility='';	//SHOW the input contig label
			contig_range_lbl.style.visibility='';	//SHOW the contig range label
			contig_range.style.visibility='';		//SHOW the contig range from/to fields

			species_table.style.visibility='hidden';		//hide the species table
			species_label.style.visibility='hidden';		//hide the species label
			template_lbl.style.visibility='hidden';  		//hide the template sequence label
			geneID_lbl.style.visibility='hidden';		//hide the Gene ID label
			region_table.style.visibility='hidden';		//hide the region and range fields
			region_lbl.style.visibility='hidden';		//hide the region and range fields
			range_fromto.style.visibility='hidden';		//hide the region and range fields
			range_lbl.style.visibility='hidden';		//hide the region and range fields
			gene_textarea.style.visibility='hidden';		//hide the gene textarea
			input_box.style.visibility='hidden';		//hide the input sequence box
			input_lbl.style.visibility='hidden';		//hide the input sequence label
			gene_filelbl.style.visibility='hidden';		//SHOW the whole cell containing the GeneID
			gene_file.style.visibility='hidden';		//SHOW the gene text area and file cell
			fragsize_lbl.style.visibility='';			//SHOW the frag size label
			fragsize_box.style.visibility='';			//SHOW the frag size field
		}
		else	//neither input seq or input contig are checked
		{
			species_table.style.visibility='';			//SHOW the species table
			species_label.style.visibility='';			//SHOW the species label
			region_table.style.visibility='';			//SHOW the region and range fields
			region_lbl.style.visibility='';			//SHOW the region and range fields
			range_fromto.style.visibility='';			//SHOW the region and range fields
			range_lbl.style.visibility='';			//SHOW the region and range fields
			input_box.style.visibility='';			//SHOW the input sequence box
			input_lbl.style.visibility='';			//SHOW the input sequence label
			template_lbl.style.visibility='hidden';		//hide the template sequence label
			geneID_lbl.style.visibility='';			//SHOW the Gene ID label
			gene_filelbl.style.visibility='';			//SHOW the whole cell containing the GeneID
			gene_textarea.style.visibility='';			//SHOW the gene textarea
			gene_file.style.visibility='';			//SHOW the gene text area and file cell

			contig_txt.style.visibility='hidden';		//hide the contig text box
			contig_box.style.visibility='';			//SHOW the input contig checkbox
			input_contig_lbl.style.visibility='';		//SHOW the input contig label
			contig_range_lbl.style.visibility='hidden';	//hide the contig range label
			contig_range.style.visibility='hidden';		//hide the contig range from/to fields
			fragsize_lbl.style.visibility='hidden';		//hide the frag size label
			fragsize_box.style.visibility='hidden';		//hide the frag size field
		}
	}
}

//::::::::::::::::::::::::::::::::::::::::::::::::::::- species_adjust_visible_forms_gsr
//    * Adjusts which parts of the page are visible or invisible depending on which species and other checkboxes are checked for the PCR Primer Generation
//    * Pre: The user clicks one or more of the species checkboxes
//    * In: takes no parameters
//    * Post: changes the visibility of certain parts of the search page, depending on what checkboxes are checked (see inline comments for specifics)
//    * Out: Does not return anything
function species_adjust_visible_forms_gsr()
{

  var species_table = document.getElementById('Species_table');			//species table
  var species_label = document.getElementById('Species_lbl');			//species label
/*
  var contig_txt = document.getElementById('contig_text');				//contig text box
 var contig_box = document.getElementById('inputContig_ckbx');			//input contig checkbox
  var input_contig_lbl = document.getElementById('InputContig_lbl');		//input contig label
 var contig_range_lbl = document.getElementById('ContigRange_lbl');		//contig range label
 var contig_range = document.getElementById('ContigRange_fromto');		//contig range from/to fields
*/
  var geneID_lbl = document.getElementById('GeneID_Blbl');				//Gene ID label
  var gene_textarea = document.getElementById('GeneID_txtbx');			//gene ID text box
 // var gene_filelbl = document.getElementById('GeneId_filelbl');			//gene ID file label
 // var gene_file = document.getElementById('GeneId_file');				//gene ID file
  var region_table = document.getElementById('Region_table');			//table containing the regions
  var region_lbl = document.getElementById('Region_lbl');				//region label
  var range_lbl = document.getElementById('Range_lbl');				//range label
  var range_fromto = document.getElementById('Range_fromto');			//range from and to

	if(contig_box.checked) //input seq box is checked
	{
/*
		contig_txt.style.visibility='';		//SHOW the contig text box
		contig_box.style.visibility='';		//SHOW the input contig checkbox
		input_contig_lbl.style.visibility='';	//SHOW the input contig label
		contig_range_lbl.style.visibility='';	//SHOW the contig range label
		contig_range.style.visibility='';		//SHOW the contig range from/to fields
*/
		species_table.style.visibility='hidden';		//hide the species table
		species_label.style.visibility='hidden';		//hide the species label
		geneID_lbl.style.visibility='hidden';		//hide the Gene ID label
		region_table.style.visibility='hidden';		//hide the region and range fields
		region_lbl.style.visibility='hidden';		//hide the region and range fields
		range_fromto.style.visibility='hidden';		//hide the region and range fields
		range_lbl.style.visibility='hidden';		//hide the region and range fields
		gene_textarea.style.visibility='hidden';		//hide the gene textarea
/*		gene_filelbl.style.visibility='hidden';		//SHOW the whole cell containing the GeneID
		gene_file.style.visibility='hidden';		//SHOW the gene text area and file cell
*/
	}
	else	//neither input seq or input contig are checked
	{
		species_table.style.visibility='';			//SHOW the species table
		species_label.style.visibility='';			//SHOW the species label
		region_table.style.visibility='';			//SHOW the region and range fields
		region_lbl.style.visibility='';			//SHOW the region and range fields
		range_fromto.style.visibility='';			//SHOW the region and range fields
		range_lbl.style.visibility='';			//SHOW the region and range fields
		geneID_lbl.style.visibility='';			//SHOW the Gene ID label
		gene_textarea.style.visibility='';			//SHOW the gene textarea
/*
		gene_file.style.visibility='';			//SHOW the gene text area and file cell
		gene_filelbl.style.visibility='';			//SHOW the whole cell containing the GeneID

		contig_txt.style.visibility='hidden';		//hide the contig text box
		contig_box.style.visibility='';			//SHOW the input contig checkbox
		input_contig_lbl.style.visibility='';		//SHOW the input contig label
		contig_range_lbl.style.visibility='hidden';	//hide the contig range label
		contig_range.style.visibility='hidden';		//hide the contig range from/to fields
*/
	}
}


//::::::::::::::::::::::::::::::::::::::::::::::::::::- species_adjust_visible_forms
//    * Adjusts which parts of the page are visible or invisible depending on which species and other checkboxes are checked
//    * Pre: The user clicks one or more of the species checkboxes
//    * In: takes no parameters
//    * Post: changes the visibility of certain parts of the search page, depending on what checkboxes are checked (see inline comments for specifics)
//    * Out: Does not return anything

function species_adjust_visible_forms()
{
  var species_table = document.getElementById('Species_div');			//species table
  var species_label = document.getElementById('Species_lbl');			//species label
  var human_sp_box = document.getElementById('Human_ckbx');				//human checkbox
  var mouse_sp_box = document.getElementById('Mouse_ckbx');				//mouse checkbox
  var rat_sp_box = document.getElementById('Rat_ckbx');				//rat checkbox
  var input_lbl = document.getElementById('InputSeq_lbl');				//input sequence label
  var input_box = document.getElementById('InputSeq_ckbx');				//input sequence checkbox
  var geneID_lbl = document.getElementById('GeneID_Blbl');				//Gene ID label
  var template_lbl = document.getElementById('TemplateSeq_Blbl');			//Template sequence label
//  var searchGenome_lbl = document.getElementById('SearchWholeGenome_lbl');	//cell containing the 'Search whole genome' checkbox
//  var searchGenome_box = document.getElementById('SearchWholeGenome_ckbx');	//the 'Search whole genome' checkbox
  var acrossGenome_lbl = document.getElementById('AcrossGenome_lbl');		//the report binding sites across genomes label
  var acrossGenome_box = document.getElementById('AcrossGenome_ckbx');		//the report binding sites across genomes checkbox
 // var wgPassCheck_box = document.getElementById('WholeGenome_passCheck');	//the 'Search whole genome' password textbox

  var gene_textarea = document.getElementById('GeneID_txtbx');			//gene ID text box
/*  var gene_filelbl = document.getElementById('GeneId_filelbl');			//gene ID file label
  var gene_file = document.getElementById('GeneId_file');				//gene ID file
  var chrom_table = document.getElementById('Chromosome_table');			//the table containing the chromosome checkboxes
  var chrom_lbl = document.getElementById('Chrom_lbl');				//the chromosome label
  var allchrom_lbl = document.getElementById('AllChrom_lbl');			//the select all chromosome label
  var allchrom_box = document.getElementById('AllChrom_ckbx');			//the select all chromosome checkbox
  var human_chrom_lbl = document.getElementById('Human_chrom_Blbl');		//the human chromosome label
  var mouse_chrom_lbl = document.getElementById('Mouse_chrom_Blbl');		//the mouse chromosome label
  var rat_chrom_lbl = document.getElementById('Rat_chrom_Blbl');			//the rat chromosome label
  var chrom20_cell = document.getElementById('Chr20_td');				//the 20th chromosome table cell
  var chrom21_cell = document.getElementById('Chr21_td');				//the 21st chromosome table cell
  var chrom22_cell = document.getElementById('Chr22_td');				//the 22nd chromosome table cell
*/
  var searchBSDB_lbl = document.getElementById('DbBinding_lbl');			//Search whole database for BS label
  var searchBSDB_box = document.getElementById('DbBinding_ckbx');			//Search whole database for BS checkbox
  var region_table = document.getElementById('Region_table');			//table containing the regions
  var region_lbl = document.getElementById('Region_lbl');				//region label
  var range_lbl = document.getElementById('Range_lbl');				//range label
  var range_fromto = document.getElementById('Range_fromto');			//range from and to


	//if at least 2 genomes are selected
	if((human_sp_box.checked + mouse_sp_box.checked + rat_sp_box.checked) > 1)
	{
/*		searchGenome_box.checked = false;			//make the 'search whole genome' checkbox unchecked
		searchGenome_lbl.style.visibility='hidden';	//hide the 'search whole genome' label
		searchGenome_box.style.visibility='hidden';	//hide the 'search whole genome' checkbox
		wgPassCheck_box.style.visibility='hidden';	//hide the 'search whole genome' password textbox
*/
		acrossGenome_lbl.style.visibility='';		//SHOW the across genome label
		acrossGenome_box.style.visibility='';		//SHOW the across genome checkbox
		input_lbl.style.visibility='';			//SHOW the input sequence label
		input_box.style.visibility='';			//SHOW the input sequence box
/*		chrom_table.style.visibility='hidden';		//hide the chromosome table
		chrom_lbl.style.visibility='hidden';		//hide the chromosome label
		human_chrom_lbl.style.visibility='hidden';
		mouse_chrom_lbl.style.visibility='hidden';
		rat_chrom_lbl.style.visibility='hidden';
		allchrom_lbl.style.visibility='hidden';		//hide the select all chromosome label
		allchrom_box.style.visibility='hidden';		//hide the select all chromosome checkbox
*/
		searchBSDB_lbl.style.visibility='';			//SHOW checkbox for searching the DB for binding sites
		searchBSDB_box.style.visibility='';			//SHOW checkbox for searching the DB for binding sites


		//if input checkbox is checked
		if(input_box.checked)
		{
			acrossGenome_lbl.style.visibility='hidden';	//hide the across genome label
			acrossGenome_box.style.visibility='hidden';	//hide the across genome checkbox
			geneID_lbl.style.visibility='hidden';		//hide the Gene ID label
			//gene_file.style.visibility='';			//SHOW the gene file
			//gene_filelbl.style.visibility='';			//SHOW the gene file
			template_lbl.style.visibility='';			//SHOW the template sequence label
			region_table.style.visibility='hidden';		//hide the region fields
			region_lbl.style.visibility='hidden';		//hide the region label
			range_lbl.style.visibility='hidden';		//hide the range label
			range_fromto.style.visibility='hidden';		//hide the range fields
			species_table.style.visibility='hidden';		//hide the species table
			species_label.style.visibility='hidden';		//hide the species label
		}
		else  //input checkbox is not checked
		{
			acrossGenome_lbl.style.visibility='';		//SHOW the across genome label
			acrossGenome_box.style.visibility='';		//SHOW the across genome checkbox
	
			geneID_lbl.style.visibility='';			//SHOW the Gene ID label		
			gene_textarea.style.visibility='';			//SHOW the gene text area and file cell

/*			gene_filelbl.style.visibility='';			//SHOW the gene text area and file cell
			gene_file.style.visibility='';			//SHOW the gene file
*/
			template_lbl.style.visibility='hidden';		//hide the template sequence label
			region_table.style.visibility='';			//SHOW the region fields
			region_lbl.style.visibility='';			//SHOW the region label
			range_lbl.style.visibility='';			//SHOW the range label
			range_fromto.style.visibility='';			//SHOW the range fields
			species_table.style.visibility='';			//SHOW the species table
			species_label.style.visibility='';			//SHOW the species label
		}
	}
	//else if only one or no species is checked
	else
	{
		acrossGenome_lbl.style.visibility='hidden';	//hide the across genome label
		acrossGenome_box.style.visibility='hidden';	//hide the across genome checkbox

		//if input seq check box is checked
		if(input_box.checked)
		{
			species_table.style.visibility='hidden';		//hide the species table
			species_label.style.visibility='hidden';		//hide the species label
/*			searchGenome_box.checked = false;			//make the 'Search whole genome' checkbox unchecked
			searchGenome_lbl.style.visibility='hidden';	//hide the 'search whole genome' label
			searchGenome_box.style.visibility='hidden';	//hide the 'search whole genome' checkbox
			wgPassCheck_box.style.visibility='hidden';	//hide the 'search whole genome' password textbox
*/
			template_lbl.style.visibility='';  			//SHOW the template sequence label
			searchBSDB_lbl.style.visibility='';			//SHOW the search db for binding sites label
			searchBSDB_box.style.visibility='';			//SHOW the search db for binding sites box
			geneID_lbl.style.visibility='hidden';		//hide the Gene ID label
/*
			gene_file.style.visibility='';			//SHOW the gene file
			gene_filelbl.style.visibility='';			//SHOW the gene file

			chrom_table.style.visibility='hidden';		//hide the chromosome table
			chrom_lbl.style.visibility='hidden';		//hide the chromosome label
			human_chrom_lbl.style.visibility='hidden';
			mouse_chrom_lbl.style.visibility='hidden';
			rat_chrom_lbl.style.visibility='hidden';
			allchrom_lbl.style.visibility='hidden';		//hide the select all chromosome label
			allchrom_box.style.visibility='hidden';		//hide the select all chromosome checkbox
*/
			region_table.style.visibility='hidden';		//hide the region fields
			region_lbl.style.visibility='hidden';		//hide the region label
			range_lbl.style.visibility='hidden';		//hide the range label
			range_fromto.style.visibility='hidden';		//hide the range fields
		}
		else //input seq check box is not checked
		{
/*			searchGenome_lbl.style.visibility='';		//SHOW the 'search whole genome' label
			searchGenome_box.style.visibility='';		//SHOW the 'search whole genome' checkbox
*/
			species_table.style.visibility='';			//SHOW the species table
			species_label.style.visibility='';			//SHOW the species label
			region_table.style.visibility='';			//SHOW the region fields
			region_lbl.style.visibility='';			//SHOW the region label
			range_lbl.style.visibility='';			//SHOW the range label
			range_fromto.style.visibility='';			//SHOW the range fields
			input_lbl.style.visibility='';			//SHOW the input sequence label
                        input_box.style.visibility='';			//SHOW the input sequence box
                        template_lbl.style.visibility='hidden';		//hide the template sequence label
                        geneID_lbl.style.visibility='';			//SHOW the Gene ID label
                        gene_textarea.style.visibility='';			//SHOW the gene text area and file
                        searchBSDB_lbl.style.visibility='';			//SHOW the search DB for binding sites cell
                        searchBSDB_box.style.visibility='';			//SHOW the search DB for binding sites cell
                 
	
/*
			//if SearchWholeGenome_ckbx is checked
			if(searchGenome_box.checked)
			{
				wgPassCheck_box.style.visibility='';	//SHOW the 'search whole genome' password textbox
				//adjust chromosome table to reflect appropriate chromosome
				if(human_sp_box.checked)  //if human genome is checked
				{
				//make human label visible
					human_chrom_lbl.style.visibility = '';	
				//and hide mouse and rat labels
					mouse_chrom_lbl.style.visibility='hidden';
					rat_chrom_lbl.style.visibility='hidden';	
				//show all appropraite chromosomes (1-22, X, Y)
					chrom20_cell.style.visibility = '';		
					chrom21_cell.style.visibility = '';		
					chrom22_cell.style.visibility = '';		
				}
				else
				{
					if(mouse_sp_box.checked)  //elseif mouse genome is checked
					{
				//make mouse label visible
						mouse_chrom_lbl.style.visibility = '';
				//and hide human and rat labels
						human_chrom_lbl.style.visibility='hidden';
						rat_chrom_lbl.style.visibility='hidden';
				//show all appropraite chromosomes (1-19, X, Y)
						chrom20_cell.style.visibility = 'hidden';
						chrom21_cell.style.visibility = 'hidden';
						chrom22_cell.style.visibility = 'hidden';
					}
					else  //rat genome is checked
					{
				//make rat label visible
						rat_chrom_lbl.style.visibility = '';
				//and hide human and mouse labels
						human_chrom_lbl.style.visibility='hidden';
						mouse_chrom_lbl.style.visibility='hidden';
				//show all appropraite chromosomes (1-20, X, Y)
						chrom20_cell.style.visibility = '';
						chrom21_cell.style.visibility = 'hidden';
						chrom22_cell.style.visibility = 'hidden';
					}
				}

			//adjust visibility of all other form elements, as necessary
				chrom_table.style.visibility='';		//SHOW the chromosome table
				chrom_lbl.style.visibility='';		//SHOW the chromosome label
				allchrom_lbl.style.visibility='';		//SHOW the select all chromosome label
				allchrom_box.style.visibility='';		//SHOW the select all chromosome checkbox
				input_lbl.style.visibility='hidden';	//hide the input sequence label
				input_box.style.visibility='hidden';	//hide the input sequence label
				searchBSDB_lbl.style.visibility='hidden';	//hide the search db for binding sites cell
				searchBSDB_box.style.visibility='hidden';	//hide the search db for binding sites cell
				gene_file.style.visibility='hidden';	//hide the gene file
				gene_filelbl.style.visibility='hidden';	//hide the gene file label
				gene_textarea.style.visibility='hidden';	//hide the gene textarea
				template_lbl.style.visibility='hidden';	//hide the template sequence label
        			geneID_lbl.style.visibility='hidden';	//hide the Gene ID label
			}

			else //the search genome box is not checked either
			{
				input_lbl.style.visibility='';			//SHOW the input sequence label
				input_box.style.visibility='';			//SHOW the input sequence box
				searchGenome_lbl.style.visibility='';		//SHOW the 'search whole genome' label
				searchGenome_box.style.visibility='';		//SHOW the 'search whole genome' checkbox
				wgPassCheck_box.style.visibility='hidden';	//hide the 'search whole genome' password textbox
				template_lbl.style.visibility='hidden';		//hide the template sequence label
				chrom_table.style.visibility='hidden';		//hide the chromosome table
				chrom_lbl.style.visibility='hidden';		//hide the chromosome label
				human_chrom_lbl.style.visibility='hidden';
				mouse_chrom_lbl.style.visibility='hidden';
				rat_chrom_lbl.style.visibility='hidden';
				allchrom_lbl.style.visibility='hidden';		//hide the select all chromosome label
				allchrom_box.style.visibility='hidden';		//hide the select all chromosome checkbox
				geneID_lbl.style.visibility='';			//SHOW the Gene ID label
				gene_textarea.style.visibility='';			//SHOW the gene text area and file
				gene_filelbl.style.visibility='';			//SHOW the gene text area and file
				gene_file.style.visibility='';			//SHOW the gene file
				searchBSDB_lbl.style.visibility='';			//SHOW the search DB for binding sites cell
				searchBSDB_box.style.visibility='';			//SHOW the search DB for binding sites cell
			}
*/
		}
	}
}

