function CheckNick1(theform)
{
	
	if (theform.ENTRYNICK1.value.length < 3) 
    {
       alert ("Your entry nickname must be at least 3 characters long.");
   	   theform.ENTRYNICK1.focus();
//   	   theform.ENTRYNICK1.select();
  	   return false;
    }

	if (theform.ENTRYNICK1.value.indexOf("\"") != -1)
   {
      alert ('Your nickname cannot contain quotation marks (\").')
		theform.ENTRYNICK1.focus();
//		theform.ENTRYNICK1.select();
    	return false;
    }
}

function CheckNick2(theform)
{
	if (trim(theform.ENTRYNICK2.value).length > 0) 
	{
		if (theform.ENTRYNICK1.value == theform.ENTRYNICK2.value)
		{
		   alert ("Your each nickname must be different.");
		   theform.ENTRYNICK2.focus();
//		   theform.ENTRYNICK2.select();
		   return false;
		}
		
		if (theform.ENTRYNICK2.value.length < 3) 
		{
			alert ("Your nickname must be at least 3 characters long.");
			theform.ENTRYNICK2.focus();
//			theform.ENTRYNICK2.select();
			return false;
		}

		if (theform.ENTRYNICK2.value.indexOf("\"") != -1)
		{
			alert ('Your nickname cannot contain quotation marks (\").')
			theform.ENTRYNICK2.focus();
//			theform.ENTRYNICK2.select();
			return false;
		}
	}
}


