

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 init () {
		$('submit').onclick = function () {
			sendData();
		}
	}
	function sendData () {
		var url = '../store/process.php';
		var pars = Form.serialize('frm');
		var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onLoading: showLoad, onComplete: showResponse} );
	}
	function showLoad () {
		$('load').innerHTML = 'Checking...';
	}
	function showResponse (originalRequest) {
		var newData = originalRequest.responseText;
		$('load').innerHTML = '&nbsp;';
		$('status').innerHTML = newData + '&nbsp;';
	}