<!--
//Copyright 2005 Rob Galbraith (rob.galbraith@amazinginternet.com)
// This function creates a string based on the contents on the form for use in a
// re-direct of a fashion, with an optional prefix.
function inclFormEl(obj, varn, pref) {
	// obj = "PrintFramesID" (id of object)
	// varn = "pfra"
	// pref = "&", "?", etc.
	varv = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:0;
	// Only attempt to set the string if the object exists else return empty string
	if (varv) {
		if (varv.checked || varv.selected) {
			if (varv.checked == true) {
				return pref + varn + '=' + 'sel';
			} else {
				return pref + varn + '=' + 'off';
			}
		} else {
			return pref + varn + '=' + varv.value;
		}
	} else {
		return '';
	}
}

// This function the same as above basically but returns fewer chars so that
// the bulk uploads script works in MSIE with lots of images (4096 max URL chars)
function inclFormBulk(obj, varn, pref) {
	// obj = "PrintFramesID" (id of object)
	// varn = "pfra"
	// pref = "&", "?", etc.
	varv = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:0;
	if (varv.checked || varv.selected) {
		return pref + varn + '=' + 'n';
	} else {
		return pref + varn + '=' + 'f';
	}
}

function inclFormBulkImg(obj, val) {
	// obj = "PrintFramesID" (id of object)
	// val = 0g (two char encoding of image number
	varv = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:0;
	if (varv.checked || varv.selected) {
		return val;
	}
	return "";
}
//
-->

