﻿onerror=handleErr
var method;


function handleErr(msg,url,l)
{
    txt="Line Number="+ l  + "$#$#Errormessage=" + msg + " $#Method Name=" + method +"$#$# URL:" + url;
    ClickHandler.LogError(txt);
    return true
}


function setSideBox(controlid,show,city)
{
    if(typeof(city) == "undefined")
        city = "";
    ClickHandler.InsertShowSideBox(parseInt(TemplateId),parseInt(controlid),show,city,setSideBox_callback);
}

function setSideBox_callback(res)
{
    if(res.valueOf == true)
        window.location.reload();
}