	function showtip(current,e,text){

		window.status=text;
		if (document.layers){
			if(document.tooltip){
				document.tooltip.visibility="hidden";
				document.tooltip=null;
			};
			document.tooltip = new Layer(500);
			document.tooltip.document.write('<layer bgColor="#FFFFCC" CLASS="txt" style="border:1px solid black;font-size:10px;font-family:Geneva,Verdana,Helvetica;">' + text + '</layer>')
			document.tooltip.document.close()
			document.tooltip.left=e.pageX+5
			document.tooltip.top=e.pageY+5
			document.tooltip.visibility="show"
			document.tooltip.zIndex=0;
		}
		else{
			thetitle=text.split('<BR>')
			if (thetitle.length>1){
				thetitles=''
				for (i=0;i<thetitle.length;i++)
					thetitles+=thetitle[i]
				current.title=thetitles
			}
			else
				current.title=text		
		}
	}
	function hidetip(){

		window.status="";
		if (document.layers){
			if(document.tooltip){
			document.tooltip.visibility="hidden";
			}
		}
	}

function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}

function changeImage(layer,imgName,imgObj) {
 var tmpImg;
	if (document.images) {
		if (document.layers && layer!=null) {
			if(String(document.layers[layer].document.images[imgName])!=String("undefined")){
			eval('tmpImg = document.'+layer+'.document.images["'+imgName+'"]')
			eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
			return tmpImg;
		}
		}
		else {
			if(String(document.images[imgName])!=String("undefined")){
				tmpImg = document.images[imgName];
				document.images[imgName].src = eval(imgObj+".src")
				return tmpImg;
			}
		}
	}
}

function fTextBoxMatrix(iValues,iMaxLength,iWidth,iCount,iColumns,iName,iOnChange,iOnClick,iTabIndex,addLine){
	top.f_8.document.write('<table cellpadding=0 cellspacing=0 border=0>');
	iColumns=((iCount<iColumns)?iCount:iColumns);
	var Values=iValues.split(",");
	var i=1;
	while(i<=iCount){
		var Out="<tr>";
		for(j=1;j<=iColumns;j++){
			if(i<=iCount){
				Out+='<td class=Matrix'+((iColumns==1)?"":((j==1)?"L":((j==iColumns)?"R":"C")))+'><input class="ctl_Text" type="Text"'+((i<=Values.length && Values[i-1].length>0)?' value="'+Values[i-1]+'"':"")+' maxlength='+iMaxLength+' name="'+iName+i+'" tabindex='+((iTabIndex==null)?i:(iTabIndex+i))+((iOnChange!=null)?' onchange="'+iOnChange+'"':"")+((iOnClick!=null)?' onclick="'+iOnClick+'"':"")+
((is.b=="ie")?/*' class="InputIE"'*/'':"")+((is.ns4)?' width='+iWidth:' style="width:'+iWidth+'"')+
'></td>';
				i++;
			}else{
				Out+='<td'+((iColumns!=j)?' colspan='+(iColumns-j+1):"")+'><img height=1 width=1 border=0 src="'+img1x1+'"></td>';
				break;
			}
		}
		top.f_8.document.write(Out+"</tr>");
	}
	if(addLine==null && is.b=="ie")
		top.f_8.document.write('<tr><td colspan='+iColumns+'><img height=1 width=1 border=0 src="'+img1x1+'"></td></tr>');
	top.f_8.document.write('</table>');
}

function fTextBox2Matrix(iOnChange,iOnClick,iTabIndex,iName1,iValues1,iMaxLength1,iWidth1,iName2,iValues2,iMaxLength2,iWidth2,iColumns2,addLine){
	top.f_8.document.write('<tr><td class="MatrixL"><input class="ctl_Text" type="Text" maxlength='+iMaxLength1+' name="'+iName1+'"'+((iValues1!=null)?' value="'+iValues1+'"':"")+' tabindex='+iTabIndex+((iOnChange!=null)?' onchange="'+iOnChange+'"':"")+((iOnClick!=null)?' onclick="'+iOnClick+'"':"")+((top.is.b=="ie")?/*' class="InputIE"'*/'':"")+((top.is.ns4)?' width='+iWidth1:' style="width:'+iWidth1+'"')+'></td><td class="MatrixR0">');
	fTextBoxMatrix(iValues2,iMaxLength2,iWidth2,iColumns2,iColumns2,iName2,iOnChange,iOnClick,iTabIndex,addLine);
	top.f_8.document.write('</td></tr>')
}

function fRangeMatrix(iValue1,iValue2,iDelimiters,iName1,iName2,iMaxLength,iWidth,iCount,iColumns,iOnChange,iOnClick,iTabIndex){
	var Values1=iValue1.split(iDelimiters);
	var Values2=iValue2.split(iDelimiters);
	var icol=1;
	var irow=1;
	str="<tr>";
	for(i=1; i<=iCount; i++){
		str+='<td class="MatrixL">'+'<input class="ctl_Text" type="Text" maxlength='+iMaxLength+' name="'+iName1+i+'" tabindex='+iTabIndex+((i<=Values1.length && Values1[i-1].length>0)?' value="'+Values1[i-1]+'"':"")+((iOnChange!=null)?' onchange="'+iOnChange+'"':"")+((iOnClick!=null)?' onclick="'+iOnClick+'"':"")+((is.b=="ie")?/*' class="InputIE"'*/'':"")+((is.ns4)?' width='+iWidth:' style="width:'+iWidth+'"')+'></td>'+
		'<td class="MatrixR1">'+'<input class="ctl_Text" type="Text" maxlength='+iMaxLength+' name="'+iName2+i+'" tabindex='+(iTabIndex+1)+((i<=Values2.length && Values2[i-1].length>0)?' value="'+Values2[i-1]+'"':"")+((iOnChange!=null)?' onchange="'+iOnChange+'"':"")+((iOnClick!=null)?' onclick="'+iOnClick+'"':"")+((is.b=="ie")?/*' class="InputIE"'*/'':"")+((is.ns4)?' width='+iWidth:' style="width:'+iWidth+'"')+'></td>';
		if(i!=iCount){
			if(icol==iColumns){
				irow++;
				icol=1;
				str+="</tr><tr>"
			}else icol++;
			iTabIndex+=2;
		}
	}
	if(icol!=iColumns)
		str+='<td colspan='+((iColumns-icol)*2)+'><img height=1 width=1 border=0 src="'+img1x1+'"></td>'
	str+='</tr>';
	irow+=3;
	var str1="<tr>";
	for(i=0; i<iColumns; i++)
		str1+=((i>0)?'<td rowspan='+irow+'><img height=1 width=6 border=0 alt="" src="'+img1x1+'"></td>':"")+'<td class="HederText03">' + DT_ALERT_185 + '</td><td rowspan='+irow+'><img height=1 width=1 border=0 src="'+img1x1+'"></td><td class="HederText03">' + DT_ALERT_186 + '</td>'; // #36161 /
	str='<tr><td><table cellpadding=0 cellspacing=0 border=0 align=center><tr><td colspan='+(iColumns*4-1)+'><img height=1 width=1 border=0 src="'+img1x1+'"></td></tr>'+str1+'</tr><tr><td colspan='+(iColumns*2)+'><img height=1 width=1 border=0 src="'+img1x1+'"></td></tr>'+str+((is.b=="ie")?'<tr><td colspan='+iColumns+'><img height=1 width=1 border=0 src="'+img1x1+'"></td></tr>':"")+'</table></td></tr>';
	top.f_8.document.write(str)
}


function displayAtStatus(str){
  window.status=unescape(str);
  return true;
}


