function checkEmail(textId){
	var e = document.getElementsByName(textId)[0].value;
	if(e != "") {
		if(!/(\S)+[@]{1}(\S)+[.]{1}(\w)+/.test(e)){ 
			return false;
		}
		return true;
	}
	
}

function notNullCheck(textId){
	var text = document.getElementsByName(textId);
	if(text!=null){
		for(var i=0;i<text.length;i++){
			var value = text[i].value;
			if(value==null || value==""){
				return false;
			}
		}
		return true;
	}
	return false;
}

function isNumber(textId){
	var text = document.getElementById(textId);
	if(text!=null){
		if(/^\d+$/.test(text.value)){
			return true;
		}
	}
	return false;
}
function isWord(textId){
	var text = document.getElementById(textId);
	if(text!=null){
		if(/\w+\s*\w+$/.test(text.value)){
			return true;
		}
	}
	return false;
}
function isFilePath(textId){
  
   var text = document.getElementsByName(textId);
	if(text!=null){
		for(var i=0;i<text.length;i++){
		     var value = text[i].value;
		     if(!/[a-zA-Z]{1}?:\\{1,2}?(\w)*/.test(value)) {
		        return false;
		     }
		}
		return true;
	}
	
	
	return false;
}

function emailus(){
	var emailAddress = "lifecenter";
	var host = "scbit.org";
	window.location.href = "mailto:" + emailAddress + "@" + host;
}