function CheckEnterPress(e) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return false;
	if (keycode == 13)
	{	
		return true;
	}
}

function stopEnterPress(e) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return false;
	if (keycode == 13)
	{	
		return false;
	}
}

function setDisplay(objectid,displaymode) {
  $(objectid).style.display = displaymode;
}

function rozwin(name) {
    var container = document.getElementById('container'+name);
    if(container) {
      container.style.height = "17px";
      container.style.display = "";
    }
}

function zwin(name) {
    var container = document.getElementById('container'+name);
    if(container) {
      container.style.height="0px";
      container.style.display="none";
    }
}

function showJump() {
    var jumper = document.getElementById('jumpToCategory');
    jumper.style.display = 'block';
}
function hideJump() {
    var jumper = document.getElementById('jumpToCategory');
    jumper.style.display = 'none';
}

function formPlaceString(country,region,place) {
    var returnstring = '';
    if(country) returnstring += country+',';
    if(region) returnstring += region+',';
    if(place) returnstring += place+',';
    return returnstring.substr(0,returnstring.length-1);

}

function star_oMO( star_set_id , star_id ){
	$('rate').show();
	$('starrating').hide();	

	var i = 1;
	for (i ;i <= 5;i++)
	{
		if(i<=star_id)
		$('star_'+star_set_id+'_'+i).className = 'star';
		else
		$('star_'+star_set_id+'_'+i).className = 'star-empty';
	}
}
function star_oMU( ){
	$('starrating').show();
	$('rate').hide();
}

function menuCollapse(element_id) {
    if($(element_id).style.display == 'none') {
      $(element_id).style.display = 'block';
    } else {
      $(element_id).style.display = 'none';
    }
}



