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 addtoqty(theid, min_qty) {

	if (isNaN(document.getElementById(theid).value)) {
		document.getElementById(theid).value = 1;
	}

	document.getElementById(theid).value++;
  if (document.getElementById(theid).value < min_qty) {
    document.getElementById(theid).value = min_qty;
  }
}

function minusfromqty(theid, min_qty) {
	if (isNaN(document.getElementById(theid).value)) {
		document.getElementById(theid).value = 2;
	}

	if (document.getElementById(theid).value > 1) {
    
		document.getElementById(theid).value--;
    if (document.getElementById(theid).value < min_qty) {
      document.getElementById(theid).value = min_qty;
    }
	}
}