function getDoc(n){
	if(identity){
		window.open('/index_01_exe.php?suppressPrintEnv=1&mode=getDoc&document='+n,'w2');
	}else{
		if(!confirm('You must be signed in to download this document.  Would you like to sign in now?')) return false;
		var loc=window.location+'';
		if(loc.indexOf('?')==-1){
			loc+='?returnAction=getDoc&document='+n;
		}else{
			loc+='&returnAction=getDoc&document='+n;
		}
		window.location='/cgi/login.php?src='+escape(loc);
		return false;
	}
}
function doLogin(){
	var query='logout='+(login?1:0);
	query+='&src=';
	query+=escape(window.location);
	window.location='/console/login/?'+query;
}
function help_about(){
	alert('Kyle Fire Department Site Manger 1.1\nDeveloper: Samuel Fullman (sam.fullman@verizon.net)');
}
function help_withthispage(){
	ow('/console/help_withthispage.php?page='+thispage+'&folder='+thisfolder,'l1_helpwiththispage','700,800');
}
function exportObjectQuickbooks(node,source){
	if(typeof source!=='undefined'){
		str='&source='+source;
	}else{
		str='&Clients_ID='+ID;	
	}
	window.open('/console/resources/bais_01_exe.php?suppressPrintEnv=1&mode=exportObjectQuickbooks&node='+node+str,'w4');
}
function getMin(n){
	if(identity){
		window.open('/index_01_exe.php?suppressPrintEnv=1&mode=getMin&document='+n,'w2');
	}else{
		if(!confirm('You must be signed in to download this document.  Would you like to sign in now?')) return false;
		var loc=window.location+'';
		if(loc.indexOf('?')==-1){
			loc+='?returnAction=getMin&document='+n;
		}else{
			loc+='&returnAction=getMin&document='+n;
		}
		window.location='/cgi/login.php?src='+escape(loc);
		return false;
	}
}
