if (top.frames.length!=0) {
    if (window.location.href.replace)
        top.location.replace(self.location.href);
    else
        top.location.href=self.document.href;
}

function ConfirmChoice(url,msg) { 
	answer = confirm(msg)
	
	if (answer !=0) { 
		location = url 
	} 
}


function checkChange() {
	if(document.getElementById('ActionButtonChange')) {

	} else {
		document.form.submit()
	}
}

function movein(which,html){
	document.getElementById(which).innerHTML=html
}
	
function moveout(which,html){
	document.getElementById(which).innerHTML=html
}

function imgin(which,value){
	document.getElementById(which).src=value
}
function updatestringbox(strinn) {
 if ((isNaN(strinn)) || (strinn == "")) {
 document.getElementById('stringwords').innerHTML = '&nbsp;';
 } else {
 document.getElementById('stringwords').innerHTML = toWords(strinn) + ' Pound';
 }
}
function numbersonly(myfield, e, dec) {
 var key;
 var keychar;

 if (window.event)
 key = window.event.keyCode;
 else if (e)
 key = e.which;
 else
 return true;
 keychar = String.fromCharCode(key);

 // control keys
 if ((key==null) || (key==0) || (key==8) ||
 (key==9) || (key==13) || (key==27) )
 return true;

 // numbers 
 else if ((("0123456789").indexOf(keychar) > -1))

 return true;


 // decimal point jump
 else if (dec && (keychar == "."))
 {
 myfield.form.elements[dec].focus();
 return false;
 }
 else
 return false;


} 
