function open_win(w,h,path)
{
	str     = "top=" + 10 + ",left=" + 10 + ",scrollbars=1,resizable=0,status=0,width=" + w + ",height=" + h;	

	var wnd = open(path,"_blank",str);
	
}

function spopup()
{
	w=576;
	h=254;
	hwin = h + 40;
	str     = "top=" + 10 + ",left=" + 10 + ",scrollbars=0,resizable=0,status=0,width=" + w + ",height=" + hwin;	
	var wnd = open("http://inzer.ru/spopup.php","_blank",str);
}

function calc_popup()
{
	w=370;
	h=250;
	hwin = h + 40;
	str     = "top=" + 10 + ",left=" + 10 + ",scrollbars=0,resizable=0,status=0,width=" + w + ",height=" + hwin;	
	var wnd = open("http://www.inzer.ru/index.php?level=24&flag_view=3","_blank",str);
}

function price_popup(pid,price)
{
	w=420;
	h=230;	
	str     = "top=" + 100 + ",left=" + 100 + ",scrollbars=0,resizable=0,status=0,width=" + w + ",height=" + h;	
	var wnd = open("http://inzer.ru/price_popup.php?pid="+pid+"&price="+price,"_blank",str);
}

function any_price_popup(mb_pid,price)
{
	w=600;
	h=500;	
	str     = "top=" + 100 + ",left=" + 100 + ",scrollbars=1,resizable=0,status=0,width=" + w + ",height=" + h;	
	var wnd = open("http://www.pmx.ru/price_popup.php?mb_pid="+mb_pid+"&price="+price,"_blank",str);
}

function to_send(type, domen1, domen2, login)
{
	eml = login +  "@" + domen2 +"."+ domen1;
	if(type=="name")
		return document.write(eml);
	if(type=="link")
	{
		eml = "mailto:" + eml;
		window.location.href = eml;
	}
}


function show_content(content_id,end) {
	
  // Скрываем все слои
 for (i =1; i <= end; i++) {
    document.getElementById("my_div_" + i).style.display='none';
    document.getElementById("alphabet_" + i).style.color='';
  }
 // Показываем тот, что нам нужно
  document.getElementById("my_div_" + content_id).style.display='';
  document.getElementById("alphabet_" + content_id).style.color='#CC0000';
}


function make_array(end)
{
	arr = new Array(end);
	for (i=1; i<=end; i++)
	{		
		arr[i] = document.getElementById("let_"+i).value;
	}
	return arr;  
}

