/*
Writen by Jamie Dixon (Jay-Dee) 2005

This script is used to set the class of form fields
which have an input type of "text" and also for 
textarea's.

This is to re-produce the input[type="text"] (etc) CSS Selector
which is not supported by IE6
*/
var setFieldStyle = function(){
if(document.all){
var arrFields = document.getElementsByTagName('input')
var arrTextArea = document.getElementsByTagName('textarea')
	for(i=0;i<=arrFields.length-1;i++)
	{
		strType = arrFields[i].getAttribute('type')
		if(strType=="text"||strType=="password")
		{
			arrFields[i].className += "inputBorders"
		}
	}
	
	for(i=0;i<=arrTextArea.length-1;i++)
	{
		arrTextArea[i].className += "inputBorders"
	}
}		
}
addEvent(window, "load", setFieldStyle) 
//oldLoad = window.onload
//window.onload = function(){if(oldLoad){oldLoad();}setFieldStyle();}