Click here to Skip to main content
16,022,667 members

Comments by Member 14834621 (Top 1 by date)

Member 14834621 18-May-20 0:35am View    
how to select add child option in this web which code in below


<title>
National Health Mission (MP)










//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>








//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>












//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ToolkitScriptManager1', 'aspnetForm', [], [], [], 90, 'ctl00');
//]]>



//<![CDATA[
function HandleClose() {
alert("Killing the session on the server!!");
PageMethods.AbandonSession();
}
//]]>



function DisplayMenu(arg1, arg2) {
if (arg1 == 1) {
//show left menu
document.getElementById("ctl00_divMenuOpen").style.display = "none";
document.getElementById("ctl00_divCollapMenu").style.display = "block";
document.getElementById("ctl00_mainDivContant1").style.width = "82%";
}
else {

document.getElementById("ctl00_divMenuOpen").style.display = "block";
document.getElementById("ctl00_divCollapMenu").style.display = "none";
document.getElementById("ctl00_mainDivContant1").style.width = "97%";
} if (arg2 == 1)
{ return true; }
else
{ return false; }
}
function confirmalert() {
var ans = confirm("Are you sure you want to Logout?");
if (ans == true) {
return true;
}
else {
return false;
}
}
function StoreFileName() {

document.getElementById('ctl00_ContentPlaceHolder1_tcDepartment_tpUser_hfFilePath').value = document.getElementById('ctl00_ContentPlaceHolder1_tcDepartment_tpUser_imageUpload').value;
var file = document.getElementById('ctl00_ContentPlaceHolder1_tcDepartment_tpUser_hfFilePath').value.toLowerCase();
var ext = file.substring(file.lastIndexOf(".") + 1, file.length);
if (ext == "png" || ext == "jpg" || ext == "gif") {//alert('ok');
return true;
}
else if (ext != "") {
alert("Only 'png', 'jpg', 'gif' extensions are supported");
return false;
}

}
function logoutAlert() {
alert('Logout Successfully');
}






function MakeStaticHeader(gridId, height, width, headerHeight, isFooter) {
var tbl = document.getElementById(gridId);
if (tbl) {
var DivHR = document.getElementById('DivHeaderRow');
var DivMC = document.getElementById('DivMainContent');
var DivFR = document.getElementById('DivFooterRow');

//*** Set divheaderRow Properties ****
DivHR.style.height = headerHeight + 'px';
DivHR.style.width = (parseInt(width) - 16) + 'px';
DivHR.style.position = 'relative';
DivHR.style.top = '0px';
DivHR.style.zIndex = '10';
DivHR.style.verticalAlign = 'top';

//*** Set divMainContent Properties ****
DivMC.style.width = width + 'px';
DivMC.style.height = height + 'px';
DivMC.style.position = 'relative';
DivMC.style.top = -headerHeight + 'p