// JavaScript Document
function roll(obj, subpath, state, id) {

	if (typeof obj == "object") {
		// if obj is and object ref then attempt new style rollover
		if (document.getElementsByTagName) {
			var img = obj.getElementsByTagName("IMG")[0];
			img.src = (img.src.indexOf("_0.")>0)?img.src.replace("_0.", "_1."):img.src.replace("_1.", "_0.");
		}
	} else {

		// fallback to old method
		var objN = id ? obj+id : obj;
		if (subpath.indexOf("/wcsstore")>=0) subpath = "shared/";
		document.images[objN].src = imgDir + subpath + obj + state + ".gif";
	}
}

function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}