function SetFocus() {
	if (document.forms.length > 0) {
		var field = document.forms[0];
		for (i=0; i<field.length; i++) {
			if ( (field.elements[i].type != "image") &&
			(field.elements[i].type != "hidden") &&
			(field.elements[i].type != "reset") &&
			(field.elements[i].type != "submit") ) {

				document.forms[0].elements[i].focus();

				if ( (field.elements[i].type == "text") ||
				(field.elements[i].type == "password") )
				document.forms[0].elements[i].select();

				break;
			}
		}
	}
}

function rowOverEffect(object) {
	if (object.className == 'dataTableRow') object.className = 'dataTableRowOver';
}

function rowOutEffect(object) {
	if (object.className == 'dataTableRowOver') object.className = 'dataTableRow';
}

var newWin=null;
function popUp(theURL, xwidth, xheight)
{
	if ((newWin!=null) && ! newWin.closed)
	{
		newWin.location= theURL ;
		newWin.focus();
	}
	else
	{
		newWin= window.open(theURL,"popUpWin", 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width='+xwidth+',height='+xheight+',top=100,left=100');
		newWin.opener= self;
		newWin.focus();
	}
}

var nm=navigator.appName;
NS=((nm.indexOf("Netscape")>-1||nm.indexOf("Netscape")>-1)?1:0);
var IE4 = (document.all);

function addfavorite(){
	if (IE4) {window.external.AddFavorite(location.href, document.title);}
	if (NS) { alert("For Netscape, Firefox, AOL and Mozilla users, please press Ctrl+D to add this page to your bookmarks.");	}
}


function addEngine(name,cat,type)
{
	if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) {
		window.sidebar.addSearchEngine(
		"http://www.jobscareers24.co.uk/extension/JC24UK.src",
		"http://www.jobscareers24.co.uk/extension/JC24UK.png", name, cat
		);
	} else {

		window.external.AddSearchProvider("http://www.jobscareers24.co.uk/extension/JC24UK.xml");
	}
}


