//
// Forvent.ru - AdvantShop.NET 26.05.2008
//

function ShowMap(url)
{
	var page = url;
	var width = 690;
	var height = 530;
	var x = Math.round((screen.width-width)/2);
	var y = Math.round((screen.height-height)/2);
	windowprops = "height="+height+",width="+width+",location=no,"+ "scrollbars=no,menubars=no,toolbars=no,resizable=no,left="+x+",top="+y;
	window.open(page, "Popup", windowprops);
}

function windowOpen(theURL)
{
	window.open(theURL,'','toolbar=0,status=0,top=150,left=200,scrollbars=1,');
}

function clickButton(e, buttonid) {
    var evt = e ? e : window.event;
    var bt = document.getElementById(buttonid);
    
    if (bt){
        if (evt.keyCode == 13){
        bt.click();
        return false;
        }
    }
}

//
// === Ýëåìåíòû âíåøíåãî âèäà ========================================
//

function ii2(id){
    document.getElementById(id).className = 'MenuLinkUnderline';
}
	    
	    
function ii3(id){
    document.getElementById(id).className = 'MenuLink';
}

function ii2_noHref(id){
    document.getElementById(id).setAttribute("href","#");
    document.getElementById(id).className = 'MenuLinkUnderline';
}

function ShowHideDisplay(id) {
    if (document.getElementById(id).style.display == '')
    {
	    document.getElementById(id).style.display = 'none' ;
    }
    else
    {
	    document.getElementById(id).style.display = '' ;
    }
}

  function OverButton(obj)
{
	obj.className = 'InputButtonAct';
}
  function OutButton(obj)
{
	obj.className = 'InputButton';
}
//
// ===================================================================
//