var img_ar=new Array(2);

img_ar[0] = new Image()
img_ar[0].src = "../images/in_basket.gif"

img_ar[1] = new Image()
img_ar[1].src = "../images/in_basket1.gif"



function addBookmark(title,url){if (window.sidebar){window.sidebar.addPanel(title,
url,"");} else if(document.all){window.external.AddFavorite( url, title);} else
if(window.opera && window.print){return true;}}



function change(imgname,p)
{
 imgname.src = img_ar[p].src
}



var subs = 1;


function city_vyvod(inForm,selected){
selectedArray = eval(selected);
while (selectedArray.length < inForm.city.options.length) {
inForm.city.options[(inForm.city.options.length - 1)] = null;
} 
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.city.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.country.options[0].value == '') {
inForm.country.options[0]= null;
}
}

function city_vyvod1(inForm,selected){
selectedArray = eval(selected);
while (selectedArray.length < inForm.city1.options.length) {
inForm.city1.options[(inForm.city1.options.length - 1)] = null;
} 
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.city1.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.country1.options[0].value == '') {
inForm.country1.options[0]= null;
}
}
function city_vyvod2(inForm,selected){
selectedArray = eval(selected);
while (selectedArray.length < inForm.city2.options.length) {
inForm.city2.options[(inForm.city2.options.length - 1)] = null;
} 
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.city2.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.country2.options[0].value == '') {
inForm.country2.options[0]= null;
}
}

function genWin(U,N,T,L,S,C,F,X,Y)  {
window.open(U,N,"toolbar="+T+",location="+L+",directories=0,status="+S+",scrollbars="+C+",menubar=0,resizable=0,fullscreen="+F+",width="+X+",height="+Y+"");
	}

function genWinCalendar(U,N,T,L,S,C,F,X,Y,xx,yy)  {
xx=screen.width/2.5;
yy=screen.height/2.5;
window.open(U,N,"toolbar="+T+",location="+L+",directories=0,status="+S+",scrollbars="+C+",menubar=0,resizable=0,fullscreen="+F+",width="+X+",height="+Y+",top="+yy+",left="+xx+"");
	}

function w_open()
{
genWin("rus/special_offers.html",'',0,0,0,0,0,300,325);
}

function w_open_spb()
{
genWin("special_offers_spb.html",'so',0,0,0,0,0,300,155);
}
	
	
	function SelectAll(mark)
{
  for (i = 0; i < document.forms[0].elements.length; i++)
   {
    var item = document.forms[0].elements[i];
	s=item.name;
    if (s.substring(0,3) == "del")
     {
      item.checked = mark;
     };
   }
}

	function city_fun()
{
var g=document.main.city_obl_check.checked;
if (g==true){
document.main.city_obl.disabled=false;
document.main.city_obl.value=" .    ";
document.main.city_obl.select();                                                                                                                  ;
} else {
document.main.city_obl.disabled=true;
document.main.city_obl.value=""; 
document.main.city_obl.blur();       
}
}

	function city_fun_msk()
{
var g=document.main.city_msk_check.checked;
if (g==true){
document.main.city_msk_region.disabled=false;
document.main.city_msk_region.value=" .    ";
document.main.city_msk_region.select();                                                                                                                  ;
} else {
document.main.city_msk_region.disabled=true;
document.main.city_msk_region.value=""; 
document.main.city_msk_region.blur();       
}
}

	function city_fun_spb()
{
var g=document.main.city_spb_check.checked;
if (g==true){
document.main.city_spb_region.disabled=false;
document.main.city_spb_region.value=" .    ";
document.main.city_spb_region.select();                                                                                                                  ;
} else {
document.main.city_spb_region.disabled=true;
document.main.city_spb_region.value=""; 
document.main.city_spb_region.blur();       
}
}

	function city_fun_drugoe()
{
var g=document.main.drugoe.checked;
if (g==true){
document.main.chto_drugoe.disabled=false;
document.main.chto_drugoe.value="???";
document.main.chto_drugoe.select();                                                                                                                  ;
} else {
document.main.chto_drugoe.disabled=true;
document.main.chto_drugoe.value=""; 
document.main.chto_drugoe.blur();       
}
}
