function swap(o){
	if(o.style.opacity==.85){
		o.style.opacity=1;
	}else{
		o.style.opacity=.85;
	}
	if(o.style.filter=='alpha(opacity=85)'){
		o.style.filter='alpha(opacity=100)';
	}else{
		o.style.filter='alpha(opacity=85)';
	}
}



function byId(id){
	return document.getElementById(id);
}

function clearForm(id){
	o=document.getElementById(id);
	o.reset();
}
function sendForm(id){
	o=document.getElementById(id);
	o.submit();
}

function byClassName(oElm, strTagName, strClassName){
	var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);

	var arrReturnElements = new Array();
	strClassName = strClassName.replace(/-/g, "\-");
	var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
	var oElement;
	for(var i=0; i<arrElements.length; i++){
		oElement = arrElements[i];
		if(oRegExp.test(oElement.className)){
			arrReturnElements.push(oElement);
		}
	}
	return (arrReturnElements)
}

function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}


