function OnWin(url,w,h,nameWin,res,sc) {
	var link = window.open (url, nameWin, "width=" + w + ", height=" + h + ", toolbar=0, location=0, directories=0, status=0, menubar=0, resizable="+ res +", left=10, top=125, scrollbars="+ sc);
	link.focus();
}

function ChangeImage(id)
{
	var ThePrev = document.getElementById('imgPic');
	ThePrev.src = '/bpic.php?t=2&id='+id;
	return false;
}

function galerypict(id,name)
{
	var imgDIV = document.getElementById('galerypict');
	imgDIV.innerHTML = "<h4><a name='photo'></a>"+name+"</h4><img src='/bpic.php?t=6&id="+id+"' alt='' />";
	return false;
}

function checkOrder()
{
	
	if(document.getElementById('ord_name'))
	{
		var or_name = document.getElementById('ord_name');
		if(or_name.value == '') { alert('Вы должны написать свое имя'); or_name.focus(); return false; }
	}
	if(document.getElementById('ord_phone'))
	{
		var or_phone = document.getElementById('ord_phone');
		if(or_phone.value == '') { alert('Впишите свой телефон, так мы сможем с Вами связаться'); or_phone.focus(); return false; }
	}


	return true;
}

function checkBackFrom()
{
	if(document.getElementById('ord_name'))
	{
		var or_name = document.getElementById('ord_name');
		if(or_name.value == '') { alert('Вы должны написать свое имя'); or_name.focus(); return false; }
	}
	if(document.getElementById('ord_phone'))
	{
		var or_phone = document.getElementById('ord_phone');
		if(or_phone.value == '') { alert('Впишите свой телефон, так мы сможем с Вами связаться'); or_phone.focus(); return false; }
	}
	return true;
}


function write_counter()
{


	document.write("<a href='http://www.sibdom.ru' target='_blank'>");
	document.write("<img src='http://www.sibdom.ru/counter.php?id=1700' "+
		"width='88' height='31' border='0' alt='Сибирский строительный портал'><\/a>&nbsp;");

	document.write("<a href='http://www.liveinternet.ru/click' "+
	"target=_blank><img src='http://counter.yadro.ru/hit?t13.5;r"+
	escape(document.referrer)+((typeof(screen)=="undefined")?"":
	";s"+screen.width+"*"+screen.height+"*"+
		(screen.colorDepth ? screen.colorDepth : screen.pixelDepth))+
		";u"+escape(document.URL)+";"+Math.random()+
		"' alt='' title='LiveInternet: показано число просмотров за 24 часа, посетителей за 24 часа и за сегодня' "+
	"border=0 width=88 height=31><\/a>");


	//hidden counter



	document.write("<div style='display:none;'>");

	hotlog_js="1.0";
	hotlog_r=""+Math.random()+"&s=268853&im=111&r="+escape(document.referrer)+"&pg="+
	escape(window.location.href);
	document.cookie="hotlog=1; path=/"; hotlog_r+="&c="+(document.cookie?"Y":"N");
	hotlog_r+="&js="+hotlog_js;
	document.write("<a href='http://click.hotlog.ru/?268853' target='_top'><img "+
	" src='http://hit5.hotlog.ru/cgi-bin/hotlog/count?"+
	hotlog_r+"&' width='88' height='31' alt='HotLog' /></a>");

	document.write("<img src='http://www.stalker.internet.ru/counter.asp?id=6744:7' "+
		"width='1' height='1' border='0' alt='Stalker TOP'><\/a>");

	d=document;server='http://cnt.krasland.ru';
	rn=Math.round(Math.random()*1e6);
	d.write('<a href="'+server+'/from?id=2083" target="_blank">');
	d.write('<img alt="Красно\ярский рейтинг сайтов на Krasland.ru" src="'+
		server+'/?c=2083&ref='+escape(d.referrer)+'&rand='+rn+'" width=1 height=1 border=0></a>');

	document.write("<img src='http://counter.rambler.ru/top100.cnt?715341' alt='' width=1 height=1 border=0>");
	document.write("<img src='http://top100-images.rambler.ru/top100/banner-88x31-rambler-red2.gif' alt='Ramblers Top100' width=1 height=1 border=0>");

	document.write("</div>");
}

