<!--
//----------------------------------------------------------

// A utility function that returns true if a string contains only

// whitespace characters

//----------------------------------------------------------

function isblank(s)

{

for (var i = 0; i < s.length; i++) {

var c = s.charAt(i); 

if ((i == 0 && c == '-') || c == "") return true; 

else if ((c != ' ') && (c != '/n') && (c != '/t')) return false; 

}

return true;

}

//----------------------------------------------------------

// A utility function that returns the index of the selected

// radio button

//----------------------------------------------------------

function getSelectedButtonIndex(buttonGroup)

{

for (var index = 0; index < buttonGroup.length; index++) {

if (buttonGroup[index].checked) {

return index;

} 

}


return -1;

}

//----------------------------------------------------------

//----------------------------------------------------------

function isdigit(character)

{

if (character >= '0' && character <= 9)

return true;

else

return false

}

//----------------------------------------------------------

//----------------------------------------------------------

function isalpha(character)

{

if ((character >= 'A' && character <= 'Z') ||

(character >= 'a' && character <= 'z'))

return true;

else

return false

}

function NNEmbedSpaceCode(string)

{

if (navigator.appName != 'Microsoft Internet Explorer')

while (string.search(" ") != -1) {

string = string.replace(" ", "%20");

}


return string;

}


function setStatus(msg)

{

status = msg;

return true;

}

//---------------------------------------------------------------------

// A utility function that trims whitespace off left & right of strings

//---------------------------------------------------------------------

function TrimEnds(s)

{

while (s.charAt(0) == ' ' || s.charAt(0) == '\n' || s.charAt(0) == '\t') {

s = s.slice(1,s.length); 

}

return s;

}

//---------------------------------------------------------------------

// A utility function that trims all whitespace out of strings

//---------------------------------------------------------------------

function TrimAll(s)

{

//Remove blank spaces

var regexp = /\ \b/;

s = s.replace(regexp,'');


//Remove carriage returns

var regexp = /\\n\b/;

s = s.replace(regexp,'');


//Remove tab chars

var regexp = /\\t\b/;

s = s.replace(regexp,'');


return s;

}

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}


 

//-->

