function DoAction(gadget, target, task) {
	var strLocation = document.location + "";

	var url = 'index2.php?gadget=' + gadget + '&action=' + task;
	var imagepath = 'images/indicator_arrows.gif';
	if (strLocation.indexOf('/admin/') > 0)
	{
		imagepath = "../" + imagepath;
	}

	//$("#divLoading").show("fast");
	$(target).html("<img src='"+imagepath+"'>").load(url);
	//$("#divLoading").hide("slow");
}
// JavaScript Document

function DoAction2(gadget, target, task) {
	var strLocation = document.location + "";

	var url = 'index2.php?gadget=' + gadget + '&action=' + task;
	var imagepath = 'images/indicator_arrows.gif';
	if (strLocation.indexOf('/admin/') > 0)
	{
		imagepath = "../" + imagepath;
	}
	$(target).load(url);
}




function stripeMe() {
	$('.stripeMe tr').mouseover(function () {
		$(this).addClass("over");
	}).mouseout(function() {
		$(this).removeClass("over");
	});
	$('.stripeMe tr:even').addClass("alt");
}


function justStripeMe() {
	$('.stripeMe tr:even').addClass("alt");
}


function highlightField() {
	$('input.formField, textarea.formField, select.formField').focus(function(){
		$(this).addClass('formField_active');
	}).blur(function(){
		$(this).removeClass('formField_active');
	});
}











function SelectMoveRows(SourceID, TargetID) {
	$("#"+SourceID+">option:selected").each(function () {
			$(this).clone().appendTo("#"+TargetID);
			$(this).remove();
	})
}
