//Swap Images On Splash
	function swap_images2(dir, imgname, status){
		document.images[imgname].src=dir+"images/splash/"+imgname+status+".gif";
	}

//Swap Images On Nav
	function swap_images(dir, imgname, status){
		document.images[imgname].src=dir+"images/interface/"+imgname+status+".gif";
	}
	
	
//__________________________________________________________________________________
function LoadSelectWithAjaxAutoSelect(obj,default_key){ // expects key|value|key|value|key|value|key|value
	arr=ajax_return.split('|');
	obj.options.length=0;
	obj.options[0]=new Option('Select one','');
	for (i=0;i<arr.length;i=i+2){
		obj.options[(i+2)/2]=new Option(arr[i+1],arr[i]);
		if (default_key==arr[i]){
			obj.options[(i+2)/2].selected=true;
		}
	}

	if (default_key=='' && obj.options.length>1){
		obj.options[0].selected=true;
	}
}
//__________________________________________________________________________________
function LoadSelectWithAjax(obj,default_key){ // expects key|value|key|value|key|value|key|value
	arr=ajax_return.split('|');
	obj.options.length=0;
	for (i=0;i<arr.length;i=i+2){
		obj.options[i/2]=new Option(arr[i+1],arr[i]);
		if (default_key==arr[i]){
			obj.options[i/2].selected=true;
		}
	}
}
//__________________________________________________________________________________
function LoadSelectWithAjax2(obj,default_key){ // expects value|value|value
	arr=ajax_return.split('|');
	obj.options.length=0;
	for (i=0;i<arr.length;i++){
		obj.options[i]=new Option(arr[i],arr[i]);
		if (default_key==arr[i]){
			obj.options[i].selected=true;
		}
	}
}
function LoadSelectWithString(obj,s,default_key){ // expects key|value|key|value|key|value|key|value
	arr=s.split('|');
	obj.options.length=0;
	for (i=0;i<arr.length;i=i+2){
		obj.options[i/2]=new Option(arr[i+1],arr[i]);
		if (default_key==arr[i]){
			obj.options[i/2].selected=true;
		}
	}
}
function LoadSelectWithString2(obj,s,default_key){ // expects value|value|value
	arr=s.split('|');
	obj.options.length=0;
	for (i=0;i<arr.length;i++){
		obj.options[i]=new Option(arr[i],arr[i]);
		if (default_key==arr[i]){
			obj.options[i].selected=true;
		}
	}
}
//__________________________________________________________________________________
