<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:NonHtml="http://www.progress.com/StylusStudio/NonHtml"
	exclude-result-prefixes="NonHtml">
	<xsl:output method="html" />
	<xsl:template match="/">
		<html>
			<head>
			<script language="JavaScript" type="text/javascript">
					var objCur = "";
					var oldVal
					= "";
					var obj1 = "";
					function gotFocus(column)
					{
					objCur=column.name;
					oldVal=column.value;
					dotNotaion = undefined;
					if(objCur.id == undefined )
					{
					obj1 = column;
					}
					}
					function gotBlur(obj)
					{
					if((oldVal != obj.value) || (obj.ISCHANGED == "true"))
					{

					obj.ISCHANGED = "true";
					var isSRVCALLONCHANGE = obj.SRVCALLONCHANGE;
					if( isSRVCALLONCHANGE == "true" )
					{
					itemChange(obj);
					}
					}

					}
					function assignValue(value1)
					{
					if(obj1.name.indexOf("date")!=-1 || obj1.name.indexOf("DATE")!=-1 ||
					obj1.name.indexOf("valid_upto")!=-1)
					{

					if(dateFormat.substring(0,2) == 'dd')
					value1 =
					value1.substring(0,2)+"/"+value1.substring(3,5)+"/"+value1.substring(8,value1.length);
					else
					value1 =
					value1.substring(3,5)+"/"+value1.substring(0,2)+"/"+value1.substring(8,value1.length);
					obj1.value=value1;
					obj1.ISCHANGED = "true";

					}
					else
					{
					obj1.value=value1;
					gotBlur(obj1);
					}

					}
					function handleMandatory(obj)
					{
					if(obj.name.indexOf("spec_rating") != -1)
					{
					alert("Please Specifiy Ratings against parameters.");
					document.getElementById(obj.name+"__cmb").focus();
					return false;
					}
					else if(obj.name.indexOf("justification") != -1)
					{
					alert("Please Specifiy Justification for status change.");
					document.getElementById(obj.name).focus();
					return false;
					}
					obj.focus();
					return false;
					}
					function maxChar(obj,len)
					{
					if(obj.value.length > len)
					{
					obj.focus();
					alert("Enter up to "+len+" Characters only");
					return false;
					}
					}
					
				</script>			
				<link rel="stylesheet" href="/ibase/webitm/css/Standard/style.css" type="text/css" />				
			</head>
			<body bgcolor='#EEEEEE'>
				<span class="allDisplayDiv">
					<TABLE style="position:relative;left=250">
						<TR>
							<TD colspan="10">
								<H2>
									<CENTER>
										<i>BUDGET GROUP ACCT AMENDMENT</i>
									</CENTER>
								</H2>
							</TD>
						</TR>
						
						<xsl:for-each select="//Detail1">
							<xsl:variable name="dbID">
								<xsl:value-of select="@dbID" />
							</xsl:variable>
							
							<xsl:variable name="amd_no">
								<xsl:value-of select="amd_no" />
							</xsl:variable>
							<xsl:variable name="budget_id">
								<xsl:value-of select="budget_id" />
							</xsl:variable>
							<xsl:variable name="emp_code">
								<xsl:value-of select="emp_code" />
							</xsl:variable>

							<xsl:variable name="confirmed">
								<xsl:value-of select="confirmed" />
							</xsl:variable>

							
	
						
							<TR >
								<TD align="right"> Amendment No : </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=120px"
											id="Detail1.{normalize-space($dbID)}.amd_no" name="Detail1.{normalize-space($dbID)}.amd_no"
											value="{$amd_no}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>
							</TR>

 <TR >
								<TD align="right"> Budget Id : </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=120px"
											id="Detail1.{normalize-space($dbID)}.budget_id" name="Detail1.{normalize-space($dbID)}.budget_id"
											value="{$budget_id}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>
							</TR>
 <TR >
								<TD align="right"> Employee Code : </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=120px"
											id="Detail1.{normalize-space($dbID)}.emp_code" name="Detail1.{normalize-space($dbID)}.emp_code"
											value="{$emp_code}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>
							</TR>
 							<TR >
								<TD align="right"> Confirmed : </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=120px"
											id="Detail1.{normalize-space($dbID)}.confirmed" name="Detail1.{normalize-space($dbID)}.confirmed"
											value="{$confirmed}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>
							</TR>

							
                                                    

						</xsl:for-each>




<xsl:for-each select="//Detail2">
							<xsl:variable name="dbID">
								<xsl:value-of select="@domID" />
							</xsl:variable>
							
							<xsl:variable name="line_no">
								<xsl:value-of select="line_no" />
							</xsl:variable>
							
							<xsl:variable name="bud_group_code">
								<xsl:value-of select="bud_group_code" />
							</xsl:variable>
							<xsl:variable name="budget_amt">
								<xsl:value-of select="budget_amt" />
							</xsl:variable>
							<xsl:variable name="budget_amt_old">
								<xsl:value-of select="budget_amt_old" />
							</xsl:variable>

							<TR >
								
								<TD align="right"> LINE NO: </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=50px"
											id="Detail1.{normalize-space($dbID)}.line_no" name="Detail1.{normalize-space($dbID)}.line_no"
											value="{$line_no}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>

								<TD align="right"> BUDGET GROUP CODE: </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=120px"
											id="Detail1.{normalize-space($dbID)}.bud_group_code" name="Detail1.{normalize-space($dbID)}.bud_group_code"
											value="{$bud_group_code}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>
								<TD align="right"> BUDGET AMOUNT : </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=80px"
											id="Detail1.{normalize-space($dbID)}.budget_amt" name="Detail1.{normalize-space($dbID)}.budget_amt"
											value="{$budget_amt}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>

								<TD align="right"> BUDGET OLD AMOUNT: </TD>
								<TD class="righttd">
									<span class="viewData">
										<input style="width=80px"
											id="Detail1.{normalize-space($dbID)}.budget_amt_old" name="Detail1.{normalize-space($dbID)}.budget_amt_old"
											value="{$budget_amt_old}" onfocus="gotFocus(this)"
											SRVCALLONCHANGE="false" READONLY="true" TABORDER="0"
											ISCHANGED="true" isReq="false" maxlength="5" class="description1" />
									</span>
								</TD>

								
								

							</TR>
 				 </xsl:for-each>









			



						
						
				   </TABLE>
				</span>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

