function VerifyRegParams( event )
{
	var in_email = document.getElementById( "rid_email" );
	var in_icq = document.getElementById( "rid_icq" );
	var in_name = document.getElementById( "rid_name" );
	var in_method = document.getElementById( "rid_method" );
	var in_rcode = document.getElementById( "rid_rcode" );


	var note = "!";

	if( in_email.value.length < 1 )	
		note = "You haven't specified e-mail for Your affiliate Acount.";
	else if( in_name.value.length < 1 )
		note = "You haven't specified name for Your affiliate Acount.";
	else if( in_method.value.length < 1 )
		note = "You haven't specified Payment method for Your affiliate Acount.";
	else if( in_icq.value.length < 1 )
		note = "You haven't specified ICQ for Your affiliate Acount.";
	else if( in_rcode.value.length != 4 )
		note = "You haven't specified Protection code.";

	

	if( note.length > 1 )
	{
		alert( note );
		
		if (!event)
		{
			var event = window.event;
			event.returnValue = false;
		}

		event.cancelBubble = true;

		if( event.stopPropagation )
		{	
			event.stopPropagation();
		}

		return false;
	}
	
	
	
	reg = new RegExp( "[0-9a-zA-Z-._]+@[0-9a-zA-Z-._]+\.[0-9a-zA-Z]{2,4}", "g" );
	ar = reg.exec( in_email.value );
	if( !ar )
	{
		note = "The e-mail You have specified doesn't seem to be a valid e-mail.\r\nPlease check out if You have typed it correctly.";
	}

	
	ar = false;

	reg_icq = new RegExp( "[0-9-]{6,9}", "g" );
	ar = reg_icq.exec( in_icq.value );
	if( !ar )
	{
		note = "The ICQ You have specified doesn't seem to be a ICQ UIN.\r\nPlease check out if You have typed it correctly.";
	}

	if( note.length > 1 )
	{
		alert( note );
		
		if (!event)
		{
			var event = window.event;
			event.returnValue = false;
		}

		event.cancelBubble = true;

		if( event.stopPropagation )
		{	
			event.stopPropagation();
		}
		return false;
	}

	return true;

}