Location: PHPKode > projects > OpenCabling > opencabling/div_choose_object.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<link rel="stylesheet" href="css/opencabling.css" type="text/css"></link>
<?php
        require_once 'js/functions.js';
?>

<script>
function select(object_id) {
  // Disable bold attribute in the last clicked element
  selobject=parent.document.getElementById("object_id");
  prevobject_id=selobject.value;
  if (prevobject_id!="") {
    oldobj=document.getElementById("obj_"+prevobject_id);
    if (oldobj)
      oldobj.style.fontWeight="normal";
  }
  
  // Enable bold attribute in the clicked element
  obj=document.getElementById("obj_"+object_id);
  if (obj)
    obj.style.fontWeight="bold";
    
  var field=parent.document.getElementById('object_id');
  field.value=object_id;
}
</script>

</head>
<body>
<div id="0" class="smalltext">
<script>javascript:expand(0)</script>
</div>
</body>
</html>
Return current item: OpenCabling