function ReplyComment(text,nick,number)
{
	document.getElementById('replyform_comment').value=text +  nick + ' ' + number + " \n\n";
	document.getElementById('replyform_comment').focus();
	return false;
};


function ValidateForm(Form){
	var nameID = (typeof(Form.name) != 'undefined')?Form.name:0;
	var commentID = (typeof(Form.comment) != 'undefined')?Form.comment:0;
	var norobotID = (typeof(Form.norobot) != 'undefined')?Form.norobot:0;
	if ( nameID != 0 && ((nameID.value==null)||(nameID.value==""))){
		alert("Введите Имя")
		nameID.focus();
		return false;
	}
	
	if (echeck(emailID.value)==false){
		emailID.value="";
		emailID.focus();
		return false
	}
	if (commentID && ((commentID.value==null)||(commentID.value==""))){
		alert("Введите текст")
		commentID.focus();
		return false;
	}
	if (norobotID && ((norobotID.value==null)||(norobotID.value==""))){
		alert("Введите номер")
		norobotID.focus();
		return false;
	}
	
	return true;
 }

