

function colorkeyPopUp(k) {
	colorKey = window.open(k,'colorKey','width=580,height=275,scrollbars=1,resizable=1,toolbar=1,menubar=0');
	window.colorKey.focus();
}

function keyChoose(choice)  {
	switch (choice)  {
		case "Atoms" : document.location.href="atoms.html";break;
		case "Amino Acids" : document.location.href="residues.html";break;
		case "Nucleotides" : document.location.href="nucleotides.html";break;
		case "Structures" : document.location.href="structures.html";break;
		case "General" : document.location.href="general.html";break;
		case "Help" : Help = window.open('../Chimehelp/drumshelp.html','Help','width=640,height=480,resizable,toolbar,status,menubar,scrollbars');break;
		case "Close" : window.close();break;
		default : alert("There is a problem with these buttons.  Please report it!");;
	}
}

function controlButtons()  {
	document.writeln("<FORM NAME='controls'>");
	document.writeln("<INPUT TYPE='button' VALUE='Atoms' onClick='keyChoose(value);'>");
	document.writeln("<INPUT TYPE='button' VALUE='Amino Acids' onClick='keyChoose(value);'>");
	document.writeln("<INPUT TYPE='button' VALUE='Nucleotides' onClick='keyChoose(value);'>");
	document.writeln("<INPUT TYPE='button' VALUE='Structures' onClick='keyChoose(value);'>");
	document.writeln("<INPUT TYPE='button' VALUE='General' onClick='keyChoose(value);'>");
	document.writeln("<INPUT TYPE='button' VALUE='Help' onClick='keyChoose(value);'>");
	document.writeln("<INPUT TYPE='button' VALUE='Close' onClick='keyChoose(value);'>");
	document.writeln("</FORM>");
}
