// JavaScript Document
function div_hide(obj_id,do_hide)
	{if (do_hide)
		{document.getElementById(obj_id).style.display = "none";}
	else
		{document.getElementById(obj_id).style.display = "block";}
	}

function change_pic(pic_id,new_pic)
	{tmp_obj = document.getElementById(pic_id);
	tmp_obj.src = new_pic;
	}

function key_presed(e,on_enter_fwd_func,on_not_enter_fwd_func)
	{var key_code = 0;
	
	if (e)
		{key_code = e.keyCode;
		if (!key_code) {key_code = e.which;}
		
		if (key_code == 13)
		   {eval(on_enter_fwd_func);}
		else if (on_not_enter_fwd_func)
			{eval(on_not_enter_fwd_func);}
		}
	}

function clean_css_px(input)
	{var pos;
	if ((pos = input.indexOf("px")) != -1)
		{input = input.substr(0,pos);}
	input = Number(input);
	
	return input;
	}
