var DomYes=document.getElementById?1:0;

function set_child_listbox(parentObject,childObject,childArray) {

	//Clear child listbox
	for(var i=childObject.length;i>0;i--) {
		childObject.options[i] = null;
	}

	childObject.options[0] = new Option("Select model","-1");
	childObject.options[0].disabled = true;
	
	var sel_index = parentObject.options[parentObject.selectedIndex].value;
	if (sel_index == "") {
		childObject.disabled = true;
	} else {
		childObject.disabled = false;
		var childIndex = 1;
		for (i = 0; i < childArray.length; i++) {
			if (childArray[i][1] == sel_index) {
				childObject.options[childIndex] = new Option(childArray[i][2], childArray[i][0]);
				childIndex++;
			}
		}
	}
	//Select first option
	childObject.selectedIndex = 0;

  //fit to size (bug #306 for Opera only)
  if(navigator.appName=='Opera')
  {
    childObject.size = childIndex;
  }

}


function cleartext() {
    if (document.getElementById('msisdn').value == 'Enter value')
    document.getElementById('msisdn').value = '';
}



