function popup(strURL, pixW, pixH)
{
    strLocation = strURL;
    strWHandle = "sdcSubWin";
    strProps = "resizable=no,scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,width=" + pixW + ",height=" + pixH + ",top=100,left=250";
    w=window.open(strLocation, strWHandle, strProps);
	w.moveTo((screen.width-pixW)/2,(screen.height-pixH)/3);
	w.focus();
}	

function trigger_rate(id, rate)
{
	RatingController.getInstance().applyRate(id, rate);	
}

function trigger_rate_poza(id, rate)
{
	RatingController.getInstance().applyRatePoza(id, rate);	
}
function trigger_rate_film(id, rate)
{
	RatingController.getInstance().applyRateFilm(id, rate);	
}

function trigger_rate_desen(id, rate)
{
	RatingController.getInstance().applyRateDesen(id, rate);	
}

function trigger_rate_raspuns(id, rate)
{
	RatingController.getInstance().applyRateRaspuns(id, rate);	
}

function trigger_rate_joc(id, rate)
{
	RatingController.getInstance().applyRateJoc(id, rate);	
}

function changeShowHideState(objShow, objHide)
{
	ref1=document.getElementById(objShow);
	ref2=document.getElementById(objHide);
	ref1.style.display='block';
	ref2.style.display='none';
	return false;
}
function changeShowHideState2(objShow, objHide1, objHide2)
{
	ref1=document.getElementById(objShow);
	ref2=document.getElementById(objHide1);
	ref3=document.getElementById(objHide2);
	ref1.style.display='block';
	ref2.style.display='none';
	ref3.style.display='none';
	return false;
}
function setAction(obj)
{
	var fObj=document.getElementById('form2');
	if(obj.value==1)
	{
		fObj.action=URL+"imagini-recente.html";
	}
	else if(obj.value==2)
	{
		fObj.action=URL+"bancuri-recente.html";
	}
	else if(obj.value==3)
	{
		fObj.action=URL+"filme-recente.html";
	}
	else if(obj.value==4)
	{
		fObj.action=URL+"jocuri-recente.html";
	}
	else
	{
		fObj.action=URL+"imagini-recente.html";
	}
}