rem: alert("true1"); 
context: function firehose_set_options(name, value) {	var pairs = [		// name		value		curid		newid		newvalue 	title 		["orderby", 	"createtime", 	"popularity",	"time",		"popularity"	],		["orderby", 	"popularity", 	"time",		"popularity",	"createtime"	],		["orderdir", 	"ASC", 		"asc",		"desc",		"DESC"],		["orderdir", 	"DESC", 	"desc",		"asc",		"ASC"],		["mode", 	"full", 	"abbrev",	"full",		"fulltitle"],		["mode", 	"fulltitle", 	"full",		"abbrev",	"full"],	];	var params = [];	params['op'] = 'firehose_set_options';	params['reskey'] = ajax_user_static;	theForm = document.forms["firehoseform"];	if (name == "firehose_usermode") {		if (value ==  true) {			value = 1;			alert("true1");		}		if (value == false) {			value = 0;			alert("false1");		}		params['setusermode'] = 1;		params[name] = value;	}	if (name == "fhfilter") {		for (i=0; i< theForm.elements.length; i++) {			if (theForm.elements[i].name == "fhfilter") {				params['fhfilter'] = theForm.elements[i].value;			}		}	}	for (i=0; i< pairs.length; i++) {		var el = pairs[i];		if (name == el[0] && value == el[1]) {			params[name] = value;			if ($(el[2])) {				$(el[2]).id = el[3];				if($(el[3])) {					var namenew = el[0];					var valuenew = el[4];					$(el[3]).firstChild.onclick = function() { firehose_set_options(namenew, valuenew); return false;}				}			}		}	}	if (name == "orderby" || name == "mode" || name == "firehose_usermode") {		// blur out then remove items		if (name == "mode") {			fh_view_mode = value;		}		if ($('firehoselist')) {			// set page			page = 0;			var attributes = { 				 opacity: { from: 1, to: 0 }			};			var myAnim = new YAHOO.util.Anim("firehoselist", attributes); 			myAnim.duration = 1;			myAnim.onComplete.subscribe(function() {				$('firehoselist').style.opacity = "1";			});			myAnim.animate();			// remove elements			setTimeout("firehose_remove_all_items()", 600);		}	}	var handlers = { 		onComplete: firehose_get_updates 	};		ajax_update(params, '', handlers);}
meta: 3253	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3253/378927b221bcbeee655a7429511fb13233ac905e/common.js/clean/plugins/Ajax/htdocs/images/common.js