// +--------------------------------------------------------------------------+
// | QuickLinks Plugin - glFusion CMS                                         |
// +--------------------------------------------------------------------------+
// | quicklinks.js                                                            |
// |                                                                          |
// | Plugin javascript functions                                              |
// | Based on the included glFusion Mootools version, 1.11                    |
// +--------------------------------------------------------------------------+
// | Copyright (C) 2009 by the following authors:                             |
// |                                                                          |
// | Authors: Rowan Simms     - rowan AT rowansimms DOT info                  |
// | Plugin Architecture: Mark Evens      - mark AT glfusion DOT 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           |
// | of the License, 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 this program; if not, write to the Free Software Foundation,  |
// | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.          |
// |                                                                          |
// +--------------------------------------------------------------------------+


// also see functions.inc getheadercode function for more javscript

function ql_checkboxStatus(){

  	if ($('ql_target').checked == 1) {
			$$('#ql_link').each(function(item){
		    	item.setProperty('target', '_blank');
				item.checked == 1;
		});
  	} else {
		$$('#ql_link').each(function(item){
		    	item.removeProperty('target');
				item.checked == 0;
		});
	}
};