/*  /websites/kinemage/databases/rnaConformersKins/openKing.js
	written by: WBA
	modified: {enter date and modification series number, make notes above last entry}
	created: 18-Jul-08 see modification 0 below

modification 0:
 -  javascript to open and place a new browser window or tab and display KiNG kinemage
 -  this particular instance is for displaying the RNA conformers from the HTML page:
    /websites/kinemage/databases/rnaClusters.php
 -  adapted from the bibcode.js of the anatax pages
contains functions:
	blankOpener - allows functionality of the old <a> tag open href: in blank window
	refGetter - biblio lookup and display
*/

function blankOpener()  {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i < anchors.length; i++) { 
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
				anchor.getAttribute("rel") == "nuwin")
			anchor.target = "_blank";
	}
}

function kingDisplay(kinFile)  {
	var kinFile
	window.open(kinFile+".html","KiNGConformerDisplay","width=700,height=700,scrollbar=1")
}

function uprefgetter(refID)  {
	var refID
	window.open('anatax.updateref.html#'+ refID,'AnataxBibliography','width=600,height=200')
}

