
img_temp('images/submit1.jpg');
img_temp('img/4_submit1.jpg');

function submit_blank_over(but)
{
	but.className='submit_img1';
}

function submit_blank_out(but)
{
	but.className='submit_img';
}

function foto_big_sc (foto, foto_w, foto_h)
{
	win=window.open("admin_foto_big.php?foto="+foto, "","height="+(foto_h*1+50)+",width="+(foto_w*1+50)+",scrollbars=1,resizable=1");
	win.focus();
}
function show_form_hotel()
{
	form=document.all['form_div'];
	but=document.all['form_show_but'];
	if (form.className=='form_div')
	{
		form.className='form_div1';
		user_but_text=but.value;
		but.value='Убрать форму';
		
	}
	else
	{
		form.className='form_div';
		but.value=user_but_text;
	}
}

function reting_sc(value)
{
	document.reting_form.reting.value=value;
	document.reting_form.submit();
}

temp_reting_img=new Image();
temp_reting_img.src='images/star1.jpg';
function reting_over(num)
{
	for(i=1; i<=5; i++)
	{
		if (i<=num)
		{
			document.all['star'+i].src='images/star1.jpg';
		}
		else
		{
			document.all['star'+i].src='images/star0.jpg';
		}
	}
}

var reting_img_arr;
function reting_out()
{
	for(i=1; i<=5; i++)
	{
		if (document.all['star'+i])
		{
			document.all['star'+i].src=reting_img_arr[i];
		}
	}
}

temp_img_strelka_left=new Image();
temp_img_strelka_left.src='images/strelka_left1.jpg';
temp_img_strelka_right=new Image();
temp_img_strelka_right.src='images/strelka_right1.jpg';
function img_strelka_left_over(img)
{
	img.src='images/strelka_left1.jpg';
}
function img_strelka_left_out(img)
{
	img.src='images/strelka_left.jpg';
}
function img_strelka_right_over(img)
{
	img.src='images/strelka_right1.jpg';
}
function img_strelka_right_out(img)
{
	img.src='images/strelka_right.jpg';
}

function foto_sc(foto_id)
{
	win=window.open('foto.php?foto='+foto_id, '', "height=750,width=640,scrollbars=1,resizable=1");
	win.focus();
}

function img_over(img)
{
	/*img.style.border='1px solid #989701';*/
}

function img_out(img)
{
	/*img.style.border='1px solid #353642';*/
}

function cars_tr_over(tr)
{
	tds=tr.getElementsByTagName('td')
	for (n in tds)
	{
		td=tds[n];
		if (td.className=='cars_td_border')
		{
			td.className='cars_td_border_over';
		}
		if (td.className=='cars_td_border_top')
		{
			td.className='cars_td_border_top_over';
		}
		if (td.className=='cars_td_border_right')
		{
			td.className='cars_td_border_right_over';
		}
	}
}

function cars_tr_out(tr)
{
	tds=tr.getElementsByTagName('td')
	for (n in tds)
	{
		td=tds[n];
		if (td.className=='cars_td_border_over')
		{
			td.className='cars_td_border';
		}
		if (td.className=='cars_td_border_top_over')
		{
			td.className='cars_td_border_top';
		}
		if (td.className=='cars_td_border_right_over')
		{
			td.className='cars_td_border_right';
		}
	}
}

function show_div(id)
{
	div=document.getElementById(id);
	if (div.className=='cars_div_hidden')
	{
		div.className='cars_div';
	}
	else
	{
		div.className='cars_div_hidden';
	}
}
