/*
	 File Name	:	val.js
	Created		:	21/05/2001
	Modified	:	02/08/2001
	Author		:	Harish
	Purpose		:	This file checks whether list box is selected 
        Revision        :       plh - fix openWindow (code error made size not work)
	*/
function IsEmpty(ele)
{	
	
	if(ele=='' || ele.length<=0)
	{
		return false;
	}
	else
	{
		return true;
	}
}
	

function hasValue()
{	

	
	
	//it the list box is not selected it alerts a message
	if(( document.grants.rCmb_Sponsors.value)=="")

	{
		alert("Please select the Sponsors list");
		return false;
	}

	else
	
	//it returns ok
	{
		return true;
	}
}


function openWindow(hylink)
{
	myWindow=window.open(hylink,'newWin','resizable=yes,menubar=no,scrollbars=yes,toolbar=no,width=550,height=450');

}
function opensmallWindow(hylink)
{
	myWindow=window.open(hylink,'newWin','resizable=yes,menubar=no,scrollbars=no,toolbar=no,width=350,height=250');

}

function closeWindow(form) 
{
	if ((window.opener != null) && (! window.opener.closed))
		window.opener.location.reload();
	if (window.opener != null)
		window.close();
	else 
	{
	setWinType(form);
	form.whatAction.value = "Close";
	form.submit(); 
	}
}

