function ShowPhoto(url, width, height) {
	var scroll = (screen.width < 1000) ? "yes" : "no";
	
	var left = (self.screen.width >> 1) - (width >> 1);
	var top = (self.screen.height >> 1) - (height >> 1);
	var param = 'left='+left+',top='+top+',width='+width+',height='+height+',';
	
	window.open(url, '_blank', param+'menubar=no, scrollbars=' + scroll + ', status=no');
}


function LightRow(id, color){
        
    var theRow;
    theRow = GetObject("row_" + id);    
    
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;        
    }
    else {
        return false;
    }
    
    var rowCellsCnt  = theCells.length;    
    for (c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.background = color;
    }
}

function ShowMail(number,  nospamplease, idontlikespam, nothanks, no, way) {
	var str_out = 'support' + '@' + 'cityhouse' + '.ru'; 
    document.write("<a href='mailto:" + str_out + "'>" + str_out + "</a>");
}

function SendMail(number,  nospamplease, idontlikespam, nothanks, no, way) {
	var str_out = 'support' + '@' + 'cityhouse' + '.ru'; 
    document.location.href = 'mailto:' + str_out;
}

function ShowTerm(url) {
		
	var width = self.screen.width * 0.5;
	var height = self.screen.height * 0.5;
	var left = (self.screen.width >> 1) - (width >> 1);
	var top = (self.screen.height >> 1) - (height >> 1);
	
	var param = 'left='+left+',top='+top+',width='+width+',height='+height+',';
	
	window.open(url, '_blank', param+'menubar=no, scrollbars=yes, status=no');
}