﻿<!--

function popup() {
window.open("map.html", "popup", "height=600,width=860,status=yes,top=0,left=0");

}


function cert1() {
window.open("../window/cert1.html", "cert1", "height=700,width=700,status=yes,top=0,left=0");

}

function cert2() {
window.open("../window/cert2.html", "cert2", "height=700,width=700,status=yes,top=0,left=0");

}

function cert3() {
window.open("../window/cert3.html", "cert3", "height=700,width=700,status=yes,top=0,left=0");

}

function cert4() {
window.open("../window/cert4.html", "cert4", "height=700,width=700,status=yes,top=0,left=0");

}

function cert5() {
window.open("../window/cert5.html", "cert5", "height=700,width=700,status=yes,top=0,left=0");

}

function cert6() {
window.open("../window/cert6.html", "cert6", "height=700,width=700,status=yes,top=0,left=0");

}

function cert7() {
window.open("../window/cert7.html", "cert7", "height=700,width=700,status=yes,top=0,left=0");

}

function cert8() {
window.open("../window/cert8.html", "cert8", "height=700,width=700,status=yes,top=0,left=0");

}

function case1801() {
window.open("../cases/case1801.html", "case1801", "height=800,width=800,status=yes,top=0,left=0");

}

function case1802() {
window.open("../cases/case1802.html", "case1802", "height=800,width=800,status=yes,top=0,left=0");

}

function case1803() {
window.open("../cases/case1803.html", "case1803", "height=800,width=800,status=yes,top=0,left=0");

}

function case1804() {
window.open("../cases/case1804.html", "case1804", "height=800,width=800,status=yes,top=0,left=0");

}

function case1701() {
window.open("../cases/case1701.html", "case1701", "height=800,width=800,status=yes,top=0,left=0");

}

function case1702() {
window.open("../cases/case1702.html", "case1702", "height=800,width=800,status=yes,top=0,left=0");

}

function case1703() {
window.open("../cases/case1703.html", "case1703", "height=800,width=800,status=yes,top=0,left=0");

}

function case120091() {
window.open("../cases/case120091.html", "case120091", "height=800,width=800,status=yes,top=0,left=0");

}

function case120092() {
window.open("../cases/case120092.html", "case120092", "height=800,width=800,status=yes,top=0,left=0");

}

function case120093() {
window.open("../cases/case120093.html", "case120093", "height=800,width=800,status=yes,top=0,left=0");

}

function case220091() {
window.open("../cases/case220091.html", "case220091", "height=800,width=800,status=yes,top=0,left=0");

}

function case220092() {
window.open("../cases/case220092.html", "case220092", "height=800,width=800,status=yes,top=0,left=0");

}

function case220093() {
window.open("../cases/case220093.html", "case220093", "height=800,width=800,status=yes,top=0,left=0");

}

function case220094() {
window.open("../cases/case220094.html", "case220094", "height=800,width=800,status=yes,top=0,left=0");

}

function case320091() {
window.open("../cases/case320091.html", "case320091", "height=800,width=800,status=yes,top=0,left=0");

}

function case320092() {
window.open("../cases/case320092.html", "case320092", "height=800,width=800,status=yes,top=0,left=0");

}

function case320093() {
window.open("../cases/case320093.html", "case320093", "height=800,width=800,status=yes,top=0,left=0");

}

function case420091() {
window.open("../cases/case420091.html", "case420091", "height=800,width=800,status=yes,top=0,left=0");

}

function case420092() {
window.open("../cases/case420092.html", "case420092", "height=800,width=800,status=yes,top=0,left=0");

}

function case420093() {
window.open("../cases/case420093.html", "case420093", "height=800,width=800,status=yes,top=0,left=0");

}

function case420094() {
window.open("../cases/case420094.html", "case420094", "height=800,width=800,status=yes,top=0,left=0");

}

function case420095() {
window.open("../cases/case420095.html", "case420095", "height=800,width=800,status=yes,top=0,left=0");

}

function case420096() {
window.open("../cases/case420096.html", "case420096", "height=800,width=800,status=yes,top=0,left=0");

}

function case11() {
window.open("../cases/case11.html", "case11", "height=800,width=800,status=yes,top=0,left=0");

}

function case12() {
window.open("../cases/case12.html", "case12", "height=800,width=800,status=yes,top=0,left=0");

}

function case13() {
window.open("../cases/case13.html", "case13", "height=800,width=800,status=yes,top=0,left=0");

}


function case14() {
window.open("../cases/case14.html", "case14", "height=800,width=800,status=yes,top=0,left=0");

}

function case21() {
window.open("../cases/case21.html", "case21", "height=800,width=800,status=yes,top=0,left=0");

}

function case22() {
window.open("../cases/case22.html", "case22", "height=800,width=800,status=yes,top=0,left=0");

}

