function form_var_subm(link,cell,type) {

		document.forms['form_var'].elements['cell'].value = cell;

		document.forms['form_var'].elements['type'].value = type;

		if((type!=undefined)&&(type!=''))
			document.forms['form_var'].action = link+'?cell='+cell+'&type='+type;
		 else
			document.forms['form_var'].action = link+'?cell='+cell;

		document.forms['form_var'].submit();
}


function openW(img,width,height)
{
	f=0;
	if(height>600) {height=600;f=1;}
	if(width>800) {width=800;f=1;}
	
	if(f==1)
		eval("window.open('img_big.php?img="+img+"', 'Image', 'height="+height+", width="+width+", left=0, top=0, scrollbars=yes, menubar=no, resizable=yes')");
	 else
		eval("window.open('img_big.php?img="+img+"', 'Image', 'height="+height+", width="+width+", left=0, top=0, scrollbars=no, menubar=no, resizable=yes')");
}



function open_file(file,height, width)
{
	eval("window.open('"+file+"', 'Image', 'height="+height+", width="+width+", left=20, top=40, scrollbars=no, menubar=no, resizable=yes')");
}



function form_page_subm(page)
{
	document.forms['form_page'].elements['page'].value = page;
	document.forms['form_page'].submit();
}


////////////// Scroll /////////////////////////

var timer_id;

function scroll_iframe(frm,inc,dir){

	if(timer_id)clearTimeout(timer_id);

	if(window.frames[frm]) {

		if(dir == "v")window.frames[frm].scrollBy(0, inc);
		else window.frames[frm].scrollBy(inc, 0);

		timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 70);

	}//end if

}//end func

function stopScroll(){

	if(timer_id)clearTimeout(timer_id);

}//end func

////////////// END Scroll /////////////////////////