function check_coment() {	if(document.add.coment.value.length >= 490) {		alert("Хватит!\r\nДлина коментария превышена!");		document.add.coment.value=document.add.coment.value.substr(0,489);	}};function check_email() {	if(document.add.email.value.length > 0) {		var i = document.add.email.value.indexOf("@");		if(i == -1) {			alert("Вы ввели неверный\r\nадрес электронной почты!");			return 0;		};		var j = document.add.email.value.indexOf(".", i);		if(j == -1)		alert("Вы ввели неверный\r\nадрес электронной почты!");	};};/* To include this script into an xhtml page without copying and pasting it in add the following tags into your xhtml page. Please note that these comments are only valid within .js (JavaScript files), do not include them if you wish to use this script within an xhtml document.<script type="text/javascript" src="./preload.js"></script>or copy and paste the script into your document head enclosed in <script type="text/javascript"></script> tags */var arImages=new Array();function Preload() {	var temp = Preload.arguments; 	for(x=0; x < temp.length; x++) {		arImages[x]=new Image();		arImages[x].src=Preload.arguments[x]; 	}} /*this replaces your normal 'body' tag substitute your own image names*/ /* < body onload="Preload('thing.png','anotherthing.png','etc etc.png')" > */
