
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 html(link, w, h) {
newWindow = window.open(link,'link', "top=30, left=30, menubar=yes, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, width= " + w + ", height="+ h);
newWindow.focus();
}
	
	

	
function show(link, w, h) {

	if(window.xx) { xx.close(); }

	xx = window.open("about:blank", "link", "menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, width= " + w + ", height=" + h);

	if(!xx || xx.closed) xx = window.open("about:blank", "link", "menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, width= " + w + ", height=" + h);
	else 
		xx.focus();


	out = "<html><head><title>Просмотр</title></head><body style='margin: 0 0 0 0;'><table cellpadding=0 cellspacing=0><tr><td><a href='javascript:window.close();'><img src='" + link + "' border=0 alt='закрыть'></a></td></tr></table></body></html>";
	xx.document.write(out);
	}
	
	

