	function getParamValue(zvar) 
	{
	// Search through the parameter list and look up the value of the 
	// parameter that passed in.
	// If found, return the value; otherwise, return empty string.
	
	  var qstr = location.search.substring(1, location.search.length);
	  var qstrAr = qstr.split("&");
	  
	  for (var i=0; i<qstrAr.length; i++) 
	  {
		qthis = qstrAr[i];
		qthisAr = qthis.split("=");
		if (qthisAr[0]==zvar) 
		{
			return qthisAr[1];
		}
	  }
	
  	  return "";
	}


	function getParamValue2(zvar) 
	{
	  var qstr = location.search.substring(1, location.search.length);
	  var qstrAr = qstr.split("&");
	  
	  for (var i=0; i<qstrAr.length; i++) 
	  {
		qthis = qstrAr[i];
		qthisAr = qthis.split("=");
		if (qthisAr[0]==zvar) 
		{
		  if (qthisAr.length==3)
		  	return qthisAr[1] + '=' + qthisAr[2];
		  else
			return qthisAr[1];
		}
	  }
	
  	  return "";
	}
	
	
    function isAscii(str)
    {
	// Check the string: if it contains no non-Ascii char, return true;
	// otherwise, return false.
		
	  	var symbols = " !\"#$%&'()*+'-./0123456789:;<=>?@";
	  	var letters = "abcdefghijklmnopqrstuvwxyz";
		symbols += letters.toUpperCase();
		symbols += "[\\]^_`";
		symbols += letters;
		symbols += "{|}~";

		for (i=0; i<str.length; i++)
		{
			var loc;
			loc = symbols.indexOf( str.charAt(i) );
			if (loc == -1)
			  return false;  // If not in range 32-126 return false 
  		}
		
		return true;
	}


	function checkSingleQuote(str)
	{
	// Check for single quote value on a string.
	// If any, replace with two single quotes to avoid sqlexception 
	// on the database because of invalid SQL syntax,
	// return the new string.
	// Otherwise, return the original string.
	  var quote = new RegExp("'");

	  if (quote.test(str))
	  {
	    var substr = str.split('\'');
		var newstr = '';
	    for (i=0; i<substr.length-1; i++)
		{
		  newstr += substr[i] + '\'\'';
		}
		newstr += substr[substr.length-1];
		
		return newstr;
	  }
	  else 
	  {
	    return str;
	  }
    }

/*

	var loaded = false;

	if (document.images) {
    	img1off = new Image();img1off.src = "/rm/images/nav/fan_center_home_off.gif";
    	img2off = new Image();img2off.src = "/rm/images/nav/myProfile_off.gif";
    	img3off = new Image();img3off.src = "/rm/images/nav/emailAlerts_off.gif";
    	img4off = new Image();img4off.src = "/rm/images/nav/help_off.gif";
    	img5off = new Image();img5off.src = "/rm/images/nav/logout_off.gif";
    	img6off = new Image();img6off.src = "/rm/images/nav/benefits_off.gif";

	}


	function imageLoad() {
    	if (document.images) {
        	img1on = new Image();img1on.src = "/rm/images/nav/fan_center_home_on.gif";
        	img2on = new Image();img2on.src = "/rm/images/nav/myProfile_on.gif";
        	img3on = new Image();img3on.src = "/rm/images/nav/emailAlerts_on.gif";
        	img4on = new Image();img4on.src = "/rm/images/nav/help_on.gif";
        	img5on = new Image();img5on.src = "/rm/images/nav/logout_on.gif";

        	img6on = new Image();img6on.src = "/rm/images/nav/benefits_on.gif";
              	return (loaded = true);
    	}
	}

	function rollOut(imgName) {
    	if (document.images) {
        	document[imgName].src = eval(imgName+"off.src");
    	}
	}

	function rollIn(imgName) {
    	if (document.images && (loaded == true)) {
        	document[imgName].src = eval(imgName+"on.src");
    	}
	}*/
