function img_over(txt_id, img_id) {
	
	txt_id = eval(txt_id);
	img_id = eval(img_id);

	txt_id.style.color = '#b45325';
	img_id.style.filter = 'alpha(Opacity=80)';		
	}
	
function img_out(txt_id, img_id) {
	
	txt_id = eval(txt_id);
	img_id = eval(img_id);

	txt_id.style.color = '#003000';
	img_id.style.filter = 'alpha(Opacity=100)';
	}
	
	
function openmap() {

  var win;
  win = window.open("","_blank", "width=300,height=300");
  win.document.write("<html><head><title>Схема проезда</title></head><body>");
  win.document.write('<div style="position:absolute;width:300px;height:300px;left:0px;top:0px">');
  win.document.write('<img src="images/map.gif"></div></body></html>');
}


function openwin(page, w, h, alt) {

  var win;
  var prm = "width="+w+",height="+h;
  win = window.open("","_blank",prm);
  win.document.write("<html><head><title>"+alt+"</title></head><body>");
  win.document.write('<div style="position:absolute;width:'+w+'px;height:'+h+'px;left:0px;top:0px">');
  win.document.write("<a href=\"javascript:self.close()\" title=\"Закрыть окно\"><img src="+page+" border=0></a></div></body></html>");
}


var clickFlag = false;

function checkForm() {

	if(clickFlag == true) return false;
	
	var txt = '';
	
	if(document.main.name.value == '')
		txt = txt + ' - Ваше имя\n';

	if(document.main.phone.value == '')
		txt = txt + ' - Контактный телефон\n';
		
	if(txt != '') {
		
		txt = "Укажите, пожалуйста, следующую информацию:\n\n" + txt;
		window.alert(txt);	
		return false;
		}
		
	clickFlag = true;
	
	return true;	
	}
	