<!--
function newwindow(place) {
//Used for main explanations page; opens all in same window named info
 var width = (screen.width)*0.75;
 var height = (screen.height)/2;
 var popUpWin=null;  
 popUpWin=window.open(place,'info','toolbar=yes,directories=no,status=yes,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes,width='+width+',height='+height+',left=100,top=100,screenX=100,screenY=100');
 if (popUpWin.focus) popUpWin.focus();
}

function newwindowoff(place,name) {
//Is offset uniquely and will open a new window for each name given; good for images
 var width = (screen.width)*0.75;
 var height = (screen.height)/2;
 var xoff=150;
 var yoff=150;
 var popUpWin=null;
 popUpWin=window.open(place,name,'toolbar=yes,directories=no,status=yes,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes,width='+width+',height='+height+',left='+xoff+',top='+yoff+',screenX='+xoff+',screenY='+yoff);
 if (popUpWin.focus) popUpWin.focus();
}

function openpaper(place,name) {
//Is offset uniquely and will open a new window for each name given with full menubar; good for 3rd party sites
 var width = (screen.width)*0.75;
 var height = (screen.height)/2;  
 var popUpWin=null;  
 popUpWin=window.open(place,name,'toolbar=yes,directories=yes,status=yes,menubar=yes,copyhistory=no,resizable=yes,scrollbars=yes,width='+width+',height='+height+',left=125,top=125,screenX=150,screenY=150');
 if (popUpWin.focus) popUpWin.focus();
}

function openblast(sequence,genome) {
//Is offset uniquely and will open a new window for each sequence given with full menubar; good for 3rd party sites
 var width = (screen.width)*0.75;
 var height = (screen.height)/2;  
 var popUpWin=null;

 if (genome=='None') return;
 var organism=genome.substring (genome.lastIndexOf('+')+1, genome.length); //get out part after last + symbol
 var place='http://www.ncbi.nlm.nih.gov/BLAST/Blast.cgi?ALIGNMENTS=50&ALIGNMENT_VIEW=Pairwise&AUTO_FORMAT=Semiauto&CLIENT=web&DATABASE=nr&DESCRIPTIONS=100&ENTREZ_QUERY='+genome+'+[ORGN]&EXPECT=1000&FORMAT_BLOCK_ON_RESPAGE=None&FORMAT_ENTREZ_QUERY=All+organisms&FORMAT_OBJECT=Alignment&FORMAT_TYPE=HTML&GET_SEQUENCE=on&LAYOUT=TwoWindows&MASK_CHAR=0&MASK_COLOR=0&NCBI_GI=on&PAGE=Nucleotides&PROGRAM=blastn&QUERY='+sequence+'&SERVICE=plain&SET_DEFAULTS.x=33&SET_DEFAULTS.y=3&SHOW_LINKOUT=on&SHOW_OVERVIEW=on&WORD_SIZE=7&END_OF_HTTPGET=Yes';
 popUpWin=window.open(place,organism+sequence,'toolbar=yes,directories=yes,status=yes,menubar=yes,copyhistory=no,resizable=yes,scrollbars=yes,width='+width+',height='+height+',left=125,top=125,screenX=150,screenY=150');
 if (popUpWin.focus) popUpWin.focus();
}
//-->