function debugWindow (file, pass)
{
    openCleanWindow(file + '?core=displayDebug&debugPass=' + pass, screen.width, screen.height, 0, 0, 'yes');
}

function updatePostage ()
{
	result = '';
	
	countryId 	= $('country_id').options[$('country_id').selectedIndex].value;
	paymentType = $('paymentChooser').options[$('paymentChooser').selectedIndex].value;
	url         = $('paymentUrl').value;
	
	myAjaxReq.push(new Ajax.Request('/index.php?action=_update_postage&country_id=' + countryId + '&paymentType=' + paymentType + '&renderContent=1', 
									{ method:'get', 
                            	  	onSuccess: function (transport) {
										result = transport.responseText;
										data = result.split(':');
										$('postage').innerHTML = data[0];
										$('total').innerHTML = data[1];
										new Effect.Highlight('postage', {duration:2.5});
									    new Effect.Highlight('total', {duration:2.5});
										// Vat
										i = 2;
										$$('.vat').each(function (elm) {
											$(elm).innerHTML = data[i++];
											new Effect.Highlight(elm, {duration:2.5});
										});
								  	},
                            	  	onFailure:_loadContentError
                        			}));
}