function openCalendarWindow(strctrl)
{
	window.open("../calendarpage.aspx?postbackctrl="+strctrl,null,"height=250,width=240,status=yes,toolbar=no,menubar=no,location=no");
}

function CheckPassword(txtpwd,txtconpwd)
{
	if(txtpwd.value != txtconpwd.value)
	{
		alert('Type Correct Password');
		//txtconpwd.focus();
	}
}

function CheckNemericValue(e)
{  
	var key; 
	key = e.which ? e.which : e.keyCode;
	if(key>=48 && key<=57)
	{       
		return true;
	}
	else
	{
		return false;
	}
}

function isMaxLength(Object, MaxLen)
{
	return (Object.value.length <= MaxLen);
}

// Function for Post Products

function fnKeepOneBlank(txtdesc,flsup,lblmsg)
{
    if(txtdesc.value=='' && flsup.value=='')
    {
        lblmsg.innerText='Please enter one of these. Type description or attach file';
        return false;
    }
    else
    {
         lblmsg.innerText='';
         return true;
    }
}