var firstClick = new Array(100);
function firstRemove(x) {
	for (i=1; i<firstClick.length; i++)
		if (firstClick[i]==x) return;
	firstClick[firstClick.length]=x;
	x.value='';
	return(false);
}

function adjustWidth() {
	if (screen.width<1024) {
		//alert("inside BFS");
		//document.write('<link rel="stylesheet" href="../css/fed800.css" type="text/css">');
		//document.write('<link rel="stylesheet" href="http://localhost/css/fed800.css" type="text/css">');
		document.write('<link rel="stylesheet" href="http://www.globalbx.com/css/fed800.css" type="text/css">');
	}
}

function initialActions() {
	if (!document.getElementsByTagName) return false;
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++) {
		if (inputs[i].className.search('mojbut') != -1) {
			inputs[i].onmouseover = function() {
				this.style.backgroundPosition='left bottom';
				return false;
			}
			inputs[i].onmouseout = function() {
				this.style.backgroundPosition='left top';
				return false;
			}
		}
	}
}

adjustWidth();
window.onload=initialActions;



function CheckSearchForm()
{
	//alert("js url: " + location.href);
	//alert("js kw: " + location.href.document.AForm2.txtKeywordBasic.value);
	KeywordSearchBar = (document.AForm2.txtKeywordBasic.value);
	KeywordSearchBar = KeywordSearchBar.trim();
	document.AForm2.txtKeywordBasic.focus();
	
	if ((KeywordSearchBar=='Search business by type or location') || (KeywordSearchBar==''))
	{
		 alert("You must enter a business type or location for search"); 
		 document.AForm2.txtKeywordBasic.focus();
		 return false; 
	}
	return true;
}

function MyFormName(f) {
	alert("This form is " + f.name + ".");
	return false;	
} 

