var fDesc=new Array(); fDesc[0] = "This java simulation illustrates the field pattern created by two point charges with opposite signs of charge. In this simulation, the position and charge of each particle can be modified in real time, and the field configuration will update itself accordingly. All three field visualization techniques can be applied to show the overall electric field of the two-charge configuration: vector field, field lines, and "grass seeds""; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }