<!--// Hide script from NON-JavaScript browsers

//
// 11-10-2002 TIME 02:11PM   Joel A. Cholakians (TeraNova Pty Ltd)
//

function URLEncoderObj()
{
    this.init = init;
       
    this.replaceChars = replaceChars;
    this.encode = encode;
    this.unencode = unencode;    
    this.escapeExt = escapeExt;
    
    this.destroy = destroy;
}

function init()
{
    
}

function replaceChars(s, s1, s2)
{
    while(s.indexOf(s1) > -1) 
    {
        pos = s.indexOf(s1);
        s = "" + (s.substring(0, pos) + s2 + s.substring((pos + s1.length), s.length));
    }
    
 return s;
}

function encode(s)
{
 //return replaceChars(escape(s), '@', '%');
 
 return escape(s);
}

function unencode(s)
{
 //return unescape(replaceChars(s, '%', '@'));
 
 return unescape(s);
}

function escapeExt(s) 
{
    s = escape(s);
    re = /\+/g;
 
 return s.replace(re, "%2B");
}

function destroy()
{

}

//End hiding from NON-JavaScript browsers // -->