	/*
		Common JS Functions.
		Note: do not include your functions here if they are not used often on different pages.
	*/



	////
	// does not allow search form submition in case of empty keyword
	//
	function validateSearch(frm)
	{
		if(!frm || frm == null) return false;

		error = "";

		if(frm.keyword.value == "")
		{
			return false;
		}

		return true;
	} // /validateSearch()


	////
	// opens a pop-up window
	//
	function openPopup(url,winName,winWidth,winHeight)
	{
		if(winName == null) winName = '';
		if(!(winWidth > 0)) winWidth = 700;
		if(!(winHeight > 0)) winHeight = 550;

		if(url != null)
		{
			window.open(url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + winWidth + ',height=' + winHeight);
		}

		return true;
	} // /openPopup() 