// JavaScript Document

function isblank(s) {
for(var i=0; i<s.length; i++) {
	var c = s.charAt(i);
	if((c != ' ') && (c != '\n') && (c != '')) return false;
}
return true;	
}

function check_form(fn) {
if ((fn.login.value=="")||(isblank(fn.login.value))) return false;
else if((fn.pass.value=="")||(isblank(fn.pass.value))) return false;
else { 
if (self.screen) {
fn.width.value = screen.availWidth;  
}
else {
fn.width.value = 1024;
}
return true;
}
}



function showMap(city){

if(city == 'moscow') 
{  window.open("map/moscow.jpg", "map1", "height=700, width=700"); }

if(city == 'kiev') 
{  window.open("map/kiev.gif", "map2",   "height=520, width=530"); }

if(city == 'krasnodar') 
{  window.open("map/krasnodar.gif", "map3", "height=590, width=590"); }

if(city == 'rostov') 
{  window.open("map/rostov.gif", "map3", "height=590, width=590"); }

/*
if(city = 1) 
{  window.open("map/moscow.jpg", "map1", "height=720, width=730"); }
else if(city = 2) 
{  window.open("map/kiev.gif", "map2",   "height=520, width=530"); }
else if(city = 3) 
{  window.open("map/krasnodar.gif", "map3", "height=590, width=590"); }
*/

return false; 

}




function showPhoto(id, i){

var top_h = 125;	
var w = 300;

document.getElementById("id_zoom").src="pict_coll/coll_" + id + "_" + i + "b.jpg";
document.getElementById("id_layer").style.top=top_h+document.body.scrollTop;
document.getElementById("id_layer").style.left=screen.availWidth/2-w/2-20;
document.getElementById("id_zoom").style.display="block";
document.getElementById("id_layer").style.display="block";


document.getElementById("id_layer_text").style.top=top_h+5+document.body.scrollTop;
document.getElementById("id_layer_text").style.left=screen.availWidth/2-w/2+30;
document.getElementById("id_layer_text").style.display="block";

return false; 
}

function hidePhoto(){
document.getElementById("id_zoom").style.display="none";
document.getElementById("id_layer").style.display="none";
document.getElementById("id_layer_text").style.display="none";
document.getElementById("id_zoom").src="pict/blank.gif";
return false;
}