// -----------------------------------------------------------------------
// This file is part of aroundme
// 
// Copyright (C) 2003, 2005 Barnraiser
// http://www.barnraiser.org/
// info@barnraiser.org
// 
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option) any
// later version.
// 
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with program; see the file COPYING. If not, write to the Free
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
// -----------------------------------------------------------------------

var myWindow;

function popup(page, scrollbar) {
	if(myWindow && !myWindow.closed) {
			myWindow.close();
	}
	myFile = page;
	myWindow = window.open(myFile,"me","toolbar=no,width=335,height=400,resizable,scrollbars=" + scrollbar + ", status=no, left=10, top=10");
	myWindow.focus();
}


function photoPopUp(src,wid,hei) {
	window.open(src, 'video', 'toolbar=0,menubar=0,width='+(wid+40)+',height='+(hei+60));
}

function focusTextBox(obj) {
	if (obj.value == 'email address' || obj.value == 'password') obj.value = '';
}

function offFocusTextBox(obj) {
	if (obj.name == 'email' && obj.value == '') {
		obj.value = 'email address';
	} else if (obj.name == 'password' && obj.value == '') {
		obj.value = 'password';
	}
}

function onFSCommand() {
}
