function checkInput(obj,mess)
{
	if(obj.value=="")
	{
		alert(mess);
		obj.focus();
		return false;
	}else return true;
}

function checkInputIsNumber()
{
	if((event.keyCode<48&&event.keyCode!=46)||(event.keyCode>57)) event.returnValue=false;
}

function isEmailAddress(strValue)
{
	var j,strTemp;
	strTemp = strValue;
	if (strTemp != '') 
	{
	var nCountC = 0;
	for ( j = 0; j< strTemp.length; j++ ){
	c = strTemp.charAt(j);
	if ( !( c>='0' && c<='9' || c>='a' && c<='z' || c>='A' && c<='Z' || c == '@' || c == '.' || c =='_' || c =='-') ) 
		return false;
		if (c == '@') nCountC  = nCountC + 1;
	}
	if (nCountC != 1)return false;
	if (strTemp.charAt(strTemp.length - 1) == '@' || strTemp.charAt(0) == '@' || strTemp.charAt(strTemp.length - 1) == '.' || strTemp.charAt(0) == '.')
	return false;
	}
	return true;
}
