function buildconcursoswdg(id_par,width, height)
{
	var width_str ='';
	var height_str ='';
	var params='';
	
	if(!(width && width!=''))
		width='170';
	if(!(height && height!=''))
		height='250';
	
	if(width && width!='')
	{
		width_str = ' width="'+width+'"';
		params=params+'&width='+width;
	}
	
	if(height && height!='')
	{
		height_str = ' height="'+height+'"';
		params=params+'&height='+height;
	}
	
	document.write('<iframe style="border:none 0 #FFFFFF;" src="http://concursospublicos.adp.pt/content/index.php?action=wdgconcursos&id_par='+id_par+params+'" '+width_str+height_str+'></iframe>');
}