function checkitemform(){
	form = document.getElementById('thisform');
	
	itemname = form.name.value;
	if(itemname.length <= 0 || itemname.match(new RegExp('^ +$','i'))){
		alert('некорректное имя');
		form.name.focus();
		return false;
	}
	
	itemprice = form.price.value;
	if(itemprice.length <= 0 || itemprice.match(new RegExp('^ +$','i'))){
//	if(itemprice*1==0 || itemprice.length <= 0 || itemprice.match(new RegExp('^ +$','i'))){
		alert('необходимо задать цену в рублях');
		form.price.focus();
		return false;
	}
	
	itemdesc = form.text.value;
	if(itemdesc.length <= 0 || itemdesc.match(new RegExp('^ +$','i'))){
		alert('необходимо задать описание товара');
		form.text.focus();
		return false;
	}

	return true;
}

function ShowBig(ImgName, ImgWidth, ImgHeight, ImgPodpis)
{
var Ver4 = parseInt(navigator.appVersion) >= 4
var Nav4 = ((navigator.appName == "Netscape") && Ver4)
var IE4 = ((navigator.userAgent.indexOf("MSIE") != -1) && Ver4)

var widthdop = 35; 
var heightdop = 80;

	myWin= open("", "ImgWindow", "width="+ImgWidth+", height="+ImgHeight+",status=no,toolbar=no,menubar=no,scrollbars=auto, titlebar=no, resizable=yes");
	
	myWin.document.write("<html><head><title>"+ImgPodpis);
	myWin.document.write('</title><BASE href="'+base+'"><link rel=stylesheet type="text/css" href="./data/styles/style.css"></head><body bgcolor=#FFFFFF topmargin=0 marginheight=2 leftmargin=0 marginwidth=0 ' + 'onload="javascript:self.resizeTo('+eval(ImgWidth+widthdop)+','+eval(ImgHeight+heightdop)+');">');
	myWin.document.write("<center><TABLE class=all><TR><TD align=center valign=middle style='color: #587A9C'><a href='javascript:window.close()'>");
	myWin.document.write("<img Width='"+ImgWidth+"' height='"+ImgHeight+"' src='"+ImgName+"' border=0 alt='кликните, чтобы закрыть окно'>");
	myWin.document.write("</a>");
	myWin.document.write("<BR><h4>"+ImgPodpis+"</h4></TD></TR></TABLE></body></html>");

	myWin.document.close();  
	myWin.window.focus();
}

