function openNewWindow(sURL, sName, iWidth, iHeight, bResizable, bScrollbars)  {
 	var iTop  = (screen.height - iHeight) / 2 ;
 	var iLeft = (screen.width  - iWidth) / 2 ;

 	var sOptions = "toolbar=no" ;
 	sOptions += ",width=" + iWidth ;
 	sOptions += ",height=" + iHeight ;
 	sOptions += ",resizable="  + (bResizable  ? "yes" : "no") ;
 	sOptions += ",scrollbars=" + (bScrollbars ? "yes" : "no") ;
 	sOptions += ",left=" + iLeft ;
 	sOptions += ",top=" + iTop ;

 	var oWindow = window.open(sURL, sName, sOptions)
 	oWindow.focus();

 	return oWindow ;
}

var CurVacancy = 0;

function OpenVacancy (VacID) {
	if ( CurVacancy != 0 ) {
		document.getElementById('v'+CurVacancy).className='hide';
	}	
		
	document.getElementById('v'+VacID).className='vacancy visible';
	CurVacancy = VacID;
	location.hash ='VacancyList';
}


// прячем email от спамерских роботов -------------------------
function OpenMail (name, domen) {
window.open('mailto:'+name+'@'+domen);
return false;
}

function WriteMail (name, domen) {
	document.write(name+'&#64;'+domen);
}

function prepare(){
  e1=document.getElementById("zakaz");
  if(e1){
    document.forms[0].text.value=e1.innerHTML;
	return true;
	}
};

// ---------------------
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
