/**
 *
 * @copyright 2007 iWorks Marcin Pietrzak
 * @link http://www.iworks.pl/
 * @author Marcin Pietrzak <marcin.pietrzak@iworks.pl>
 *
 * @file $RCSfile: default.js,v $
 * @date $Date: 2007/10/07 21:50:50 $
 *
 */

function switchView(id) {
	if (document.getElementById) {
		s = document.getElementById(id).style;
	}
	else { 
		s = id.css;
	}
	if(s.display == 'none' || s.display == '') {
		s.display = (s.display2)? s.display2:'block';
		return true;
	}
	else {
		s.display2 = s.display;
		s.display ='none';
	}
	return false;
}

function sfs() {
	if (switchView('sendpage')) {
		document.forms.sendlinkform.receiver.focus();
	}
	return false;
}

