function LTrim(value1) {
	return value1.replace(/^\s+/,"");
}

function RTrim(value1) {
	return value1.replace(/\s+$/,"");
}	

function Trim1(value1) {
	return LTrim(RTrim(value1));
}	

function getDogInfo() {

	if (Trim1(document.forms.getDogStatus.reg_num.value) == '' ) {
		alert('Please enter an NGKC Registration Number');
	
	}
	else
	{
		var RetCode = false ;
		document.forms.getDogStatus.action='index1.cfm?action=getDog';
		document.forms.getDogStatus.submit() ; 
	}
	
}

function clearinfo() {

	var RetCode = false ;
	document.forms.getDogStatus.action='index1.cfm?action=clearinfo';
	document.forms.getDogStatus.submit() ; 
	}
	
	