function case23() {
window.open("../cases/case23.html", "case23", "height=800,width=800,status=yes,top=0,left=0");

}

function case24() {
window.open("../cases/case24.html", "case24", "height=800,width=800,status=yes,top=0,left=0");

}


function case31() {
window.open("../cases/case31.html", "case31", "height=800,width=800,status=yes,top=0,left=0");

}

function case32() {
window.open("../cases/case32.html", "case32", "height=800,width=800,status=yes,top=0,left=0");

}

function case33() {
window.open("../cases/case33.html", "case33", "height=800,width=800,status=yes,top=0,left=0");

}

function case34() {
window.open("../cases/case34.html", "case34", "height=800,width=800,status=yes,top=0,left=0");

}

function case35() {
window.open("../cases/case35.html", "case35", "height=800,width=800,status=yes,top=0,left=0");

}


function case41() {
window.open("../cases/case41.html", "case41", "height=800,width=800,status=yes,top=0,left=0");

}

function case42() {
window.open("../cases/case42.html", "case42", "height=800,width=800,status=yes,top=0,left=0");

}

function case43() {
window.open("../cases/case43.html", "case43", "height=800,width=800,status=yes,top=0,left=0");

}

function case44() {
window.open("../cases/case44.html", "case44", "height=800,width=800,status=yes,top=0,left=0");

}


function case51() {
window.open("../cases/case51.html", "case51", "height=610,width=800,status=yes,top=0,left=0");

}

function case53() {
window.open("../cases/case53.html", "case53", "height=610,width=800,status=yes,top=0,left=0");

}

function case17() {
window.open("../cases/case17.html", "case17", "height=550,width=550,status=yes,top=0,left=0");

}

function case18() {
window.open("../cases/case18.html", "case18", "height=550,width=550,status=yes,top=0,left=0");

}

function case61() {
window.open("../cases/case61.html", "case61", "height=600,width=760,status=yes,top=0,left=0");

}

function case62() {
window.open("../cases/case62.html", "case62", "height=600,width=760,status=yes,top=0,left=0");

}

function case63() {
window.open("../cases/case63.html", "case63", "height=600,width=760,status=yes,top=0,left=0");

}

function case64() {
window.open("../cases/case64.html", "case64", "height=600,width=760,status=yes,top=0,left=0");

}

function case71() {
window.open("../cases/case71.html", "case71", "height=800,width=800,status=yes,top=0,left=0");

}

function case72() {
window.open("../cases/case72.html", "case72", "height=800,width=800,status=yes,top=0,left=0");

}

function case73() {
window.open("../cases/case73.html", "case73", "height=800,width=800,status=yes,top=0,left=0");

}

function case74() {
window.open("../cases/case74.html", "case74", "height=800,width=800,status=yes,top=0,left=0");

}

function case75() {
window.open("../cases/case75.html", "case75", "height=800,width=800,status=yes,top=0,left=0");

}

function case76() {
window.open("../cases/case76.html", "case76", "height=800,width=800,status=yes,top=0,left=0");

}

function case77() {
window.open("../cases/case77.html", "case77", "height=800,width=800,status=yes,top=0,left=0");

}

function case81() {
window.open("../cases/case81.html", "case81", "height=800,width=800,status=yes,top=0,left=0");

}

function case82() {
window.open("../cases/case82.html", "case82", "height=800,width=800,status=yes,top=0,left=0");

}

function case83() {
window.open("../cases/case83.html", "case83", "height=800,width=800,status=yes,top=0,left=0");

}

function case84() {
window.open("../cases/case84.html", "case84", "height=800,width=800,status=yes,top=0,left=0");

}

function case85() {
window.open("../cases/case85.html", "case85", "height=800,width=800,status=yes,top=0,left=0");

}

function case86() {
window.open("../cases/case86.html", "case86", "height=800,width=800,status=yes,top=0,left=0");

}

function case87() {
window.open("../cases/case87.html", "case87", "height=800,width=800,status=yes,top=0,left=0");

}

function case91() {
window.open("../cases/case91.html", "case91", "height=800,width=800,status=yes,top=0,left=0");

}

function case92() {
window.open("../cases/case92.html", "case92", "height=800,width=800,status=yes,top=0,left=0");

}

function case93() {
window.open("../cases/case93.html", "case93", "height=800,width=800,status=yes,top=0,left=0");

}

function case94() {
window.open("../cases/case94.html", "case94", "height=800,width=800,status=yes,top=0,left=0");

}

function case95() {
window.open("../cases/case95.html", "case95", "height=800,width=800,status=yes,top=0,left=0");

}

function case101() {
window.open("../cases/case101.html", "case101", "height=800,width=800,status=yes,top=0,left=0");

}

function case102() {
window.open("../cases/case102.html", "case102", "height=800,width=800,status=yes,top=0,left=0");

}

