﻿// JScript File



var PhoneErrOff = true;

function phoneError(PhoneErr){
    if (PhoneErr){
        if (PhoneErrOff){
			var par = document.getElementById('phoneErr');
			par.innerHTML = "<font style='display:block;color:Red;font-size:smaller;'>Phone number is not valid</font>";
			/*
            var target = getErrorTarget('parentInfoTable',11)
            target.innerHTML = "<font style='color:Red;font-size:smaller;'>Phone number is not valid</font>";
			*/
            PhoneErrOff = false;
            //return false;
        }
    }else{
           var par = document.getElementById('phoneErr');
			par.innerHTML = "<span></span>";
			//alert("off");
           PhoneErrOff = true;
	}
    

}


function getErrorTarget(table,row){
	
		
		
		/*
        var tbl =  document.getElementById(table);
        var newR = tbl.insertRow(row);
        var col1 = newR.insertCell(0);
        var col2 = newR.insertCell(1);
        col1.className = 'col1';
        col2.className = 'col2';
        return col2;*/


}
