function popupWindow(mypage, myname, w, h){
	var win= null;
	var winl = (screen.width-w)/4;
	var wint = (screen.height-h)/4;
	var settings  ='height='+h+',';
	    settings +='width='+w+',';
	    settings +='top='+wint+',';
	    settings +='left='+winl+',';
	    settings +='scrollbars=yes,';
	    settings +='resizable=no';
	win = window.open(mypage, myname, settings);
}

function load() {
    if(document.getElementById('map'))
    {
        if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map"));
            map.setCenter(new GLatLng(55.960445, 23.3183063), 14);
            map.setUIToDefault();
            
    		var icon = new GIcon();
            icon.image = "/img/google_logo.gif";
            icon.iconSize = new GSize(87, 22);
            icon.iconAnchor = new GPoint(0, 0);
            icon.infoWindowAnchor = new GPoint(0, 0);
            
    		var bounds = map.getBounds();
            var southWest = bounds.getSouthWest();
            var northEast = bounds.getNorthEast();
    		var point = new GLatLng(55.960445, 23.3183063);
    		
            map.addOverlay(new GMarker(point, icon));
        }
    }
}

function unloadMap()
{
    if(document.getElementById('map'))
    {
        GUnload();
    }
}


function catchEnter(e) {
	if (!e) var e = window.event;
	if (e.keyCode) code = e.keyCode;
	else if (e.which) code = e.which;
	
	if (code==13) {
		document.login_form.submit();
	}
}


function unhide(divID1) {
  var feedback = document.getElementById(divID1);

  if (feedback) {
    feedback.className=(feedback.className=='hidden')?'unhidden':'hidden';
  }
  
 
}
