if(String(top.location).indexOf('indianaorthopedichospital.com') >= 0) {
	window.location = "http://www.orthoindy.com/ioh/"
}
else if(String(top.location).indexOf('indianaorthopaedichospital.com') >= 0) {
	window.location = "http://www.orthoindy.com/ioh/"
}
function hasCharacter(inputVal) {
	var hasChar = 0
	oneDecimal = false
	inputStr = inputVal.toString()
	if(inputStr.length == 0) { // return false if null string
		return false
	}
	for (var i = 0; i < inputStr.length; i++) {
		var oneChar = inputStr.charAt(i)
		if(oneChar == String.fromCharCode(39) || (oneChar >= String.fromCharCode(97) && oneChar <= String.fromCharCode(122)) || (oneChar >= String.fromCharCode(65) && oneChar <= String.fromCharCode(90)) || (oneChar >=String.fromCharCode(48) && oneChar <= String.fromCharCode(57))) {
			hasChar = 1	
		}
	}
	if(hasChar == 0) return false;
	return true // yes, it is has a char.
} // END function hasCharacter(inputVal)
function chk_sb() {
	if(!hasCharacter(sb.searchterm.value)) {
		alert("You must enter something for the search term.")
		sb.searchterm.focus()
		sb.searchterm.select()
		return false;
	}
} // end function chk_sb()
document.write('\
<table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#ece7d1">\
<form action="/searchresults.asp" method="post" name="sb" onsubmit="return chk_sb()">\
      <tr>\
        <td width="393" rowspan="5"><img src="newhomeimages/top.gif" width="372" height="102" border="0" usemap="#Map"></td>\
        <td colspan="2" class="lhead"><img src="newhomeimages/trans_space.gif" width="10" height="24"></td>\
      </tr>\
      <tr>\
        <td height="28" colspan="2" class="searchlinks"><a href="/">Home</a> | <a href="/careers/">Careers</a> | <a href="/locations/">Locations</a> | <a href="/findadoc/">Physicians</a> | <a href="http://www.indianaorthopedichospital.com/health/">Health Info</a></td>\
      </tr>\
      <tr>\
        <td width="158" class="body"><input name="searchterm" type="text" class="body" size="39"></td>\
        <td width="209" class="body"><input type="Image" src="newhomeimages/search.gif" width="67" height="18" hspace="5" vspace="0" border="0"></td>\
      </tr>\
      <tr>\
        <td class="body"><span class="lhead"><img src="newhomeimages/trans_space.gif" width="49" height="30"></span></td>\
        <td class="body">&nbsp;</td>\
      </tr>\
      <tr>\
        </tr>\
</form>\
</table>\
');