// ------------------------------------------------------------------

function startEditor() {
 window.open('chem_comp/JMEForm.pl','JME','width=750,height=750,scrollbars=yes,resizable=yes'); 
}

function fromEditor(smiles) {
 willtaketime=true;
 document.form["CHEM_DESCRIPTOR~1_DESCRIPTOR"].value=smiles;
}

function sstartEditor() {
 window.open('chem_comp/JMEForm.pl?TARGET=s','JME','width=900,height=900,scrollbars=yes'); 
}

function sfromEditor(smiles) {
 willtaketime=true;
 document.form.CHEM_DESCRIPTOR_DESCRIPTOR.value=smiles;
}

function fstartEditor() {
 window.open('chem_comp/JMEForm.pl?TARGET=f','JME','width=900,height=900,scrollbars=yes'); 
}

function formulaEditor() {
 window.open('../ligand/ptable.htm','FormulaEditor','width=750,height=650,scrollbars=yes'); 
}

function fragmentEditor() {
 window.open('../ligand/fragform.htm','FragmentEditor','width=700,height=700,scrollbars=yes'); 
}

function fromFormula(formula) {
 document.form.CHEM_COMP_FORMULA.value=formula;
}

function fromFragExpr(expr) {
 document.form.CHEM_COMP_FRAGMENTS.value=expr;
}



