function resizeNav(objName,div_width,div_height){
	document.getElementById(objName).style.width=div_width + "px";
	document.getElementById(objName).style.height=div_height + "px";
}

function resizeNav2(objName,div_width,div_height){
	setTimeout('closeNav(\''+objName+'\','+div_width+','+div_height+')',500);
}

function closeNav(objName,div_width,div_height){
	document.getElementById(objName).style.width=div_width + "px";
	document.getElementById(objName).style.height=div_height + "px";
}

function selectVacancy(vacancyId){
parent.window.location.href="career_form.php?vacancyId="+vacancyId;
}

function setCookie(c_name,value,expiredays)
{
	var exdate = new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function refresh(lang){
	// force english only
	// lang = 1;
	// setCookie("lang_fid", lang,'1');
	var exdate = new Date();
	exdate.setDate(exdate.getDate()+1);
	// var cookie_string = 'lang_fid='+escape(lang)+'; expires='+exdate.toGMTString();
	// document.cookie = cookie_string;
	setCookie("lang_fid", lang,'1');

	window.location.reload();
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function OpenpopupDsg(target){
	//alert(target);
	window.open(target,"","menubar=0,status=0,resizable=0,scrollbars=1,width=797,height=600")
}