//================================================================ function fixextA(a) { //alert("fixextA() a.href = " + a.href); if ( a.href.indexOf("extn_info") == -1 ) { var extn = a.href; var i = a.recordNumber; i = (i-1) % NDROWS; var dirtype = "UWS" switch ( dirtype ) { case "PTC": var ggid = drows.rows[DOFF+i].cells[5].innerText; var egid = drows.rows[DOFF+i].cells[8].innerText; a.href = 'Javascript: extn_info(' + '"' + ggid + '"' + ',"' + egid + '"' + ',"' + extn + '"' + ');'; break; case "UWS": var userid = top.mainframes.document.frames.t21main.top_id; var centre = drows.rows[DOFF+i].cells[6].innerText; var servicetypeid = "1"; a.href = 'Javascript: uws_extn_info(' + '"' + userid + '"' + ',"' + centre + '"' + ',"' + servicetypeid + '"' + ',"' + extn + '"' + ');'; break; } } } function extn_info(ggid, egid, extn) { //alert("extn_info()"); //alert("ggid = " + ggid); //alert("egid = " + egid); //alert("extn = " + extn); top.mainframes.document.frames.t21main.setCookie("ggid", ggid); top.mainframes.document.frames.t21main.setCookie("egid", egid); top.mainframes.document.frames.t21main.setCookie("extn", extn); top.mainframes.document.frames.t21topmenu.do_tog_dir(); top.mainframes.document.frames.t21main.window.navigate("../nav/cdr.htm"); } function uws_extn_info(userid,centre,servicetypeid,extn) { //alert("uws_extn_info(" + userid + "," + centre + "," + servicetypeid + "," + extn + ")") top.mainframes.document.frames.t21main.setCookie("userid", userid) top.mainframes.document.frames.t21main.setCookie("myCentre", centre) top.mainframes.document.frames.t21main.setCookie("servicetypeid", servicetypeid) top.mainframes.document.frames.t21main.setCookie("extn", extn) top.mainframes.document.frames.t21topmenu.do_tog_dir(); top.mainframes.document.frames.t21main.window.navigate("../nav/cdr.htm"); } //================================================================ function fixcentreA(a) { //alert("fixcentreA() a.href = " + a.href); var centre = a.href; var i = a.recordNumber; i = (i-1) % NDROWS; if ( a.href.indexOf("centre_info") == -1 ) { var userid = top.mainframes.document.frames.t21main.top_id; var project = "All"; a.href = 'Javascript: uws_centre_info(' + '"' + userid + '"' + ',"' + centre + '"' + ',"' + project + '"' + ');'; } } function uws_centre_info(userid,centre,project) { // run servicetypesummary //alert("centre_info(" + centre + "," + project + ")"); top.mainframes.document.frames.t21main.setCookie("userid", userid) top.mainframes.document.frames.t21main.setCookie("myCentre", centre) top.mainframes.document.frames.t21main.setCookie("CENTREproject", project) top.mainframes.document.frames.t21topmenu.do_tog_dir(); top.mainframes.document.frames.t21main.window.navigate("../nav/centre.htm"); } //================================================================ function fixprojectA(a) { //alert("fixprojectA() a.href = " + a.href); var project = a.href; var i = a.recordNumber; i = (i-1) % NDROWS; if ( a.href.indexOf("project_info") == -1 ) { var userid = top.mainframes.document.frames.t21main.top_id; var centre = drows.rows[DOFF+i].cells[6].innerText; a.href = 'Javascript: uws_project_info(' + '"' + userid + '"' + ',"' + centre + '"' + ',"' + project + '"' + ');'; } } function uws_project_info(userid,centre,project) { // run servicetypesummary //alert("project_info(" + centre + "," + project + ")"); top.mainframes.document.frames.t21main.setCookie("userid", userid) top.mainframes.document.frames.t21main.setCookie("myCentre", centre) top.mainframes.document.frames.t21main.setCookie("CENTREproject", project) top.mainframes.document.frames.t21topmenu.do_tog_dir(); top.mainframes.document.frames.t21main.window.navigate("../nav/centre.htm"); }