function show()
{
var Digital1=new Date("2009/02/08 06:00:00")
var Digital2=new Date()
var Digital=Digital2  
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
if (hours==0)
hours=00
if (hours<=9)
hours="0"+hours
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
document.linecapture.Clock.value=
hours+":"+minutes+":"+seconds
setTimeout("show()",1000)
}
show()
	
function Barcode()
{
if (ISBLANK(document.linecapture.BarCode.value)) 
	{ 	
		    document.linecapture.BarCode.style.backgroundColor = "yellow";
			alert("Please Enter Barcode Number in the Bar Code Field !!");
    	    return false;
    }
	
if (isNaN(document.linecapture.BarCode.value)) 
	{ 
		document.linecapture.BarCode.style.backgroundColor = "yellow";
		alert("Please enter Bar Code as a Numeric 10 Digits only.!!"); 
		return false; 
	}

if (document.linecapture.BarCode.value.length !=10)
         {
		document.linecapture.BarCode.style.backgroundColor = "yellow";
		alert("A valid Bar Code has 10 Characters. Please re-enter !!")
        return false
         }

if (document.linecapture.BarCode.value <=2009012345)
         {
		document.linecapture.BarCode.style.backgroundColor = "yellow";
		alert("An invalid Bar Code range been entered. Please re-enter !!")
        return false
         }
		
if (document.linecapture.BarCode.value >=2009020000)
         {
		document.linecapture.BarCode.style.backgroundColor = "yellow";
		alert("An invalid Bar Code range been entered. Please re-enter !!")
        return false
         }

		
	document.linecapture.BarCode.style.backgroundColor = "white";
	return true;
}

function ISBLANK(xx)
{ 
        var cc=0,tt;
		for(tt=0; tt<xx.length; tt++)
		{
		     if (xx.charAt(tt)==' ')
			 {
			 	cc=cc+1; // count blank character
			 }
		}
		if (cc==xx.length)
		{
			return true;  //// means it is BLANK
		}
	     return false;	//// means it is NOT BLANK
}
