<!-- 
function checkFieldType(type){
	if(type == "submit" || type == "reset" || type == "hidden"){
	return false
	}
	else {
	return true
	}
}

function fIt(){

/* ******************************************************************************************
** BLOCK FOCUS INSTRUCTIONS
** The following array named "noFocusPages" was constructed to block the focus script on certain pages.
** The array contains a default list of blocked pages using subsilver template which do not play nice with this script.
** You may add to or from the default list, just be sure the element indexes (numbers between the "[]") 
** are in chronological order after making changes. If you don't want any pages blocked, just comment out 
** the elements (by placing 2 slashes "//" in front of each element statement).
****************************************************************************************** */
var noFocusPages = new Array()
//noFocusPages[0] = "index.php"
noFocusPages[0] = "viewforum.php"
noFocusPages[1] = "viewtopic.php"
noFocusPages[2] = "profile.php?mode=viewprofile"
noFocusPages[3] = "search.php"
noFocusPages[4] = "faq.php"
//noFocusPages[5] = "SampleCommentedOutElement.php"  this is how to comment out an element

var locVar = location.href

	if(locVar.indexOf(".php") == -1){//check to see if url ends with dir+slash (no file name)
	locVar += "index.php"
	}

var formExists = (document.forms[0]) ? document.forms[0] : null

	if(formExists){ //first check to see if there is a form on this page		
		var x = 0
		for(var i=0; i<noFocusPages.length; i++){ // begin looping through noFocusPages array			
				if(locVar.indexOf(noFocusPages[i]) > -1){ // is this a 'no-focus' page?
				x+=1
				break
				}				
		}	//end noFocus for		
		if(x == 0){ //this page is NOT a no-focus page, so focus if there is appropriate field		
			for(var e=0; e<formExists.elements.length; e++){							
				if(checkFieldType(formExists.elements[e].type)){
				formExists.elements[e].focus()
				break
				}									
			}// end elements for											
		}//end if		
	}  //end formExists if
}
// -->