function IsNumeric(strString)

   //  check for valid numeric strings	

   {

   var strValidChars = "0123456789";

   var strChar;

   var blnResult = true;



   if (strString.length == 0) return false;



   //  test strString consists of valid characters listed above

   for (i = 0; i < strString.length && blnResult == true; i++)

      {

      strChar = strString.charAt(i);

      if (strValidChars.indexOf(strChar) == -1)

         {

         blnResult = false;

         }

      }

   return blnResult;

   }

   

   

  

 

  function hideAllErrors() {

document.getElementById("idError").style.display = "none"

document.getElementById("quoteError").style.display = "none"



  }

     

  function checkForm() {

nr = document.getElementById("nr").value;

quote = document.getElementById("quote").value;



  if (IsNumeric(nr) == false) {

  hideAllErrors();

document.getElementById("idError").style.display = "inline";

document.getElementById("nr").select();

document.getElementById("nr").focus();

  return false;

  } 

if (IsNumeric(nr) == true) {

	hideAllErrors();

	return true;

}





 return true;



  }

 



function Pop () {

window.open ("friendid.php","FriendID", "menubar=1,resizable=1,width=600,height=600");

}



