b0VIM 5.6      '~D>G TK  root                                    armada110.terasoft.com.au               /home/common/javascript/paysys.js                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   3210#"! U                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     tp       \            k   ^         $            a            @   5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ad    ?	     \                 y  d  C  *  '              k  I  -  %  !                   w  s  P  O                        f  6  1                n  j  J  .    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  t
  R
  L
  C
  =
  
  	  	  	  	  	  	  	  	  	  ?	  ;	  	                q  ^  Z  W  0  ,                t  f  Y  K  &                      b  \  K                  _  W  9                        w  o  H                    |  a  ^  ]  F                            }       box3.value="</a>"; 	if (box3.value=="")     //  box2.value="<img src=\"YOURIMG.gif\">"; 	//if (box2.value=="")  	}         box1.value=mybox1;      // else      //   box1.value="<a href=\"www.example.com\">"; 	 // if (mybox1=="") 	{ 	else     }       }           box1.options[i].selected = false; 		else           box1.options[i].selected = true;         if (mybox1 == box1.options[i])       {       for (var i=0; i<box1.options.length; i++) 	{ 	if (box1.options)  	} 	  box3.value=""; 	  box2.value=""; 	  mybox1.value=""; 	{ 	else 	}         box3.value=ref.value.substring(az+1,a2z+1); 	  if ((img==-1)&&(a2!=az+1))       }           box3.value=ref.value.substring(imgz+1,a2z+1);         if (imgz>=0) 	  {       if ((a2!=imgz+1)&&(a2!=az+1))	          box2.value=ref.value.substring(img,imgz+1);       if (imgz>a)	          mybox1=ref.value.substring(a,az+1);       if (az>a)	             a2z=ref.value.indexOf(">",a2)          imgz=ref.value.indexOf(">",img) 	  if (img>=0) 	         az=ref.value.indexOf(">",a)     {     if ((a>=0) && (a2>=0))  	var mybox1="";     var a2z=-1;     var a2=ref.value.indexOf("</a"); 	var txtz=-1; 	var txt=-1; 	var imgz=-1; 	var img=ref.value.indexOf("<img");     var az=-1;     var a=ref.value.indexOf("<a");   {   function set3boxes(ref,box1,box2,box3)    }     ref.value=box1.value+box2.value+box3.value;   {   function set1box(ref,box1,box2,box3)      } 	textbox.value='';     keyElement.value=textbox.value;     var keyElement=getElement("keyvalue");   {   function setKeyValue(textbox)    }     } 		lastKeyFie    //if ((textbox.     i    if (lastKeyFieldId != keyElement.id        if ((textbox.value=='')||(lastKeyFieldId != keyElement.id))  	var keyElement=getElement("keyvalue");   {   function loadKeyValue(textbox)    }     return element;     }         element=document.getElementById(id); 	  if (document.getElementById(id))     {     else     }         element=document.all[id]; 	  if (document.all[id])     {     if (is_ie4)  	var element;   {   function getElement(id)    } 	return true;               }        }         }           modform.style.display="none"; 	      if (modform != null) 	      modform=getElement(amf); 		{         if (amf!="") 	    activemodform.length=activemodform.length-1;         amf=activemodform[activemodform.length-1];       { 	  if (activemodform.length>0)      {     if (event.keyCode==27) 	 */ 	 * and remove it from the activemodform queue. 	 * If escape char is selected, hide the active modify form 	/*  	 	var amf=""; 	var modform;   {   function handleKeys(e)    }         hideModifyForm(0);       if ((txt!="text")&&(txt!="submit")&&(txt!="select-one")&&(txt!="file"))      var txt=event.srcElement.type;   {   function handleMouseClick(e)    } 	return true; 	y=event.clientY +document.body.scrollTop;     x=event.clientX +document.body.scrollLeft;   {   function getMouseXY(e)    }       } 		activemodform.length=idx; 		  element.style.display="none"; 		if (element != null)         element=getElement(activemodform[idx]);        { 	  for (var idx=activemodform.length;idx>=level;idx--) 	  var element;   {   function hideModifyForm(level)      var lastKeyFieldId="";   var activemodform=new Array();   var activeformY=0;   var activeformX=0;   var modformY=0;   var modformX=0;   var y=0;   var x=0;   var javascript_version=1.0;   var newWin; <!-- Hidden ad  	  
     @                 e  a  =    	                j  5  0            w  :                n  j  Z  T  #                        z  H  B  9  3    
  
  
  
  
  
  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     // --->     }     }         document.getElementById(theId).style.display="none"; 	  if (document.getElementById(theId))     {     else     }         document.all[theId].style.display="none"; 	  if (document.all[theid])     {     if (is_ie4)   {   function hide(theId)    }     }       document.getElementById(theId).style.display="block";     {     else     }       document.all[theId].style.display="block";     {     if (is_ie4)   {   function show(theId)   }    //  newWin.document.writeln("</html></head></body>");          }           } //      newWin.document.writeln("<P>"+form.elements[x].name +"="+form.elements[x].value+"</P>");           form.elements[x].value = form.elements[x-1].value;         if (form.elements[x-1].value != "")       {          if (form.elements[x].name.search(rExp) != -1)     {     for (x=0; x<form.elements.length; x++)     rExp = /currImageRef_/g;      //  newWin.document.writeln("<html><head><body>");   //  var newWin = open('','myDoc','')     var x = 0;     var count = 0;       {   function loadFilenames(form)    }          theForm.elements[0].disabled=true;     else        theForm.elements[0].disabled=false;     if (theForm.areYouSure.checked)   {   function confirmButton(theForm)    }       self.close();     if (closeSelf)      self.opener.location = url;   {   function loadinparent(url, closeSelf) ad         $         x  >  9  -                j  i  Z  T  5                w  v  _  Y  A  (  	                  _  6  )             e  ;  
  
  
  
  `
  ?
  

  	  	  	  	  	  z	  m	  `	  _	  =	  	            \  +  #  "                f  M  "                                                          o  Z  1  )                q  U  ?  1  -  *         } 	return true;     theForm.submit();     theForm.target=winname;     mywin.document.writeln(prompt);     mywin=openWindow('',winname,width,height);     var mywin;   {   function waitWindow(theForm,prompt,winname,width,height)      } 	return newWin;     }*/ 	    setTimeout('newWin.focus();',3000); 	  if (window.focus)       newWin.focus();     {    	/*if (javascript_version > 1.0)      newWin = window.open(file,name,attr);     newWin.close();     newWin = window.open(file,name,attr);        attr="dependent=0,resizable=1,scrollbars=0,menubar=0,location=0,toolbar=0,width="+width+",height="+height; 	else 	}         attr="dependent=0,resizable=1,scrollbars=1,menubar=1,location=1,toolbar=1,width="+width+",height="+height; 	  if (level==4)         attr="dependent=0,resizable=1,scrollbars=1,menubar=1,location=1,toolbar=0,width="+width+",height="+height; 	  if (level==3)         attr="dependent=0,resizable=1,scrollbars=1,menubar=1,location=0,toolbar=0,width="+width+",height="+height; 	  if (level==2)         attr="dependent=0,resizable=1,scrollbars=1,menubar=0,location=0,toolbar=0,width="+width+",height="+height; 	  if (level==1) 	{ 	if (level)  	var attr;   {   function openWindow(file,name,width,height,level)    } 	modform.style.display="inline";     } 	  activemodform[activemodform.length]=id; 	  hideModifyForm(LL*1); 	  modform.style.left=mfsx; 	  modform.style.top=mfsy; 	   	  mfsy=mfy+"px"; 	  mfsx=mfx+"px";       mfy=mfy-(lineheight/2);       //mfy=mfy+(lineheight*(NN-1));       mfx=mfx+(width*LL);        }           set3boxes(activeinput,box1,box2,box3); 	    if ((box1!=null) && (box2!=null) && (box3!=null))         loadKeyValue(activeinput);       { 	  if ((activeinput=getElement("textbox"+LL+NN)) != null)  	  box3=getElement("box3"+LL+NN); 	  box2=getElement("box2"+LL+NN); 	  box1=getElement("box1"+LL+NN);  	  var box3; 	  var box2; 	  var box1; 	  var activeinput; 	  var mfy=mfsy*1;       var mfx=mfsx*1; 	  var mfsy=y; 	  //var mfsy=modformY.substring(0,modformY.length-2); 	  var mfsx=modformX.substring(0,modformX.length-2); 	  var NN=linknums.substring(2);   	  var LL=linknums.substring(0,2); 	  var linknums=id.substring(id.length-4); 	   */ 	   * As NN increases the submenu box is placed further down. 	   * As LL increases the submenu box is placed further to the right. 	   * submenu relative to the modifyform. 	   * this will determine the x,y placement of the 	   * 	   *   <NN>          - submenu item number 	   *   <LL>          - submenu level 	   *   <submenuname> - any id text for submenu 	   *    	   * where, 	   * convention  <submenuname><LL><NN>, 	   * the submenus of modifyform, have a naming 	  /*     { 	else     } 	  activemodform[active	  resetTextboxes(); 	  hideModifyForm(0); 	  modformX=modform.style.left; 	  modformY=modform.style.top; 	  modform.style.left=x; 	  modform.style.top=y;     { 	if (id=="modifyform")  	document.onkeydown=handleKeys; 	document.onmousedown=handleMouseClick; 	getMouseXY(); 	document.onmousemove=getMouseXY;      } 	  lastKeyFieldId=field.id;       keyvalue.value=field.value;       keyfield.value=field.id;     {     if (field)  	modform=getElement(id); 	field=getElement(fieldname);  	activemodform[activemodform.length]=id; 	     var keyvalue=getElement("keyvalue");     var keyfield=getElement("keyfield"); 	var modform; 	var field; 	 */ 	 * and update a few elements of the template modify form      * This script will simply make the template Modify Form visible     /*   {   function setModifyForm(fieldname,id,width,lineheight) ad  U       k                   X  4  !                      {  m  l  R  O  >  %              ]  V  ?  5  0  -  )                 }  X  H  8  7                    }  Q  P  =  	    
  
  
  
  
  k
  7
  4
  .
  +
  
  
  	  	  	  	  	  	  	  z	  O	  H	  	  	  	  	  	              x  H  3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }       box3.value="</a>"; 	if (box3.value=="")     //  box2.value="<img src=\"YOURIMG.gif\">"; 	//if (box2.value=="")  	}         box1.value=mybox1;      // else      //   box1.value="<a href=\"www.example.com\">"; 	 // if (mybox1=="") 	{ 	else     }       }           box1.options[i].selected = false; 		else           box1.options[i].selected = true;         if (mybox1 == box1.options[i])       {       for (var i=0; i<box1.options.length; i++) 	{ 	if (box1.options)  	} 	  box3.value=""; 	  box2.value=""; 	  mybox1.value=""; 	{ 	else 	}         box3.value=ref.value.substring(az+1,a2z+1); 	  if ((img==-1)&&(a2!=az+1))       }           box3.value=ref.value.substring(imgz+1,a2z+1);         if (imgz>=0) 	  {       if ((a2!=imgz+1)&&(a2!=az+1))	          box2.value=ref.value.substring(img,imgz+1);       if (imgz>a)	          mybox1=ref.value.substring(a,az+1);       if (az>a)	             a2z=ref.value.indexOf(">",a2)          imgz=ref.value.indexOf(">",img) 	  if (img>=0) 	         az=ref.value.indexOf(">",a)     {     if ((a>=0) && (a2>=0))  	var mybox1="";     var a2z=-1;     var a2=ref.value.indexOf("</a"); 	var txtz=-1; 	var txt=-1; 	var imgz=-1; 	var img=ref.value.indexOf("<img");     var az=-1;     var a=ref.value.indexOf("<a");   {   function set3boxes(ref,box1,box2,box3)   } 	} 	  }         }           el.value=""; 	    { 	    if ((el=getElement("textbox"+LL+NN))!=null)           NN=NN.substring(NN.length-2);   	    if (NN.length > 2) 		NN="0"+nn; 	  { 	  for (var nn=1;nn<20;nn++)         LL=LL.substring(LL.length-2);       if (LL.length > 2)       LL="0"+ll; 	{ 	for (var ll=1;ll<4;ll++)  	var el=null; 	var NN="01";     var LL="01";   {   function resetTextboxes()    }     ref.value=box1.value+box2.value+box3.value;   {   function set1box(ref,box1,box2,box3)      } 	textbox.value='';     keyElement.value=textbox.value;     var keyElement=getElement("keyvalue");   {   function setKeyValue(textbox)    }     } 		lastKeyFieldId=keyElement.id;         textbox.value=keyElement.value;     { ad    X     a               d  W  N            i  #          m  8                    k  I  '  &          Y  Q  P  6    
  
  
  
  
  
  {
  P
  J
  )
  %
  $
  	  	  	  	  	  	  	  M	  <	      E  4        G  F                  _  W  G  C  @              m  _  [  X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       } 	return true;     theForm.submit();     theForm.target=winname;     mywin.document.writeln(prompt);     mywin=openWindow('',winname,width,height);     var mywin;   {   function waitWindow(theForm,prompt,winname,width,height)      } 	return newWin;     }*/ 	    setTimeout('newWin.focus();',3000); 	  if (window.focus)       newWin.focus();     {    	/*if (javascript_version > 1.0)      newWin = window.open(file,name,attr);     newWin.close();     newWin = window.open(file,name,attr);        attr="dependent=0,resizable=1,scrollbars=0,menubar=0,location=0,toolbar=0,width="+width+",height="+height; 	else 	}         attr="dependent=0,resizable=1,scrollbars=1,menubar=1,location=1,toolbar=1,width="+width+",height="+height; 	  if (level==4)         attr="dependent=0,resizable=1,scrollbars=1,menubar=1,location=1,toolbar=0,width="+width+",height="+height; 	  if (level==3)         attr="dependent=0,resizable=1,scrollbars=1,menubar=1,location=0,toolbar=0,width="+width+",height="+height; 	  if (level==2)         attr="dependent=0,resizable=1,scrollbars=1,menubar=0,location=0,toolbar=0,width="+width+",height="+height; 	  if (level==1) 	{ 	if (level)  	var attr;   {   function openWindow(file,name,width,height,level)    } 	modform.style.display="inline";     } 	  activemodform[activemodform.length]=id; 	  hideModifyForm(LL*1); 	  modform.style.left=mfsx; 	  modform.style.top=mfsy; 	   	  mfsy=mfy+"px"; 	  mfsx=mfx+"px";       mfy=mfy-(lineheight/2);       //mfy=mfy+(lineheight*(NN-1));       mfx=mfx+(width*LL);        }           set3boxes(activeinput,box1,box2,box3); 	    if ((box1!=null) && (box2!=null) && (box3!=null))         loadKeyValue(activeinput);       { 	  if ((activeinput=getElement("textbox"+LL+NN)) != null)  	  box3=getElement("box3"+LL+NN); 	  box2=getElement("box2"+LL+NN); 	  box1=getElement("box1"+LL+NN);  	  var box3; 	  var box2; 	  var box1; 	  var activeinput; 	  var mfy=mfsy*1;       var mfx=mfsx*1; 	  var mfsy=y; 	  //var mfsy=modformY.substring(0,modformY.length-2); 	  var mfsx=modformX.substring(0,modformX.length-2); 	  var NN=linknums.substring(2);   	  var LL=linknums.substring(0,2); 	  var linknums=id.substring(id.length-4); 	   */ 	   * As NN increases the submenu box is placed further down. 	   * As LL increases the submenu box is placed further to the right. 	   * submenu relative to the modifyform. 	   * this will determine the x,y placement of the 	   * 	   *   <NN>          - submenu item number 	   *   <LL>          - submenu level 	   *   <submenuname> - any id text for submenu 	   *    	   * where, 	   * convention  <submenuname><LL><NN>, 	   * the submenus of modifyform, have a naming 	  /*     { 	else     } 	  activemodform[activemodform.length]=id; 
