function checkSearch(frmObj)
{
	with (frmObj)
	{
		if (frmObj[0].value.length == 0)
		{
			alert('Please type the kyword to search');
			frmObj[0].focus();
			return false;
		}
	}
	return true;
}

function doButtonMouseOver(butObj)
	{
		butObj.className = butObj.className == 'button' ? 'buttonOver' : 'button';
	}

/// onload function & event handler ///////////////////////////////////////
function init()
{
	if (document.forms.length)
	{
		if (document.forms[0][0].type == 'text')
		{
			document.forms[0][0].focus();
		}
	}
}
//moved to images_changer.js
//window.onload = init;

function viewPersonalInfo(PersonID)
{
	var strPath = '../about/personal_info.asp?iid=' +PersonID;
	var personalWin = window.open(strPath, 'PerWin', 'width=500, height=500, scrollbars');
	personalWin.focus();
}

function viewBODPersonalInfo(PersonID)
{
	var strPath = '../about/BODpersonal_info.asp?iid=' +PersonID;
	var personalWin = window.open(strPath, 'PerWin', 'width=500, height=500, scrollbars');
	personalWin.focus();
}

function viewNewsItem(NewsID)
{
	var strPath = '/NeamanHeb/news/news_item.asp?iid=' +NewsID;
	var newsWin = window.open(strPath, 'NewsWin', 'width=500, height=500, scrollbars');
	newsWin.focus();
}

function viewPressItem(PressID)
{
	var strPath = '/NeamanHeb/news/press_item.asp?iid=' +PressID;
	var PressWin = window.open(strPath, 'PressWin', 'width=700, height=700, scrollbars');
	PressWin.focus();
}

function viewHebPressItem(PressID)
{
	var strPath = '/NeamanHeb/news/HebPress_item.asp?iid=' +PressID;
	var PressWin = window.open(strPath, 'PressWin', 'width=700, height=700, scrollbars,resizable');
	PressWin.focus();
}

function sendToFriend()
{
	var pathString = '/NeamanHeb/publications/send_to_friend.html';
	var sendToFriendWin = window.open(pathString,'PopUp','width=500,height=500,scrollbars,resizable');
	sendToFriendWin.focus();
}

function switchBoxes(boxObj)
	{
		var status = boxObj.checked;
		var parentObj = boxObj.form[boxObj.name];

		for(var i=1; i<parentObj.length; i++)
		{
			parentObj[i].checked = status;			
			parentObj[i].disabled = status;
		}		
	}

function OpenDownloadWindowSpecial(tid, iid, order)
{
	window.open('../login/DocDownload1.asp?tid='+tid+'&iid='+iid+'&order='+order,'DocDownload','width=550,height=500,toolbars=yes');
}
function OpenDownloadWindow(tid, iid)
{
	window.open('../login/DocDownload1.asp?tid='+tid+'&iid='+iid,'DocDownload','width=550,height=500,toolbars=yes,scrollbars,resizable');
}
	
	