function validateTag(inputTag, isZero) {

	var isError = true;
    var x = inputTag[0].value;

    if (x==null || x=="") {
    	if(isError) {
    		console.log("tag name in errors. name=" + inputTag[0].name);
    		inputTag[0].focus();
    		inputTag[0].scrollIntoView();
    	}
    	inputTag[0].style.border = "1px solid red";
        isError = false;
    } else {
    	inputTag[0].style.border = "";
    }

    if (isZero && x=="0") {
		console.log("0 is error. name=" + inputTag[0].name);
		inputTag[0].focus();
		inputTag[0].scrollIntoView();
		inputTag[0].style.border = "1px solid red";
		isError = false;
    }

    return isError;
}
/*
 * Validate a tag for single
 * isZero if can check 0
 */
Validate a tag for single
isZero if can check 0
Validate a tag for single isZero if can check 0
function validateTag(inputTag, isZero) {
	var isError = true;
    var x = inputTag[0].value;
    if (x==null || x=="") {
    	if(isError) {
    		console.log("tag name in errors. name=" + inputTag[0].name);
    		inputTag[0].focus();
    		inputTag[0].scrollIntoView();
    	}
    	inputTag[0].style.border = "1px solid red";
        isError = false;
    } else {
    	inputTag[0].style.border = "";
    }
    if (isZero && x=="0") {
		console.log("0 is error. name=" + inputTag[0].name);
		inputTag[0].focus();
		inputTag[0].scrollIntoView();
		inputTag[0].style.border = "1px solid red";
		isError = false;
    }
    return isError;
}
function validateTag ( inputTag , isZero ) { var isError = true ; var x = inputTag [ 0 ] . value ; if ( x == null || x == "" ) { if ( isError ) { console . log ( "tag name in errors. name=" + inputTag [ 0 ] . name ) ; inputTag [ 0 ] . focus ( ) ; inputTag [ 0 ] . scrollIntoView ( ) ; } inputTag [ 0 ] . style . border = "1px solid red" ; isError = false ; } else { inputTag [ 0 ] . style . border = "" ; } if ( isZero && x == "0" ) { console . log ( "0 is error. name=" + inputTag [ 0 ] . name ) ; inputTag [ 0 ] . focus ( ) ; inputTag [ 0 ] . scrollIntoView ( ) ; inputTag [ 0 ] . style . border = "1px solid red" ; isError = false ; } return isError ; }
Validate a tag for single
 isZero if can check 0
Validate a tag for single isZero if can check 0