function suckerfish(type, tag, parentId) {    
	if (window.attachEvent) {    
		window.attachEvent("onload", 
			function() {    
				var sfEls = (parentId==null)?document.getElementsByTagName(tag):document.getElementById(parentId).getElementsByTagName(tag);    
				type(sfEls);    
			}
		);    
	}    
}    
sfFocus = function(sfEls) {    
	for (var i=0; i<sfEls.length; i++) {    
		
		sfEls[i].onfocus=function() { 
			if(this.readOnly == false && (this.type=="text" || this.type == "textarea" || this.type=="password")){
				this.className+=" form_textfieldonfocus";
			}    
		}    
		
		sfEls[i].onblur=function() {  
			this.className=this.className.replace(new RegExp(" form_textfieldonfocus\\b"), "");
		}    
	}    
}    
suckerfish(sfFocus, "INPUT");    
suckerfish(sfFocus, "TEXTAREA");



iws=false;
function shlist(divId){
document.getElementById(divId).style.display=document.getElementById(divId).style.display=="block"?"none":"block";
}
function changesever(ts, selecedDivId, divId){
//document.getElementById(selecedDivId).innerHTML="---"+ts.innerHTML+"---";
shlist(divId);
//alert(document.getElementById("selected").rel);
}
function cws(val){
iws=val;
}
function hlist(divId){
	if(!iws)document.getElementById(divId).style.display="none";
}
