//create a scring variable and write your javascript code with dynamic valuesstring focusScript = "<script language='javascript'>" + "window.opener.document.getElementById('" + checkval + "').value = '" + Hidden1.Value + "';" + "window.opener.document.getElementById('" + checkval5 + "').value = '" + dg + "';" + "window.close();" + "</script>";