For help with installation, bugs reports or feature requests, please head over to our new forums.
	
Genuitec Community on GitHub
- This topic has 1 reply, 2 voices, and was last updated 16 years, 3 months ago by support-joy. 
- 
		AuthorPosts
- 
		
			
				
 bipien@yahoo.comMember//index.jsp 
 <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
 <%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html”%>
 <%@ taglib uri=”/WEB-INF/struts-bean.tld” prefix=”bean”%>
 <html:html locale=”true”>
 <HEAD>
 <%@ page language=”java” contentType=”text/html; charset=UTF-8″
 pageEncoding=”ISO-8859-1″%>
 <META http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
 <META name=”GENERATOR” content=”IBM Software Development Platform”>
 <META http-equiv=”Content-Style-Type” content=”text/css”>
 <LINK href=”theme/Master.css” rel=”stylesheet” type=”text/css”>
 <LINK href=”theme/icms.css” type=text/css rel=stylesheet>
 <SCRIPT language=”javascript” src=”javascripts/validation.js” type=”text/JavaScript”></SCRIPT>
 <SCRIPT language=”javascript” src=”javascripts/utility.js” type=”text/JavaScript”></SCRIPT>
 <SCRIPT language=”javascript”>
 function validate(frm)
 {
 var l_str_val = isStringValid(frm.userID,”required,alphanum”, true,”<bean:message key=”login.msg.userid”/> “);
 if(l_str_val != null){
 return false;
 }
 l_str_val = isStringValid(frm.password,”required,alphanum”, true,”<bean:message key=”login.msg.password”/> “);
 if(l_str_val != null){
 return false;
 }
 return true;
 }
 </SCRIPT>
 <TITLE>index.jsp</TITLE>
 </HEAD><BODY> 
 <TABLE>
 <TBODY>
 <TR>
 <!———————— Header ——————————————————- S ——>
 <TABLE cellSpacing=0 cellPadding=0 width=”100%” border=0 >
 <TBODY>
 <TR>
 <TD>
 <TABLE height=6% cellSpacing=0 cellPadding=0 width=”100%” background=”images/photo.jpg” border=0>
 <TBODY>
 <TR>
 <TD width=”20%” align=”left”><A href=”#”><IMG src=”images/icms.gif” width=”200″ height=”66″ border=0></A><BR></TD>
 <TD vAlign=top align=”right” width=”20%”><IMG src=”images/indianrail_logo.gif” width=”90″ height=”73″ hspace=5 vspace=6 border=0></TD>
 </TR>
 </TBODY>
 </TABLE></TD>
 </TR>
 </TBODY>
 </TABLE>
 <!———————— Header ——————————————————- E ——>
 </TR>
 <!———————— Welcome Bar ——————————————————- S ——>
 <TABLE height=21 cellSpacing=2 cellPadding=0 width=”100%” background=”images/111.jpg” border=0>
 <TBODY>
 <TR>
 <TD class=bluetxtsmall width=”13%”><strong><FONT color=#ffffff> <bean:message key=”login.msg.welcome”/></FONT></strong> </TD>
 </TR>
 </TBODY>
 </TABLE>
 <!———————— Welcome Bar ——————————————————- E ——>
 <TR>
 <!———————— Middle ——————————————————- S ——>
 <TABLE cellSpacing=0 cellPadding=0 width=”100%” align=center bgColor=#ffffff border=0>
 <TBODY>
 <TR>
 <TD width=20><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD>
 <TD vAlign=top>
 <TABLE cellSpacing=0 cellPadding=0 width=”100%” align=center border=0>
 <TBODY>
 <TR><TD colSpan=5 height=10><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD></TR>
 <TR class=secBlueBg>
 <TD class=sectionTitle height=26> <bean:message key=”login.msg.helpdesk”/></TD>
 <TD> </TD>
 <TD class=dotBlueHeadVertLine><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD>
 <TD width=”2%”> </TD>
 <TD class=sectionTitle> <bean:message key=”login.msg.registereduser”/></TD>
 </TR>
 <TR>
 <TD vAlign=top width=”48%”>
 <TABLE width=”100%%” border=0 cellPadding=0 cellSpacing=0>
 <TBODY>
 <TR><TD height=30 colspan=”3″><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD></TR>
 <TR>
 <TD width=”24%”><img src=”images/teeeeee.gif”></TD>
 <TD width=”75%” class=blueTextSmNormal>
 <p><strong>24 X 7 Help Desk Nos.</strong></p>
 <p><span class=”labelNormal”>(030) – 54822 (RLY), </span></p>
 <p><span class=”labelNormal”>(011) – 26883443 (MTNL), </span></p>
 <p><span class=”labelNormal”>(+91) – 9958996357 (M) </span></p></TD>
 <TD> </TD>
 </TR>
 </TBODY>
 </TABLE>
 </TD>
 <TD> </TD>
 <TD class=dotBlueVertLine rowSpan=2><IMG height=2 src=”images/spacer.gif” width=1 border=0></TD>
 <TD width=”2%”> </TD><TD vAlign=top width=”50%”> 
 <TABLE cellSpacing=0 cellPadding=3 width=”85%” border=0>
 <TBODY>
 <TR><TD height=17><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD></TR>
 <TR>
 <TD>
 <TABLE class=bgloginBox cellSpacing=0 cellPadding=0 width=”100%” align=center border=0>
 <TBODY>
 <TR>
 <TD width=25><IMG height=6 src=”images/lt_top_corner.gif” width=6 border=0></TD>
 <TD class=bgloginBox colSpan=4><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD>
 <TD class=bgloginBox width=6><IMG height=6 src=”images/rt_top_corner.gif” width=6 border=0></TD></TR>
 <TR>
 <TD colSpan=5 height=5><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD></TR><html:form action=”/login” method=”post” focus=”userID” onsubmit=”return validate(this)”> 
 <TR><TD colSpan=5 height=5><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD></TR>
 <TR><TD> </TD><TD class=Sectiontitle colSpan=4><html:errors/></TD></TR>
 <TR><TD> </TD><TD class=Sectiontitle colSpan=4><bean:message key=”login.msg.signin”/></TD></TR>
 <TR><TD colSpan=5 height=10><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD></TR>
 <TR><TD colSpan=4></TD></TR><TR><TD colSpan=4></TD></TR>
 <TR>
 <TH class=bluetxtsmall><bean:message key=”login.msg.userid”/></TH>
 <TD><html:text styleClass=”inputText” property=”userID” maxlength=”10″ size=”13″/></TD>
 </TR>
 <TR>
 <TH class=bluetxtsmall><bean:message key=”login.msg.password”/></TH>
 <TD><html:password styleClass=”inputText” property=”password” maxlength=”10″ size=”13″/></TD>
 </TR>
 <TR>
 <TD colSpan=5 height=10><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD>
 </TR>
 <TR>
 <TR>
 <TD colSpan=5 height=10><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD>
 </TR>
 <TR>
 <TD> </TD>
 <TD width=”25%”><html:submit property=”submit” value=”Submit” /></TD>
 <TD><html:reset /></TD>
 </TR>
 </html:form>
 <TR><TD colSpan=5 height=10><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD></TR>
 <TR>
 <TD><IMG height=6 src=”images/lt_bt_corner.gif” width=6 border=0></TD>
 <TD colSpan=4><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD>
 <TD><IMG height=6 src=”images/rt_bt_corner.gif” width=6 border=0></TD>
 </TR>
 </TBODY>
 </TABLE>
 </TD>
 </TR>
 </TBODY>
 </TABLE>
 </TD>
 </TR>
 </TBODY>
 </TABLE>
 </TD>
 <TD vAlign=top width=20><IMG height=1 src=”images/spacer.gif” width=1 border=0></TD>
 </TR>
 <TR><TD colSpan=3></TD></TR>
 </TBODY>
 </TABLE>
 <!———————— Middle ——————————————————- E ——>
 </TR>
 <TR>
 <!————- bottom ———————————- S ———————————>
 <TABLE cellSpacing=0 cellPadding=0 width=”100%” border=0>
 <TBODY>
 <TR>
 <TD>
 <IMG height=1 src=”images/grey.gif” width=”100%”><BR><IMG height=1 src=”images/spacer(1).gif”><BR><TABLE cellSpacing=0 cellPadding=0 width=”100%” border=0> 
 <TBODY>
 <TR height=”26″ valign=”middle”>
 <TD align=left ><IMG height=1 src=”images/spacer(1).gif” width=15>
 <SPAN class=blueTextSmNormal>
 <A class=blueTextSmNormal href=”#”>About Us</A> |
 <A class=blueTextSmNormal href=”#”>Help</A> |
 <A class=blueTextSmNormal href=”#”>Mail</A> |
 <A class=blueTextSmNormal href=”#” target=”_blank”>Contact Us</A>
 </SPAN></TD>
 <TD width=16%>
 <TABLE cellSpacing=4 cellPadding=0 width=”100%” align=right border=0>
 <TBODY>
 <TR>
 <TD>
 <html:link styleClass=”blueTextSmNormal” page=”/locale.do?language=en”>English</html:link> |
 <html:link styleClass=”blueTextSmNormal” page=”/locale.do?language=hi&country=IN”>Hindi</html:link>
 </TD>
 </TR>
 </TBODY>
 </TABLE>
 </TD>
 <TD width=13><IMG height=1 src=”images/spacer(1).gif” width=1><BR></TD>
 </TR>
 </TBODY>
 </TABLE><IMG height=1 src=”images/spacer(1).gif”><BR><IMG height=1 src=”images/grey.gif” width=”100%”><BR> 
 </TD>
 </TR>
 </TBODY>
 </TABLE><TABLE cellSpacing=5 cellPadding=5 width=”98%” border=0> 
 <TBODY>
 <TR>
 <TD><a href=”http://cris.org.in/wps/portal/CRISPortal”><img src=”images/cris_logo.gif” width=”101″ height=”47″ border=0></a></TD>
 <TD></TD>
 <TD class=bodyText>
 <!–<B>Copyright © 2006 CRIS</B> Designated trademarks, products are the property of indian railways. All Rights Reserved. Use of this website
 constitutes acceptance of the <B>Indian Railways .</B>–></TD>
 <TD></TD>
 <TD> </TD>
 </TR>
 </TBODY>
 </TABLE><!————- bottom ———————————- E ———————————> 
 </TR>
 </TBODY>
 </TABLE>
 </BODY>
 </html:html>
 //home.jsp<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”> 
 <%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html”%>
 <%@ taglib uri=”/WEB-INF/struts-bean.tld” prefix=”bean”%>
 <html:html>
 <HEAD>
 <%@ page language=”java” contentType=”text/html; charset=UTF-8″
 pageEncoding=”ISO-8859-1″%>
 <META http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
 <META name=”GENERATOR” content=”IBM Software Development Platform”>
 <META http-equiv=”Content-Style-Type” content=”text/css”>
 <LINK href=”theme/Master.css” rel=”stylesheet” type=”text/css”>
 <TITLE>home.jsp</TITLE>
 </HEAD>
 <BODY>
 <DIV id=”menu” class=”menuDiv”>
 <jsp:include page=”menuMain.jsp”></jsp:include>
 </DIV>
 <TABLE border=”0″>
 <TBODY>
 <TR>
 <TH><bean:message key=”login.msg.userid”/></TH>
 <TD><bean:write name=”userInfo” property=”opCode” /></TD>
 </TR>
 </TBODY>
 </TABLE>
 </BODY>
 </html:html>//mainmenu.jsp 
 <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
 <HTML>
 <HEAD>
 <%@ page language=”java” contentType=”text/html; charset=UTF-8″
 pageEncoding=”ISO-8859-1″%>
 <%@ taglib uri=”/WEB-INF/struts-bean.tld” prefix=”bean”%>
 <%@ taglib uri=”/WEB-INF/struts-logic.tld” prefix=”logic”%>
 <%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html”%>
 <META http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
 <META name=”GENERATOR” content=”IBM Software Development Platform”>
 <META http-equiv=”Content-Style-Type” content=”text/css”>
 <TITLE>menuMain.jsp</TITLE>
 <link rel=”stylesheet” type=”text/css” href=”theme/menuDesign.css” />
 <script src=”javascripts/menu.js” type=”text/javascript”></script>
 </HEAD>
 <BODY>
 <div id=”mytabsmenu” class=”tabsmenuclass”>
 <ul>
 <logic:iterate id=”menuMain” name=”Menu” scope=”session” type=”data.utility.DTO.MenuMain”>
 <li><a href=”<bean:write name=”menuMain” property=”actionURL” />” <logic:equal name=”menuMain” property=”hasSubMenu” value=”true”>rel=”gotsubmenu”</logic:equal> ><bean:message name=”menuMain” property=”action” /></a></li>
 </logic:iterate>
 </ul>
 </div><div id=”mysubmenuarea” class=”tabsmenucontentclass”> <!–1st link within submenu container should point to the external submenu contents file–> 
 <a href=”submenu.jsp” style=”visibility:hidden”>Sub Menu contents</a></div> <script type=”text/javascript”> 
 //mouseovertabsmenu.init(“tabs_container_id”, “submenu_container_id”, “bool_hidecontentsmouseout”)
 mouseovertabsmenu.init(“mytabsmenu”, “mysubmenuarea”, true)</script> 
 </BODY></HTML> //submenu.jsp 
 <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”><HTML> 
 <HEAD>
 <%@ page language=”java” contentType=”text/html; charset=UTF-8″
 pageEncoding=”ISO-8859-1″%>
 <%@ taglib uri=”/WEB-INF/struts-bean.tld” prefix=”bean”%>
 <%@ taglib uri=”/WEB-INF/struts-logic.tld” prefix=”logic”%>
 <%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html”%>
 <META http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
 <META name=”GENERATOR” content=”IBM Software Development Platform”>
 <META http-equiv=”Content-Style-Type” content=”text/css”>
 <TITLE>submenu.jsp</TITLE>
 </HEAD>
 <BODY>
 <logic:iterate id=”menuMain” name=”Menu” scope=”session” type=”data.utility.DTO.MenuMain”>
 <logic:equal name=”menuMain” property=”hasSubMenu” value=”true”>
 <div class=”tabsmenucontent”>
 <ul>
 <logic:iterate id=”subMenuDetail” name=”menuMain” property=”subActionList” type=”data.utility.DTO.SubMenuDetail”>
 <li><a href=”<bean:write name=”subMenuDetail” property=”subActionURL” />”><bean:message name=”subMenuDetail” property=”subAction” /></a></li>
 </logic:iterate>
 </ul>
 </div>
 </logic:equal>
 </logic:iterate>
 <br style=”clear:right” />
 </BODY>
 </HTML>//traindefinitionadd.jsp 
 <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
 <%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html”%>
 <%@ taglib uri=”/WEB-INF/struts-logic.tld” prefix=”logic”%>
 <%@ taglib uri=”/WEB-INF/struts-bean.tld” prefix=”bean”%>
 <html:html>
 <HEAD>
 <%@ page language=”java” contentType=”text/html; charset=UTF-8″
 pageEncoding=”UTF-8″%>
 <META http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
 <META name=”GENERATOR” content=”IBM Software Development Platform”>
 <META http-equiv=”Content-Style-Type” content=”text/css”>
 <LINK href=”theme/Master.css” rel=”stylesheet” type=”text/css”>
 <SCRIPT language=”javascript” src=”javascripts/trainDefinition.js” type=”text/JavaScript”></SCRIPT>
 <SCRIPT language=”javascript” src=”javascripts/ajax.js” type=”text/JavaScript”></SCRIPT>
 <SCRIPT language=”javascript” src=”javascripts/utility.js” type=”text/JavaScript”></SCRIPT>
 <SCRIPT language=”javascript” src=”javascripts/validation.js” type=”text/JavaScript”></SCRIPT>
 <TITLE>trainDefinitionAdd.jsp</TITLE>
 </HEAD><BODY> 
 <DIV id=”menu” class=”menuDiv”>
 <jsp:include page=”menuMain.jsp”></jsp:include>
 </DIV>
 <html:form action=”/trainDefinition?subAction=addConfirm” onsubmit=”return validate(this)”>
 <table width=”100%”>
 <TBODY>
 <TR>
 <TD>
 <html:radio property=”linkAvailable” value=”false” onclick=”isLinkAvailable(this.form, this.value)” /><bean:message key=”gen.msg.linknotavailable”/>
 </TD>
 <TD>
 <html:radio property=”linkAvailable” value=”true” onclick=”isLinkAvailable(this.form, this.value)” /><bean:message key=”gen.msg.linkavailable”/>
 </TD>
 <TD>
 <INPUT type=”radio” name=”rly” value=”own” disabled onclick=”foreignRailway(this.form, this.value)”><bean:message key=”gen.msg.ownrly”/>
 </TD>
 <TD></TD>
 <TD></TD>
 <TD>
 <bean:message key=”gen.msg.selecttrain”/>
 </TD>
 <TD>
 <SELECT name=”linkTrain” disabled onchange=”getDefinition(this.form, this.value)”>
 <OPTION value=””>Select</OPTION>
 </SELECT>
 </TD>
 </TR>
 <TR>
 <TD> </TD>
 <TD> </TD>
 <TD>
 <INPUT type=”radio” name=”rly” value=”other” disabled onclick=”foreignRailway(this.form, this.value)”><bean:message key=”gen.msg.otherrly”/>
 </TD>
 <TD>
 <bean:message key=”gen.msg.selectrly”/>
 </TD>
 <TD>
 <SELECT name=”foreignRly” disabled onchange=”getLinkTrains(this.form)”>
 <OPTION value=””>Select</OPTION>
 </SELECT>
 </TD>
 <TD>
 <bean:message key=”gen.msg.selectdefinition”/>
 </TD>
 <TD>
 <html:select property=”linkTrainDef” disabled=”true”>
 <html:option value=””>Select</html:option>
 </html:select>
 </TD>
 </TR>
 </TBODY>
 </table>
 <hr>
 <TABLE width=”100%”>
 <TBODY>
 <TR>
 <TD>
 <bean:message key=”gen.msg.ownrly”/>
 </TD>
 <TD>
 <html:text property=”ownRly” size=”6″ maxlength=”4″ readonly=”true”/>
 </TD>
 <TD>
 <bean:message key=”train.msg.trainNo”/>
 </TD>
 <TD>
 <html:text property=”trainNumber” size=”8″ maxlength=”6″ onchange=”javascript:this.value=this.value.toUpperCase();this.value=trimAll(this.value);” />
 </TD>
 <TD>
 <bean:message key=”train.msg.trainName”/>
 </TD>
 <TD>
 <html:text property=”trainName” maxlength=”25″ size=”27″ onchange=”javascript:this.value=this.value.toUpperCase();this.value=trim(this.value);”/>
 </TD>
 </TR>
 <TR>
 <TD>
 <bean:message key=”train.msg.trainType”/>
 </TD>
 <TD>
 <html:select property=”trainType” onchange=”getTrainSubType(this.form, this.value)”>
 <html:option value=”” selected>Select</html:option>
 <logic:present name=”TrainTypeList” scope=”request”>
 <logic:iterate id=”trainType” name=”TrainTypeList” scope=”request” type=”data.utility.DTO.TrainType”>
 <html:option value=”<%=trainType.getType()%>”><bean:write name=”trainType” property=”typeDescription” /></html:option>
 </logic:iterate>
 </logic:present>
 </html:select>
 </TD>
 <TD>
 <bean:message key=”train.msg.trainSubType”/>
 </TD>
 <TD>
 <html:select property=”trainSubType”>
 <html:option value=””>Select</html:option>
 </html:select>
 </TD>
 <TD>
 <bean:message key=”train.msg.gauge”/>
 </TD>
 <TD>
 <html:select property=”gauge”>
 <html:option value=”BG”>BG</html:option>
 <html:option value=”MG”>MG</html:option>
 <html:option value=”NG”>NG</html:option>
 </html:select>
 </TD>
 </TR>
 <TR>
 <TD>
 <bean:message key=”train.msg.updownflag”/>
 </TD>
 <TD>
 <html:select property=”trainUpDown”>
 <html:option value=””>Select</html:option>
 <html:option value=”UP”>UP</html:option>
 <html:option value=”DN”>DOWN</html:option>
 </html:select>
 </TD>
 <TD>
 <bean:message key=”train.msg.brakeType”/>
 </TD>
 <TD>
 <html:select property=”brakeType”>
 <html:option value=”AB”>Air Brake</html:option>
 <html:option value=”VB”>Vaccum Brake</html:option>
 </html:select>
 </TD>
 <TD>
 <bean:message key=”train.msg.noofrakes”/>
 </TD>
 <TD>
 <html:text property=”noOfRakes” maxlength=”2″ size=”3″/>
 </TD>
 </TR>
 <TR>
 <TD>
 <bean:message key=”gen.msg.validfrom”/>
 </TD>
 <TD>
 <html:text property=”validFrom” maxlength=”10″ size=”12″/>
 </TD>
 <TD>
 <bean:message key=”gen.msg.validto”/>
 </TD>
 <TD>
 <html:text property=”validTo” maxlength=”10″ size=”12″/>
 </TD>
 <TD></TD>
 <TD></TD>
 </TR>
 <TR>
 <TD> </TD>
 <TD> </TD>
 <TD> </TD>
 <TD> </TD>
 <TD> </TD>
 <TD> </TD>
 </TR>
 <TR>
 <TD></TD>
 <TD></TD>
 <TD><html:submit property=”submit” value=”Submit” /></TD>
 <TD><html:reset /></TD>
 <TD></TD>
 <TD></TD>
 </TR>
 </TBODY>
 </TABLE>
 </html:form>
 </BODY>
 </html:html>//menu.js var mouseovertabsmenu={ disappeardelay: 250, //set delay in miliseconds before sub menu disappears onmouseout 
 ajaxloadingmsg: ‘Loading Sub Menu Contents…’, //Message to show inside sub menu while fetching contents///////No need to edit beyond here////////////////////// tabsmenutree:{}, initializetabs:function(tabsmenuid, submenuid, tabcontentsLength, disappearBool){ 
 //alert(“in initialisation”);
 var tabmenu=document.getElementById(tabsmenuid)
 var tablinks=tabmenu.getElementsByTagName(“a”)
 var submenu=document.getElementById(submenuid)
 var selected=null, tablinks_count=0
 for (var i=0; i<tablinks.length; i++){
 tablinks[i]._parentid=tabsmenuid
 var relattr=tablinks[i].getAttribute(“rel”)
 if (/^gotsubmenu/i.test(relattr) && tablinks_count<tabcontentsLength){ //if “rel” attribute starts with=”gotsubmenu” and a tab content exists for this tab based on its order
 tablinks[i]._pos=tablinks_count //remember position of this tab relative to its active peers
 if (relattr.indexOf(“[selected]”)!=-1){
 selected=tablinks_count
 }
 this.addEvent(tablinks[i], function(){
 var tabsmenutree=mouseovertabsmenu.tabsmenutree[this._parentid]
 mouseovertabsmenu.clearhidetimer(tabsmenutree.submenu.hidetimer)
 mouseovertabsmenu.showsubmenu(this)
 }, “mouseover”)
 tablinks_count++
 this.tabsmenutree[tabsmenuid].tabs.push(tablinks[i]) //add this tab to tab collection
 }
 else{ //else for regular tab links (with no “rel” attribute)
 this.addEvent(tablinks[i], function(){
 mouseovertabsmenu.hidesubmenu(this._parentid)
 }, “mouseover”)
 }
 }
 this.addEvent(submenu, function(e){
 mouseovertabsmenu.clearhidetimer(this.hidetimer)
 }, “mouseover”)
 if (disappearBool==true){
 this.addEvent(submenu, function(e){ //hide submenu contents when mouse rolls out of submenu DIV
 if (!mouseovertabsmenu.isContained(this, e)){
 var cursubmenuobj=this
 this.hidetimer=setTimeout(function(){mouseovertabsmenu.hidesubmenu(cursubmenuobj._parentid)}, mouseovertabsmenu.disappeardelay)
 }
 }, “mouseout”)
 }
 var urlselected=this.urlparamselect(tabsmenuid)
 //return position of selected tab (relative to its peers), or null
 return typeof urlselected==”number”? urlselected : document.getElementById(urlselected)? document.getElementById(urlselected)._pos : selected
 },ajaxload:function(tabsmenuid, submenuid, disappearBool, url){ 
 var page_request = false
 if (window.ActiveXObject){ //Test for support for ActiveXObject in IE first (as XMLHttpRequest in IE7 is broken)
 try {page_request = new ActiveXObject(“Msxml2.XMLHTTP”) 
 //alert(“Msxml2.XMLHTTP”+page_request);
 }
 catch (e){
 try{
 page_request = new ActiveXObject(“Microsoft.XMLHTTP”)
 //alert(“Microsoft.XMLHTTP”+page_request)
 }
 catch (e){}
 }
 }
 else if (window.XMLHttpRequest) // if Mozilla, Safari etc
 page_request = new XMLHttpRequest();
 //alert(“window.XMLHttpRequest”+page_request);else 
 {return false 
 }var tabsmenutree=this.tabsmenutree[tabsmenuid] tabsmenutree.submenu.innerHTML=this.ajaxloadingmsg var ajaxfriendlyurl=url.replace(/^http:\/\/[^\/]+\//i, “http://”+window.location.hostname+”:”+window.location.port+”/”) 
 //alert(“XML HTTP URL “+ajaxfriendlyurl);
 page_request.onreadystatechange=function(){
 //alert(“XML HTTP ON READY”);
 mouseovertabsmenu.ajaxpopulate(page_request, tabsmenuid, submenuid, disappearBool, ajaxfriendlyurl)
 }
 var bustcache=(ajaxfriendlyurl.indexOf(“?”)!=-1)? “&”+new Date().getTime() : “?”+new Date().getTime()
 //alert(“ajaxfriendlyurl+bustcache “+ajaxfriendlyurl+bustcache)
 page_request.open(‘GET’, ajaxfriendlyurl+bustcache, true)
 page_request.send(null)
 },ajaxpopulate:function(page_request, tabsmenuid, submenuid, disappearBool, url){ 
 //alert(” s — “+page_request+ tabsmenuid +” 2 “+submenuid+” 3 “+ disappearBool+” 4 “+ url+” 5 “);
 //alert(“ajaxpopulate step 1 — page_request.readyState “+page_request.readyState+ “page_request.status “+page_request.status+ window.location.href.indexOf(“http”));
 mouseovertabsmenu.ajaxpopulate
 if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf(“http”)==-1)){
 //alert(“ajaxpopulate step 2”);
 var tabsmenutree=this.tabsmenutree[tabsmenuid]
 tabsmenutree.submenu.innerHTML=page_request.responseText
 var innerdivs=tabsmenutree.submenu.getElementsByTagName(“div”)
 for (var i=0; i<innerdivs.length; i++){
 if (/tabsmenucontent/i.test(innerdivs[i].className)){
 tabsmenutree.submenu_divs.push(innerdivs[i])
 }
 }
 var selected=this.initializetabs(tabsmenuid, submenuid, tabsmenutree.submenu_divs.length, disappearBool)
 if (selected!=null && selected<tabsmenutree.submenu_divs.length){
 alert(“ajaxpopulate step 3″);
 innerdivs[selected].style.display=”block”
 this.css(tabsmenutree.tabs[selected], “selected”, “add”)
 tabsmenutree.submenu._prevselected=selected
 }
 }
 },showsubmenu:function(linkobj){ 
 var tabsmenutree=this.tabsmenutree[linkobj._parentid]
 this.hidesubmenu(linkobj._parentid)
 var selected=parseInt(linkobj._pos)
 tabsmenutree.submenu_divs[selected].style.display=”block”
 this.css(tabsmenutree.tabs[selected], “selected”, “add”)
 tabsmenutree.submenu._prevselected=selected
 },hidesubmenu:function(tabsmenuid){ 
 var tabsmenutree=this.tabsmenutree[tabsmenuid]
 var prevselectedindex=tabsmenutree.submenu._prevselected
 if (typeof prevselectedindex!=”undefined”){
 tabsmenutree.submenu_divs[prevselectedindex].style.display=”none”
 this.css(tabsmenutree.tabs[prevselectedindex], “selected”, “remove”)
 }
 },clearhidetimer:function(timerid){ 
 if (timerid)
 clearTimeout(timerid)
 },css:function(el, targetclass, action){ 
 var needle=new RegExp(“(^|\s+)”+targetclass+”($|\s+)”, “ig”)
 if (action==”check”)
 return needle.test(el.className)
 else if (action==”remove”)
 el.className=el.className.replace(needle, “”)
 else if (action==”add” && !needle.test(el.className))
 el.className+=” “+targetclass
 },isContained:function(m, e){ 
 var e=window.event || e
 var c=e.relatedTarget || ((e.type==”mouseover”)? e.fromElement : e.toElement)
 while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
 if (c==m)
 return true
 else
 return false
 },urlparamselect:function(tabsmenuid){ 
 var result=window.location.search.match(new RegExp(tabsmenuid+”=(\w+)”, “i”)) //check for “?tabsmenuid=id_or_pos_of_selected_tab” in URL
 var selectedtabstr=RegExp.$1
 return /^\d+$/.test(selectedtabstr)? parseInt(selectedtabstr) : selectedtabstr //return position or ID of selected tab (or null if niether found)
 },addEvent:function(target, functionref, tasktype){ 
 if (target.addEventListener)
 target.addEventListener(tasktype, functionref, false);
 else if (target.attachEvent)
 target.attachEvent(‘on’+tasktype, function(){return functionref.call(target, window.event)});
 },init:function(tabsmenuid, submenuid, disappearBool){ 
 //alert(“hi”);
 this.tabsmenutree[tabsmenuid]={}
 this.tabsmenutree[tabsmenuid].tabs=[] //array referencing the active tab links in this menu (ones with a “rel=gotsubmenu” attr)
 this.tabsmenutree[tabsmenuid].submenu=null //reference submenu DIV for this menu
 this.tabsmenutree[tabsmenuid].submenu_divs=[] //array referencing the submenu contents (external DIVs with class=”tabsmenucontent”)
 var submenu=document.getElementById(submenuid)
 //alert(submenu+” hi first step “+submenuid +” tabsmenuid “+tabsmenuid);
 submenu._parentid=tabsmenuid
 this.tabsmenutree[tabsmenuid].submenu=submenu //remember this DIV as menu’s submenu containervar remoteurl=submenu.getElementsByTagName(“a”)[0].getAttribute(“href”) 
 //alert(” tree remoteurl “+remoteurl);
 this.ajaxload(tabsmenuid, submenuid, disappearBool, remoteurl)
 }} document.write(‘<style type=”text/css”>\n.tabsmenucontent{display:none}\n</style>’) //utility.js 
 // utility.js// newFunction 
 //———————————————————————
 function rtrim(argvalue) {
 while (true && (argvalue != null)) {
 if (argvalue.substring(argvalue.length – 1, argvalue.length) == ” “){
 argvalue = argvalue.substring(0, argvalue.length – 1);
 }else{
 break;
 }
 }
 return argvalue
 }
 //———————————————————————-
 function ltrim(argvalue) {
 while (true && (argvalue != null) ) {
 if (argvalue.substring(0, 1) == ” “){
 argvalue = argvalue.substring(1, argvalue.length);
 }else{
 break;
 }
 }
 return argvalue
 }
 function trim(str)
 {
 return (str.replace(/^\s*/, ”).replace(/\s*$/, ”));
 }
 //Remove all space including in between spaces
 function trimAll(value) {
 var temp = value;
 var obj = /^(\s*)([\W\w]*)(\b\s*$)/;
 if (obj.test(temp)) { temp = temp.replace(obj, ‘$2’); }
 var obj = / /g;
 while (temp.match(obj)) { temp = temp.replace(obj, “”); }
 return temp;
 }
 function initializeSelect(cntrl, isDisabled)
 {
 cntrl.options.length=0;
 cntrl.options[0]=new Option(‘Select’,”);
 cntrl.disabled=isDisabled;
 }July 14, 2009 at 6:56 am #300493
 support-joyMember
- 
		AuthorPosts

