function SymError()
{
 return true;
}
window.onerror = SymError;

function popupCenter(url,name,width,height)
{
 var left = (screen.width - width) / 2;
 var top = (screen.height - height) / 2;
 var options = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height;
 window.open(url,name,options);
 return true;
}

function popupCenter2(url,name,width,height)
{
 var left = (screen.width - width) / 2;
 var top = (screen.height - height) / 2;
 var options = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height +",scrollbars=1";
 window.open(url,name,options);
 return true;
}

var ie  = navigator.userAgent.indexOf("MSIE ");
var verIE = 0, winIE = -1;
if(ie >= 0) {
    verIE = parseFloat(navigator.userAgent.substr(ie + 5));
    winIE = navigator.userAgent.indexOf("Windows");
}

function addFav () {
    if(verIE >= 5.0 && winIE >= 0)
        window.external.AddFavorite('http://apstudios.jp/','秋田パフォーマンススタジオ - APStudios');
    else
        alert("このブラウザーでは追加できません");
}
