function isNumeric(obj)
{
	if(obj.value.search(/[^0-9]/) != -1) // only number checking
	{
		alert('The field must contain number only');
		obj.value="";
		obj.focus();
		return false;			
	}
	return true;
}
function isNumericJanak(obj,msg){
	if(obj.value.search(/[^0-9]/) != -1) // only number checking
	{
		alert('The '+msg+' must contain number only');
		obj.value="";
		obj.focus();
		return false;
	}
	return true;
}
function IsEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
		return false;
}
function ImageUploadChecking()
{
/*	var field = "photo";
	var photo = document.forms["main"][field].value
	var type = photo.substring(photo.length-4, photo.length).toUpperCase()
	if ((type != "") &&
		(type != ".JPG") &&
		(type != "JPEG") &&
		(type != ".GIF") &&
		(type != ".PNG") &&
		(type != ".BMP")) 
	{
		alert("Please only enter image file of type JPG, JPEG, GIF, PNG, or BMP.");
		document.forms["main"][field].focus();
		return false;
	}*/
}


