// JScript File function breakout_of_frame() { if (top.location != location) { top.location.href = document.location.href ; } } // This function checks the mouse event function checkEvent(e) { if (!e) var e = window.event; if (e.target) targ = e.target; else if (e.srcElement) targ = e.srcElement; showHideToolTip(targ, e, e.type) } // This function shows/hides the tooltip function showHideToolTip (theDropDown, e, eType) { var toolTipObj = new Object(); toolTipObj = document.getElementById("tooltip"); toolTipObj.innerHTML = theDropDown.options[theDropDown.selectedIndex].text; if(eType == "mouseout"){ toolTipObj.style.display = "none"; } else { toolTipObj.style.display = "inline"; toolTipObj.style.top = e.y + 15; toolTipObj.style.left = e.x + 10; } } // Function grabs the value of a control on the parent form and sets the value of a control on opened form function SetValOfFormCtrlWithValOfParentCtrl(ParentControlName, controlName) { //alert("function SetFormHiddenControlWithParentControlValue"); // get handle on control on parent var parentFormControl = window.opener.document.getElementById(ParentControlName); // get handle on control on form var formControl = document.getElementById(controlName); //alert(parentFormControl.value); //alert(formControl.value); // if the control exists, set its value if (formControl && parentFormControl) { //alert("parent and child controls exist"); formControl.value = parentFormControl.value; //alert (formControl.value + ": " + controlName + " on form after capture value from parent form"); } }