b0VIM 5.6      TF>G d  root                                    www.terasoft.com.au                     /home/common/javascript/paysys.js                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   3210#"! U                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     tp                                  !         g            ,           U   8                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ad  h                          d  C  *  '              k  I  -  %  !                   w  s  P  O                        f  6  1                n  j  J  .    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  t
  R
  L
  C
  =
  
  	  	  	  	  	  	  	  	  	  ?	  9	  	                s  `  \  Y  2  .                        }  d  >  !              ~  t  o  l  h  ?  ;    	              w  v  [  U  3  /                   |  H  G  "            v  s  m  j  V  D  2  /  .                {       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;     {     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 modf  var osy=0;   var osx=0;   var y=0;   var x=0;   var javascript_version=1.0;   var newWin; <!-- Hidden ad    	     U               W  O  ?  ;  8            {  e  W  S  P  (  $                  b  Y  /  )  (  	              c  8  2          )  !      
  
  
  
  
  
  
  s
  m
  d
  ^
  "
  
  
  
   
  	  	  	  	  	  	  	  	  \	  	  	  	  	  	  	  
	                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // --->     }     }         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)      } 	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); ad  *	  	     ,               p  l  Q  5        M  G  -  &    y  h  b      
                3  "      +    
  
  
  -
  ,
  
  	                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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)    }       //window.scrollTo((Math.floor(osx/200))*200,200);//Math.floor(osy/200)*400);     } 	  lastLevel=LL; 	    modform.scrollIntoView(true); 	  if (((y+modform.clientHeight)>(document.body.offsetHeight*1+document.body.bottomMargin*1+document.body.topMargin*1))&&(lastLevel!=LL)) 	   */ 	   * once for each level 	  /* 	  //alert ((y+modform.clientHeight)+" "+(document.body.offsetHeight*1+document.body.bottomMargin*1+document.body.topMargin*1)); 	  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);              } ad         g         {  s  m  g  d  O                  y  u  t  <  8  1            j  A  @                    l  f  e  C  4                    u  \  =      
  
  
  
  A
  ;
  5
  /
  )
  	  	  	  	  	  d	  8	  2	        Q  J          m  ^  H  5  !                  X  P  -        t        p  j  I  E  D                 m  \      e  T        g  f  <  (      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";     } 	  a          set3boxes(ac          set3          set3boxes(activeinput,box1,box2,box          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     } // 	alert(Math.floor(osx/200)*200+" " +Math.floor(osy/200)*400); 	  modform.scrollIntoView(false); 	  modform.style.display="inline"; 	  activemodform[activemodform.length]=id; 	  resetTextboxes(); 	  hideModifyForm(0); 	  modformX=modform.style.left; 	  modformY=modform.style.top; 	  modform.style.left=x; 	  modform.style.top=y;     { 	if (id=="modifyform")    //	alert(Math.floor(osx/100)*100+" " +Math.floor(osy/50)*50);  	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)    }       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]) ad  R                    x  b  _  >  :  *            e  ]  Y  X  ?  ;              k  g  D  C                        Z  *  %  
            w  b  ^  >  "  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  h
  F
  @
  7
  1
  
  	  	  	  	  	  	  	  t	  s	  3	  -	  	                g  T  P  M  &  "                        q  X  2                r  h  c  `  \  3  /                {  k  j  O  I  '  #                  p  <  ;              j  g  a  ^  J  8  &  #  "                {       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;     {     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     osx=event.offsetX +document.bod    osx=ev          osx=event.clientX; 	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 lastLevel="00";   var lastKeyFieldId="";   var activemodform=new Array();   var activeformY=0;   var activeformX=0;   var modformY=0;   var modformX=0; ad                            D  <  !                            G                  d  O  K  +                        }  y  x  ^  Z  L  K  ;  5                  z  v  u  T  P  (  '  
  
  
  
  
  
  
  n
  j
  ?
  
  
  
  
  	  	  	  	  	  	  	  p	  b	  T	  S	  9	  6	  %	  	            u  D  =  &                      r  d  ?  /                    {  u  d  8  7  $            x  p  R                            y                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         {       f      {       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;     {     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;               }        }         }           } 	        window.scrollTo(0,0);             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)    } 	    event.srcElement.scrollIntoView(true);       else       } 	    window.scrollTo(0,0);         hideModifyForm(0);       {       if ((txt!="text")&&(txt!="submit")&&(txt!="select-one")&&(txt!="file"))      var txt=event.srcElement.type;   {   function handleMouseClick(e)    } 	return true; 	osy=event.clientY; 
