function menu (numEl,b)
{
	if (b) 
	{
		var nameBG = "mn_bg_on";
	}
	else
	{
		var nameBG = "mn_bg_off";
	}

	var el = document.getElementById("mn"+numEl);
	eval("el.className = nameBG");
}

function bookmarkIt() {
 if (document.all) {
  window.external.addFavorite('http://www.slavicbridge.com/', 'Slavic Bridge - Dating Services');
 }
}

function show_form(show,hid) {
		document.getElementById(show).style.display = "inline";
		document.getElementById(hid).style.display = "none";
}

function set_value(el,val) {
		document.getElementById(el).value = val;
}

function show_div(el) {
		document.getElementById(el).style.display = "inline";
}

function close_div(el) {
		document.getElementById(el).style.display = "none";
}

function popups(url,img,www,plotis,aukstis,scroll,menu)
{
	Sonas=(screen.width)?(screen.width-plotis)/2:100;
	Topas=(screen.height)?(screen.height-aukstis)/2:100;
	
	f = window.open(url,"","width="+plotis+",height="+aukstis+",top="+Topas+",left="+Sonas+",Scrollbars="+scroll+",menubar="+menu);
	f.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"><head><title>'+www+'</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><a href=javascript:window.close();><img src='+img+' title=Close border=0 /></a></body></html>');
	f.document.close();

}

function sch_form() {

    if(document.getElementById('shid').value.length > 0) {return 1;}
    if(document.getElementById('keywordss').value.length > 0) {return 1;}

    if(document.getElementById('agef').selectedIndex > 0) {return 1;}
    if(document.getElementById('aget').selectedIndex > 0) {return 1;}
    if(document.getElementById('heightf').selectedIndex > 0) {return 1;}
    if(document.getElementById('heightt').selectedIndex > 0) {return 1;}
    if(document.getElementById('weightf').selectedIndex > 0) {return 1;}
    if(document.getElementById('weightt').selectedIndex > 0) {return 1;}
    if(document.getElementById('marital').selectedIndex > 0) {return 1;}
    if(document.getElementById('children').selectedIndex > 0) {return 1;}
    if(document.getElementById('country').selectedIndex > 0) {return 1;}
    if(document.getElementById('city').selectedIndex > 0) {return 1;}
    if(document.getElementById('leven').selectedIndex > 0) {return 1;}
    if(document.getElementById('agefrom').selectedIndex > 0) {return 1;}

    return 0;
}

function enterPress(myfield,e)
{
    var keycode;
    if (window.event) keycode = window.event.keyCode;
        else if (e) keycode = e.which;
    if (keycode == 13) return true;
        else return false;
}