function case103() {
window.open("../cases/case103.html", "case103", "height=800,width=800,status=yes,top=0,left=0");

}

function case104() {
window.open("../cases/case104.html", "case104", "height=800,width=800,status=yes,top=0,left=0");

}

function case105() {
window.open("../cases/case105.html", "case105", "height=800,width=800,status=yes,top=0,left=0");

}

function case111() {
window.open("../cases/case111.html", "case111", "height=800,width=800,status=yes,top=0,left=0");

}

function case112() {
window.open("../cases/case112.html", "case112", "height=800,width=800,status=yes,top=0,left=0");

}

function case113() {
window.open("../cases/case113.html", "case113", "height=800,width=800,status=yes,top=0,left=0");

}

function case114() {
window.open("../cases/case114.html", "case114", "height=800,width=800,status=yes,top=0,left=0");

}

function case115() {
window.open("../cases/case115.html", "case115", "height=800,width=800,status=yes,top=0,left=0");

}

function case121() {
window.open("../cases/case121.html", "case121", "height=800,width=800,status=yes,top=0,left=0");

}

function case122() {
window.open("../cases/case122.html", "case122", "height=800,width=800,status=yes,top=0,left=0");

}

function case123() {
window.open("../cases/case123.html", "case123", "height=800,width=800,status=yes,top=0,left=0");

}

function case124() {
window.open("../cases/case124.html", "case124", "height=800,width=800,status=yes,top=0,left=0");

}

function case131() {
window.open("../cases/case131.html", "case131", "height=800,width=800,status=yes,top=0,left=0");

}

function case132() {
window.open("../cases/case132.html", "case132", "height=800,width=800,status=yes,top=0,left=0");

}

function case133() {
window.open("../cases/case133.html", "case133", "height=800,width=800,status=yes,top=0,left=0");

}

function case134() {
window.open("../cases/case134.html", "case134", "height=800,width=800,status=yes,top=0,left=0");

}

function case135() {
window.open("../cases/case135.html", "case135", "height=800,width=800,status=yes,top=0,left=0");

}

function case136() {
window.open("../cases/case136.html", "case136", "height=800,width=800,status=yes,top=0,left=0");

}

function case141() {
window.open("../cases/case141.html", "case141", "height=800,width=800,status=yes,top=0,left=0");

}

function case142() {
window.open("../cases/case142.html", "case142", "height=800,width=800,status=yes,top=0,left=0");

}

function case143() {
window.open("../cases/case143.html", "case143", "height=800,width=800,status=yes,top=0,left=0");

}

function case144() {
window.open("../cases/case144.html", "case144", "height=800,width=800,status=yes,top=0,left=0");

}

function case145() {
window.open("../cases/case145.html", "case145", "height=800,width=800,status=yes,top=0,left=0");

}

function case151() {
window.open("../cases/case151.html", "case151", "height=800,width=800,status=yes,top=0,left=0");

}

function case152() {
window.open("../cases/case152.html", "case152", "height=800,width=800,status=yes,top=0,left=0");

}

function case153() {
window.open("../cases/case153.html", "case153", "height=800,width=800,status=yes,top=0,left=0");

}

function case154() {
window.open("../cases/case154.html", "case154", "height=800,width=800,status=yes,top=0,left=0");

}


function trim_field_value(form_name, field){
	var re = /( )*/;
	var the_form = document.forms[form_name];
	var the_value =  eval('the_form.' + field + '.value');
	var trim_value = the_value.replace(re, "");

	return trim_value;
}

var basicColor = "#A1B0C5";
var mouseOverColor = "#37425E";

function changeColor(layerName, colorValue){
  if (document.all) {
        layerName.style.backgroundColor=colorValue;
  } else {
        layerName.bgColor=colorValue;
        return false;
  }
}

function confirmDelete(){
	if (confirm('??????? ?? ???, ?? ?????? ?? ???????? ???? ??????')){
		return true;
	} else {
		return false;
	}
}

function confirmDeleteFile(){
	if (confirm('??????? ?? ???, ?? ?????? ?? ???????? ???? ?????')){
		return true;
	} else {
		return false;
	}
}

function confirmDeleteProject( strText ){
	if (strText != '')
	{
		alert('?? ?? ???????? ???? ??????, ? ?????????? ????? ?? ???????? ???????????? ? ???????? ???????? ??? ???????:' + strText);
		return false;
	} else
	{
		if (confirm('??????? ?? ???, ?? ?????? ?? ???????? ???? ??????')){
			return true;
		} else {
			return false;
		}
	}
}

function confirmActiveProject(){
	var obj_form = document.forms['project'];
	if (obj_form.isactive.checked)
	{
		if (confirm('???? ???? ?????? ???? ?? ? ???????.\n??????? ?? ???, ?? ?????? ???? ?????? ?? ???? ????????')){
			return true;
		} else {
			return false;
		}
	}
}

