Copy Code code as follows: 
 
 
  
 
 
return value to parent form 
 
function Returnparent (value) {//Get child form return value 
 
var parent = window.dialogarguments; Get parent page 
 
Parent.location.reload (); Refreshing the parent page 
 
if (parent!= null && parent!= "undefined") { 
 
Window.returnvalue = value; return value 
 
Window.close (); Close child pages 
 
} 
 
Window.opener.document.getElementById ("Activitypic");/directly manipulate the parent form element 
 
$ (selector, window.parent.document); For Frames Class page 
 
$ (selector, window.opener.document); This is suitable for a separate open page 
 
Return 
 
} 
 
Open the Modal subform, get the return value to operate 
 
function showmodalonly (me, url) {//pop-up form, radio 
 
var hidden = document.getElementById (me); Get the Hidden control 
 
if (hidden!= null && hidden.value!= null && hidden.value.length > 0) { 
 
Alert ("Here is the radio, please delete the existing option, try again.") "); 
 
Return 
 
} 
 
var revalue = window.showmodaldialog (url, window, "dialogheight:500px"; dialogwidth:987px; Status:off; Scroll:auto "); 
 
if (revalue = null | | revalue = = "undefined" | | | revalue = = "") { 
 
Return If the return value is empty, it returns 
 
} 
 
var index = revalue.split ("^"); The position of the separator ^ 
 
if (index[0] = = NULL | | index[0] = = "undefined" | | index[0].length < 1) { 
 
Return 
 
} 
 
var hid = index[0].split (' & '); Assigning values to hidden controls 
 
var view = Index[1].split (' & '); Display values 
 
var content = ""; What you need to add to the check 
 
if (HID!= null && hid.length = 2) { 
 
var i = 0; 
 
if (Hid[i]!= "undefined" && hid[i]!= "" && view[i + 1]!= "undefined" && view[i + 1]!= "") { 
 
Content = = ' <table id= ' + hid[i] 
 
+ ' "class=" Deletestyle "><tr><td>+ "' + hid[i] +" ', "+" ' "+ Me +" ' + '); "/></td><td> ' + view[i + 1] + ' </TD></TR></TABL E> '; 
 
Hidden.value = Hid[i]; Assigning values to hidden controls 
 
var c = document.getElementById ("check" + Me); 
 
C.innerhtml + + content; 
 
Return 
 
} 
 
} 
 
Alert (Please select only one piece of data.) "); 
 
Return 
 
} 
 
function Openuploadwindow (URL, width, height,left,top) { 
 
if (width==null) width=987; 
 
if (height = null) height = 500; 
 
if (left = null) left = 200; 
 
if (top = null) top = 200; 
 
window.open (URL, ' NewWindow ', ' height= ' + height + ', width= ' + width + ', top=200,left=200,toolbar=no,menubar=no, Scrollbars=no, Resizable=no,location=no, Status=no '); 
 
window.showModalDialog (URL, window, "dialogheight:" + height + "px"; Dialogwidth: "+ width +" px;status:off; Scroll:auto;dialogleft: "+left+" Px;dialogtop: "+top+" px "); 
 
}