﻿function VAT_Changed(controlID)
{
	var isChecked = $get(controlID).checked;
	
	JetShop.StoreControls.Services.General.SetVATSelectorStatus(isChecked, VAT_Success, VAT_Error, controlID);
}

function VAT_Success(result, obj2, obj3)
{
	var href = '';
	
	var singleFrame = result[0];
	
	if (singleFrame == "True" || singleFrame == "true")
	{
	    window.location.reload();
	}
	else
	{
	    for (var fIdx = 1; fIdx < result.length; fIdx++)
	    {
	        href = window.top.frames[result[fIdx]].location.href;
	        window.top.frames[result[fIdx]].location.href = href;
	    }
	}
}

function VAT_Error(result, obj2, obj3)
{

}
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();