function vnrLoad() { // read the current relations var rels = byId('vnrelations').value.split('|||'); for(var i=0; i1; i++) { var rel = rels[i].split(','); // fix for titles containing commas rel[3] = rel.splice(3).join(); vnrAdd(rel[0], rel[1], rel[2]==1?true:false, rel[3]); } vnrEmpty(); // make sure the title is up-to-date byId('title').onchange = function() { var l = byClass(byId('jt_box_vn_rel'), 'td', 'tc_title'); for(i=0; i