function checkDeleteFloor(){
	alert('?? ?? ???????? ???? ????, ? ?????????? ????? ?? ???????? ????????????? ??? ????.');
		return false;
}

function checkInquiryForm(){
	var obj_form = document.forms['inquiryForm'];

	trim_name = trim_field_value('inquiryForm', 'name');	
	if (!trim_name){
		alert("????, ???????? ???!");
		obj_form.name.focus();
		return false;
	}
	
	trim_name = trim_field_value('inquiryForm', 'phone');	
	if (!trim_name){
		alert("????, ???????? ???????!");
		obj_form.phone.focus();
		return false;
	}
	
	if (obj_form.floor.selectedIndex == 0){
		alert("????, ???????? ????!");
		obj_form.floor.focus();
		return false;
	}
	
	if (obj_form.flat.options[0].value == 0){
		alert("???? ??????????? ?? ???? ????. ????, ???????? ???? ????!");
		obj_form.flat.focus();
		return false;
	}
	
}


// Admin Forms
function checkProjectForm(){
	var obj_form = document.forms['project'];

	trim_name = trim_field_value('project', 'title');	
	if (!trim_name){
		alert("????, ???????? ??? ?? ??????!");
		obj_form.title.focus();
		return false;
	}
}

function checkStagesForm(){
	var obj_form = document.forms['stages'];

	trim_name = trim_field_value('stages', 'title');	
	if (!trim_name){
		alert("????, ???????? ??? ?? ????!");
		obj_form.title.focus();
		return false;
	}
	
	trim_name = trim_field_value('stages', 'stage');	
	if (!trim_name){
		alert("????, ???????? ???????? ?? ??????!");
		obj_form.stage.focus();
		return false;
	}
}

function checkFlatsForm(){
	var obj_form = document.forms['flats'];

	trim_name = trim_field_value('flats', 'title');	
	if (!trim_name){
		alert("????, ???????? ??? ?? ??????????!");
		obj_form.title.focus();
		return false;
	}
}

function checkFloorsForm(){
	var obj_form = document.forms['floors'];

	trim_name = trim_field_value('floors', 'title');	
	if (!trim_name){
		alert("????, ???????? ??? ?? ????!");
		obj_form.title.focus();
		return false;
	}
}

function checkPressReleasesForm(){
	var obj_form = document.forms['pr_releases'];

	trim_name = trim_field_value('pr_releases', 'title');	
	if (!trim_name){
		alert("????, ???????? ???????? ?? ??????!");
		obj_form.title.focus();
		return false;
	}
}

function checkGalleryForm(){
	var obj_form = document.forms['gallery'];

	trim_name = trim_field_value('gallery', 'thumb');	
	trim_name1 = trim_field_value('gallery', 'thefile');
	if (!trim_name && !trim_name1){
		alert("????, ???????? ??????!");
		obj_form.thumb.focus();
		return false;
	}
	
	trim_name = trim_field_value('gallery', 'picture');	
	trim_name1 = trim_field_value('gallery', 'thefile1');
	if (!trim_name && !trim_name1){
		alert("????, ???????? ?????? ??????!");
		obj_form.picture.focus();
		return false;
	}
}


function move(dir){
  var temp = "";
  var tempValue="";
  var tempIndex = "";
  var sign = 0;
  if (dir == "down") sign = -1;
  if (dir == "up") sign = 1;
  var TheSelect = document.forms[0].select_member;
  if (TheSelect.value == "") {
	alert("???? ?????? ???????.");
	return false;
	}
  if ((TheSelect.selectedIndex == 0)& (dir == "up"))
  		alert("????????? ??????? ? ?????. ????, ???????? ????!");					
	else 
		if ((TheSelect.selectedIndex == (TheSelect.options.length-1))&(dir == "down"))
  			alert("????????? ??????? ? ????????. ????, ???????? ????!");	
		  else				
			{
			tempIndex = TheSelect.selectedIndex - sign;
			temp = TheSelect.options[tempIndex].text;
			tempValue = TheSelect.options[tempIndex].value;
			TheSelect.options[tempIndex].value =  TheSelect.options[TheSelect.selectedIndex].value;
			TheSelect.options[tempIndex].text = TheSelect.options[TheSelect.selectedIndex].text;
			TheSelect.options[tempIndex+sign].value = tempValue;
			TheSelect.options[tempIndex+sign].text = temp;
			TheSelect.selectedIndex =TheSelect.selectedIndex - sign;
		}
}


function create_hidden()
{

	var val_hidden = "";
	for (i=0; i<document.forms[0].select_member.length; i++)
		val_hidden += document.forms[0].select_member.options[i].value+", ";
		document.forms[0].order_c.value = val_hidden;
		
}

//-->
