
arr_up_1 = new Image (); arr_up_1.src    = "/img/arr_up_1.gif";
arr_up_2 = new Image (); arr_up_2.src    = "/img/arr_up_2.gif";
arr_down_1 = new Image (); arr_down_1.src    = "/img/arr_down_1.gif";
arr_down_2 = new Image (); arr_down_2.src    = "/img/arr_down_2.gif";
uno=false;

function incstart(vol, which) {
	uno=true;
	(vol>0)? document.images["arrup"+which].src=arr_up_2.src : document.images["arrdown"+which].src=arr_down_2.src;
	}


function incstop(vol, which, name) {
	if (uno) {
		CF = document.forms[name];
		var inctime = (vol>0)? parseInt(CF.elements[which].value) + 1 : parseInt(CF.elements[which].value) - 1;
		if (inctime >=0) CF.elements[which].value = inctime;
		uno=false;
	}
	(vol>0)? document.images["arrup"+which].src=arr_up_1.src : document.images["arrdown"+which].src=arr_down_1.src;
	}

	
function show(link, size) {
	xx = window.open("","link","menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, width= " + size + ", height=" + size);
	out = "<html><head><title>Просмотр</title></head><body style='margin: 0 0 0 0;'><table cellpadding=0 cellspacing=0 width=100% height=100%><tr><td align=center><a href='javascript:window.close();'><img src='/files" + link + "' border=0 alt='закрыть'></a></td></tr></table></body></html>";
	xx.document.write(out);
	xx.focus();
	}
	
function html(link, w, h) {
	xx = window.open( link, "link", "menubar=1, toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=1, width= " + w + ", height=" + h);
	xx.document.write;
	xx.focus();
	}

function img(link, w, h) {
	newWindow = window.open(link,'link', "top=30, left=30, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, width= " + w + ", height="+ h);
	newWindow.focus();
	}
	