function countryOption(url,data) {
    var aj = new Ajax.Request(
        url, {
            method:'get',
            parameters: data,
            onComplete: countryOutput
        }

    );

}

/* ajax.Response */
function countryOutput(oReq) {
    $('countryOutput').innerHTML = oReq.responseText;
}

function codeOption(url,data) {
    var aj = new Ajax.Request(
        url, {
            method:'get',
            parameters: data,
            onComplete: codeOutput
        }

    );

}

/* ajax.Response */
function codeOutput(oReq) {
    $('codeOutput').innerHTML = oReq.responseText;
}

function spinOption(url,data) {
    var aj = new Ajax.Request(
        url, {
            method:'get',
            parameters: data,
            onSuccess: showSpin
        }

    );

}


function showSpin(oReq) {
	$('showSpin').innerHTML	=	oReq.show;
}

/* ajax.Response */
function spinOutput(oReq) {
    $('codeOutput').innerHTML = oReq.responseText;
}
