function expandingWindow(website,winwidth,winheight,resize,scrol,menu,tbar,dir,loc,stat,winname) {
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 2;  // horizontal scrolling speed (higher = slower)
var leftdist = 190;    // distance to left edge of window
var topdist = 150;
var wf = "";	
//wf = wf + "width=" + winwidth;
//wf = wf + ",height=" + winheight;
//wf = wf + ",resizable=yes";
wf = wf + ",resizable=" + (resize ? "yes" : "no");
wf = wf + ",scrollbars=" + (scrol ? "yes" : "no");
wf = wf + ",menubar=" + (menu ? "yes" : "no");
wf = wf + ",toolbar=" + (tbar ? "yes" : "no");
wf = wf + ",directories=" + (dir ? "yes" : "no");
wf = wf + ",location=" + (loc ? "yes" : "no");
wf = wf + ",status=" + (stat ? "yes" : "no");		
if (document.all) {
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1" + wf);
sizer.focus()	
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.resizeTo("1", sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
}
sizer.location = website;
}
else	{
newwindow=window.open(website,winname,wf);
newwindow.focus()	
//window.location = website;
}
}
//  End -->
function CSSlideNewWindow(website,winwidth,winheight,resize,scrol,menu,tbar,dir,loc,stat,winname) {
var wh = winheight;
//if (menu || tbar || dir == true) wh=winheight+150
//else wh = winheight
var wf = "";	
wf = wf + "width=" + winwidth;
wf = wf + ",height=" + wh;
wf = wf + ",resizable=" + (resize ? "yes" : "no");
wf = wf + ",scrollbars=" + (scrol ? "yes" : "no");
wf = wf + ",menubar=" + (menu ? "yes" : "no");
wf = wf + ",toolbar=" + (tbar ? "yes" : "no");
wf = wf + ",directories=" + (dir ? "yes" : "no");
wf = wf + ",location=" + (loc ? "yes" : "no");
wf = wf + ",status=" + (stat ? "yes" : "no");		
if(navigator.appVersion.charAt(0) >=4) {
var sw=screen.width-10;
var sh=screen.height;
var newwidth=winwidth; 
var newheight=winheight;
var positionleft=(sw-newwidth)/4;
var positiontop=""
if (menu || tbar || dir == true) positiontop=(sh-newheight)/3;
positiontop=(sh-newheight)/3;
}
newwindow=window.open(website,winname,wf); 
newwindow.focus()	
if(navigator.appVersion.charAt(0) >=4) {
	for(width1 = 1 ; width1 < positionleft ; width1 = width1 + 1)
	newwindow.moveTo(width1,positiontop)
	}
}
//  End -->
function changeCase(frmObj) {
var index;
var tmpStr;
var tmpChar;
var preString;
var postString;
var strlen;
tmpStr = frmObj.value.toLowerCase();
strLen = tmpStr.length;
if (strLen > 0)  {
for (index = 0; index < strLen; index++)  {
if (index == 0)  {
tmpChar = tmpStr.substring(0,1).toUpperCase();
postString = tmpStr.substring(1,strLen);
tmpStr = tmpChar + postString;
}
else {
tmpChar = tmpStr.substring(index, index+1);
if (tmpChar == " " && index < (strLen-1))  {
tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
preString = tmpStr.substring(0, index+1);
postString = tmpStr.substring(index+2,strLen);
tmpStr = preString + tmpChar + postString;
         }
      }
   }
}
frmObj.value = tmpStr;
}


function selectChange(control, controlToPopulate, ItemArray, GroupArray)
{
  var myEle ;
  var x ;
  // Empty the second drop down box of any choices
  for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;
  // ADD Default Choice - in case there are no values
  myEle = document.createElement("option") ;
  myEle.value = 0 ;
  myEle.text = "*" ;
  controlToPopulate.appendChild(myEle) ;
  for ( x = 0 ; x < ItemArray.length  ; x++ )   {
      if ( GroupArray[x] == control.value )
        {  myEle = document.createElement("option");
		   myEle.setAttribute('value',ItemArray[x]);
		   var txt = document.createTextNode(ItemArray[x]);
		   myEle.appendChild(txt)
           controlToPopulate.appendChild(myEle) ;
        }
    }
}

var arrItems1 = new Array();
var arrItemsGrp1 = new Array();

arrItems1[0] = "Център";
arrItemsGrp1[0] = "Русе град";
arrItems1[1] = "Възраждане";
arrItemsGrp1[1] = "Русе град";
arrItems1[2] = "Здравец";
arrItemsGrp1[2] = "Русе град";
arrItems1[3] = "Родина";
arrItemsGrp1[3] = "Русе град";
arrItems1[4] = "Дружба 1";
arrItemsGrp1[4] = "Русе град";
arrItems1[5] = "Дружба 2";
arrItemsGrp1[5] = "Русе град";
arrItems1[6] = "Дружба 3";
arrItemsGrp1[6] = "Русе град";
arrItems1[7] = "Средна Кула";
arrItemsGrp1[7] = "Русе град";

arrItems1[10] = "Мартен";
arrItemsGrp1[10] = "Русе област";
arrItems1[11] = "Николово";
arrItemsGrp1[11] = "Русе област";
arrItems1[12] = "Сливополе";
arrItemsGrp1[12] = "Русе област";


//  End -->
//<META http-equiv="content-type" content="text/html;charset=windows-1251">


